Ticket #4389: bidi.diff
File bidi.diff, 902 bytes (added by , 17 years ago) |
---|
-
django/utils/translation/trans_real.py
237 237 from django.conf import settings 238 238 return settings.LANGUAGE_CODE 239 239 240 def get_possible_language_names(): 241 "Returns a list of possible names for the given language" 242 return gettext_module._expand_lang(to_locale(get_language())) 243 240 244 def get_language_bidi(): 241 245 """ 242 246 Returns selected language's BiDi layout. … … 244 248 True = right-to-left layout 245 249 """ 246 250 from django.conf import settings 247 return get_language() in settings.LANGUAGES_BIDI 251 for language in get_possible_language_names(): 252 if language in settings.LANGUAGES_BIDI: 253 return True 254 return False 248 255 249 256 def catalog(): 250 257 """