Opened 15 years ago

Closed 14 years ago

Last modified 12 years ago

#11714 closed (fixed)

Document usage of i18n functions to translate to arbitrary language

Reported by: Jarek Zgoda Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords: i18n
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Documentation for i18n does not mention how to use translation mechanisms to translate to languages other than configured statically (in settings) or discovered by middleware. Attached patch adds section on this use case, additionally documenting usage of django.utils.translation.activate(), django.utils.translation.get_language() and django.utils.translation.check_for_language().

Attachments (2)

i18n-docs.diff (1.9 KB ) - added by Jarek Zgoda 15 years ago.
missing documentation on few functions from django.utils.translation
11714-r12454.diff (4.3 KB ) - added by Ramiro Morales 14 years ago.
Patch updated to post i18n docs refactor plus some typos.

Download all attachments as: .zip

Change History (9)

by Jarek Zgoda, 15 years ago

Attachment: i18n-docs.diff added

missing documentation on few functions from django.utils.translation

comment:1 by Jarek Zgoda, 15 years ago

Please, review the text I provided in patch, English is not my native language.

comment:2 by Russell Keith-Magee, 14 years ago

milestone: 1.2
Triage Stage: UnreviewedReady for checkin

comment:3 by Jannis Leidel, 14 years ago

Patch needs improvement: set
Triage Stage: Ready for checkinAccepted

by Ramiro Morales, 14 years ago

Attachment: 11714-r12454.diff added

Patch updated to post i18n docs refactor plus some typos.

comment:4 by Ramiro Morales, 14 years ago

Patch needs improvement: unset

comment:5 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: newclosed

(In [12473]) Fixed #11714 - Document a few of the i18n function that can be used outside views and templates. Thanks, Jarek Zgoda and Ramiro Morales.

comment:6 by Jannis Leidel, 14 years ago

(In [12483]) [1.1.X] Fixed #11714 - Document a few of the i18n function that can be used outside views and templates. Thanks, Jarek Zgoda and Ramiro Morales.

Backport or r12473.

comment:7 by Jacob, 12 years ago

milestone: 1.2

Milestone 1.2 deleted

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