Ticket #4389: get_language_bidi.diff
File get_language_bidi.diff, 523 bytes (added by , 16 years ago) |
---|
-
django/utils/translation/trans_real.py
244 244 True = right-to-left layout 245 245 """ 246 246 from django.conf import settings 247 return get_language() in settings.LANGUAGES_BIDI 247 base_lang = lambda x: x.split('-', 1)[0] 248 return base_lang(get_language()) in settings.LANGUAGES_BIDI 248 249 249 250 def catalog(): 250 251 """