summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-07-11 14:08:42 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-07-11 14:08:42 +0000
commit78adbd9434df03a28acc929f0b00f253dd634833 (patch)
treef832670c094e38fe273d44bd0dfffc623dcb742d /django
parentf3a586a557cee431ea2839ef0c1efc2a53e28c3d (diff)
downloaddjango-78adbd9434df03a28acc929f0b00f253dd634833.tar.gz
Added get_language_bidi to django.utils.translation.trans_nuill. Refs #2203
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/utils/translation/trans_null.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/translation/trans_null.py b/django/utils/translation/trans_null.py
index 0cd4c1af30..ed25cae05b 100644
--- a/django/utils/translation/trans_null.py
+++ b/django/utils/translation/trans_null.py
@@ -14,5 +14,6 @@ string_concat = lambda *strings: ''.join([str(el) for el in strings])
activate = lambda x: None
deactivate = install = lambda: None
get_language = lambda: settings.LANGUAGE_CODE
+get_language_bidi = lambda: settings.LANGUAGE_CODE in settings.LANGUAGES_BIDI
get_date_formats = lambda: (settings.DATE_FORMAT, settings.DATETIME_FORMAT, settings.TIME_FORMAT)
get_partial_date_formats = lambda: (settings.YEAR_MONTH_FORMAT, settings.MONTH_DAY_FORMAT)