Opened 14 years ago
Last modified 14 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 , 14 years ago
| Owner: | set to |
|---|
comment:1 by , 14 years ago
| Owner: | changed from to |
|---|
comment:2 by , 14 years ago
| Status: | New → Closed |
|---|
Fixed, and updated `http://wiki.mediagoblin.org/Translations#Troubleshooting <http://wiki.mediagoblin.org/Translations#Troubleshooting>`_
comment:3 by , 14 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 .. raw:: html <del></del> } 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. - I should make sure whitespace is stripped on this particular bit of translations - I should make notes on the wiki about this on the translation page, and on the templating page if it exists (I don't think it does though :))