Opened 17 years ago

Closed 14 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 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Malcolm Tredinnick, 17 years ago

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 by Marc Garcia, 15 years ago

Keywords: i18n-nofix added

comment:4 by Malcolm Tredinnick, 14 years ago

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