diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2006-06-06 15:22:53 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2006-06-06 15:22:53 +0000 |
| commit | 7e88ec527107bd2c9023d48bcf177636eebc7e7a (patch) | |
| tree | bd653222327b8923fe6c25e1c42973eb03aa6d4c /docs/i18n.txt | |
| parent | 05b1a70daba43667a87c23d236bb83691da0cbbf (diff) | |
fixed #2089: added language bidirectional support and updated the admin to use it. thanks meir@mksoft!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/i18n.txt')
| -rw-r--r-- | docs/i18n.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/i18n.txt b/docs/i18n.txt index e6660f939d..cd24ba0f93 100644 --- a/docs/i18n.txt +++ b/docs/i18n.txt @@ -230,12 +230,17 @@ Each ``RequestContext`` has access to two translation-specific variables: language code and the second is the language name (in that language). * ``LANGUAGE_CODE`` is the current user's preferred language, as a string. Example: ``en-us``. (See "How language preference is discovered", below.) + * ``LANGUAGE_BIDI`` is the current language's direction. If True, it's a + right-to-left language, e.g: Hebrew, Arabic. If False it's a + left-to-right language, e.g: English, French, German etc. + If you don't use the ``RequestContext`` extension, you can get those values with -two tags:: +three tags:: {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} + {% get_current_language_bidi as LANGUAGE_BIDI %} These tags also require a ``{% load i18n %}``. |
