Opened 16 years ago
Closed 13 years ago
#4031 closed (wontfix)
Translate to a specified language (not necessarily the current session language)
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Keywords: | translatation translate i18n i18n-nofix | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It would be very nice to be able to translate into any specified language at any time, especially in templates, e.g.
{% trans "Change language to", "fr" %} {% trans "French", "fr" %}
{% trans "Change language to", "es" %} {% trans "Spanish", "es" %}
or
{% setlang "fr" %}
{% trans "Change language to" %} {% trans "French" %}
{% setlang "es" %}
{% trans "Change language to" %} {% trans "Spanish" %}
Change History (4)
comment:1 Changed 16 years ago by
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 Changed 16 years ago by
comment:3 Changed 14 years ago by
Keywords: | i18n-nofix added |
---|
comment:4 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
My comment from 2007 still kind of holds. Given the relative scarcity of this, it's not up for inclusion in Django at the moment.
I'm tempted to say "no, if you want that, write a custom tag", since it's not that hard to do so and it's a corner-case. Want to think about it some more, though.