#16596: Tags within {% blocktrans %} blocks should work.
----------------------------------+------------------------------
Reporter: llugosch@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Milestone: | Component: Translations
Version: 1.3 | Severity: Normal
Keywords: translation | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------+------------------------------
Tags within {% blocktrans %} blocks break. Presumably, Django's developers
have it this way so that long {% if %} blocks and other switches don't get
thrown at a helpless translator. An unfortunate consequence is that
translated sentences containing tags need to be rewritten, and sometimes
this is completely impossible. The alternative is to split the sentence
awkwardly where the tag occurs. For example,
This sentence was translated at {% now %} by the good linguists at {% get
url etc. etc. %}!
would have to be formatted as something awful like
{% trans "This sentence was translated at" %}{% now %}{% trans " by the
good linguists at" %} {% get url etc. etc. %}!
Wouldn't it be better for Djangonaut and translator alike if it could be
done like this:
{% blocktrans %}This sentence was translated at {% now %} by the good
linguists at {% get url etc. etc. %}!{% endblocktrans %}
?
--
Ticket URL: <https://code.djangoproject.com/ticket/16596>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.