summaryrefslogtreecommitdiff
path: root/django/utils/translation.py
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2006-05-16 20:39:14 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2006-05-16 20:39:14 +0000
commite1184016a29b90694e3624d646b35b9d4aa4756e (patch)
treef15b0c5f1ccd0f22b132b97403304263da579fb9 /django/utils/translation.py
parent93937ed38a828e0f252fb25614516593ec7b9ab0 (diff)
multi-auth: Merged to [2919]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multi-auth@2921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/translation.py')
-rw-r--r--django/utils/translation.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/django/utils/translation.py b/django/utils/translation.py
index a877f60009..0ee09e5b94 100644
--- a/django/utils/translation.py
+++ b/django/utils/translation.py
@@ -212,6 +212,16 @@ def get_language():
from django.conf import settings
return settings.LANGUAGE_CODE
+def get_language_bidi():
+ """
+ Returns selected language's BiDi layout.
+ False = left-to-right layout
+ True = right-to-left layout
+ """
+
+ from django.conf import settings
+ return get_language() in settings.LANGUAGES_BIDI
+
def catalog():
"""
This function returns the current active catalog for further processing.