Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…stead of hard-coded 'en'

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 18eb7ecb13ea4f661d3820a8e89c6abdb8b3e419 1 parent 8daddd4
Adrian Holovaty authored July 08, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/utils/translation/trans_null.py
2  django/utils/translation/trans_null.py
@@ -13,6 +13,6 @@ def ngettext(singular, plural, number):
13 13
 string_concat = lambda *strings: ''.join([str(el) for el in strings])
14 14
 activate = lambda x: None
15 15
 deactivate = install = lambda: None
16  
-get_language = lambda: 'en'
  16
+get_language = lambda: settings.LANGUAGE_CODE
17 17
 get_date_formats = lambda: settings.DATE_FORMAT, settings.DATETIME_FORMAT, settings.TIME_FORMAT
18 18
 get_partial_date_formats = lambda: settings.YEAR_MONTH_FORMAT, settings.MONTH_DAY_FORMAT

0 notes on commit 18eb7ec

Please sign in to comment.
Something went wrong with that request. Please try again.