Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4389: be more robust in `get_language_bidi()`. Thanks, arien.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a0329d0ae30c41cf03a541bf0236dc81c4098feb 1 parent 52c3c3a
Jacob Kaplan-Moss jacobian authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/utils/translation/
4 django/utils/translation/
@@ -244,7 +244,9 @@ def get_language_bidi():
True = right-to-left layout
from django.conf import settings
- return get_language() in settings.LANGUAGES_BIDI
+ base_lang = get_language().split('-')[0]
+ return base_lang in settings.LANGUAGES_BIDI
def catalog():
Please sign in to comment.
Something went wrong with that request. Please try again.