Code

Opened 5 years ago

Closed 4 years ago

Last modified 3 years ago

#11714 closed (fixed)

Document usage of i18n functions to translate to arbitrary language

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

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by zgoda

missing documentation on few functions from django.utils.translation

comment:1 Changed 5 years ago by zgoda

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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

comment:2 Changed 4 years ago by russellm

  • milestone set to 1.2
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 4 years ago by jezdez

  • Patch needs improvement set
  • Triage Stage changed from Ready for checkin to Accepted

Changed 4 years ago by ramiro

Patch updated to post i18n docs refactor plus some typos.

comment:4 Changed 4 years ago by ramiro

  • Patch needs improvement unset

comment:5 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

(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 4 years ago by jezdez

(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 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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.