Opened 15 years ago
Last modified 15 years ago
#258 closed defect (FIXED)
transifex error
| Reported by: | Jacobo Nájera | Owned by: | Christopher Allan Webber |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.1.0 |
| Component: | Keywords: | ||
| Cc: | Parent Tickets: |
Description
When I am trying to translate spanish version:
Translation must start with a newline ()
With:
Create a free account? or? Set up MediaGoblin on your own server?
Change History (5)
comment:1 by , 15 years ago
| Owner: | set to |
|---|
comment:1 by , 15 years ago
| Owner: | changed from to |
|---|
comment:2 by , 15 years ago
| Status: | New → Closed |
|---|
Fixed, and updated http://wiki.mediagoblin.org/Translations#Troubleshooting
comment:3 by , 15 years ago
| Milestone: | → 0.1.0 |
|---|
Note:
See TracTickets
for help on using tickets.

The problem here is when we have something like:
{% trans register_url=request.urlgen('mediagoblin.auth.register') %} <a class="header_submit_highlight" href="{{ register_url }}">Create a free account</a> or <a class="header_submit" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a> {% endtrans %}instead of:
{% trans register_url=request.urlgen('mediagoblin.auth.register') -%} <a class="header_submit_highlight" href="{{ register_url }}">Create a free account</a> or <a class="header_submit" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a> {%- endtrans %}The distinction might not be obvious... look for the } versus
} and {% versus {% on the first and last lines. The thing about this is this tells Jinja2 to strip the whitespace. Without that, Transifex sees that there's a "" on the first line of the original but not on the future translation, and gets upset.
I think there are two things that should be done before this bug is closed.