Opened 13 years ago

Last modified 13 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 Jacobo Nájera, 13 years ago

Owner: set to Jacobo Nájera

comment:1 by Christopher Allan Webber, 13 years ago

Owner: changed from Jacobo Nájera to Christopher Webber
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 :))



comment:2 by Christopher Allan Webber, 13 years ago

Status: NewClosed
Fixed, and updated
`http://wiki.mediagoblin.org/Translations#Troubleshooting <http://wiki.mediagoblin.org/Translations#Troubleshooting>`_



comment:3 by Christopher Allan Webber, 13 years ago

Milestone: 0.1.0

comment:3 by Will Kahn-Greene, 13 years ago

The original url for this bug was http://bugs.foocorp.net/issues/593 .

Note: See TracTickets for help on using tickets.