Opened 7 years ago

Closed 7 years ago

Last modified 5 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: master
Severity: Keywords: i18n
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 7 years ago.
missing documentation on few functions from django.utils.translation
11714-r12454.diff (4.3 KB) - added by Ramiro Morales 7 years ago.
Patch updated to post i18n docs refactor plus some typos.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by Jarek Zgoda

Attachment: i18n-docs.diff added

missing documentation on few functions from django.utils.translation

comment:1 Changed 7 years ago by Jarek Zgoda

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

comment:2 Changed 7 years ago by Russell Keith-Magee

milestone: 1.2
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 7 years ago by Jannis Leidel

Patch needs improvement: set
Triage Stage: Ready for checkinAccepted

Changed 7 years ago by Ramiro Morales

Attachment: 11714-r12454.diff added

Patch updated to post i18n docs refactor plus some typos.

comment:4 Changed 7 years ago by Ramiro Morales

Patch needs improvement: unset

comment:5 Changed 7 years ago by Jannis Leidel

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 Changed 7 years ago by Jannis Leidel

(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 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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