Opened 9 years ago

Closed 6 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: master
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: UI/UX:


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 9 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 9 years ago by mtredinnick

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 7 years ago by garcia_marc

  • Keywords i18n-nofix added

comment:4 Changed 6 years ago by mtredinnick

  • Resolution set to wontfix
  • Status changed from new to 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.

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