Code

Opened 7 years ago

Closed 4 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:

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

Attachments (0)

Change History (4)

comment:1 Changed 7 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 7 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 5 years ago by garcia_marc

  • Keywords i18n-nofix added

comment:4 Changed 4 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.