#16690: Add translation.activate decorator/context manager
-------------------------------------+-------------------------------------
Reporter: ralphje | Owner: nobody
Type: New | Status: closed
feature | Component:
Milestone: | Internationalization
Version: 1.3 | Severity: Normal
Resolution: | Keywords:
worksforme | Has patch: 0
Triage Stage: | Needs tests: 0
Unreviewed | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by jezdez):
* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0
Comment:
There is already one at
https://code.djangoproject.com/browser/django/trunk/django/utils/translation/__init__.py?rev=16405#L111
{{{
def welcome_translated(language):
with translation.override(language):
return translation.ugettext('welcome')
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16690#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.