Opened 16 years ago

Closed 13 years ago

#4031 closed (wontfix)

Translate to a specified language (not necessarily the current session language)

Reported by: temp@… 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


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" %}


{% 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 Simon G. <dev@…>

Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 16 years ago by Malcolm Tredinnick

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.

comment:3 Changed 14 years ago by Marc Garcia

Keywords: i18n-nofix added

comment:4 Changed 13 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top