Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2310 -- Changed to use settings.LANGUAGE_CODE in…

…stead of hard-coded 'en'

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 18eb7ecb13ea4f661d3820a8e89c6abdb8b3e419 1 parent 8daddd4
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/translation/
2  django/utils/translation/
@@ -13,6 +13,6 @@ def ngettext(singular, plural, number):
string_concat = lambda *strings: ''.join([str(el) for el in strings])
activate = lambda x: None
deactivate = install = lambda: None
-get_language = lambda: 'en'
+get_language = lambda: settings.LANGUAGE_CODE
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
Please sign in to comment.
Something went wrong with that request. Please try again.