Code

Ticket #7061: i18n-doc-requestcontext-languages.2.diff

File i18n-doc-requestcontext-languages.2.diff, 853 bytes (added by akaihola, 6 years ago)

corrected correction to i18n documentation

Line 
1Index: /home/akaihola/dl/prg/www/django/docs/i18n.txt
2===================================================================
3--- /home/akaihola/dl/prg/www/django/docs/i18n.txt      (revision 7776)
4+++ /home/akaihola/dl/prg/www/django/docs/i18n.txt      (working copy)
5@@ -266,7 +266,8 @@
6 Each ``RequestContext`` has access to three translation-specific variables:
7 
8     * ``LANGUAGES`` is a list of tuples in which the first element is the
9-      language code and the second is the language name (in that language).
10+      language code and the second is the language name (in the current user's
11+      preferred language).
12     * ``LANGUAGE_CODE`` is the current user's preferred language, as a string.
13       Example: ``en-us``. (See "How language preference is discovered", below.)
14     * ``LANGUAGE_BIDI`` is the current language's direction. If True, it's a