Kaydet (Commit) eda3e2c9 authored tarafından Georg Bauer's avatar Georg Bauer

fixed a bug that happened only if the very first gettext call was an ngettext


git-svn-id: http://code.djangoproject.com/svn/django/trunk@1266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 674c0b35
......@@ -247,7 +247,7 @@ def ngettext(singular, plural, number):
return t.ngettext(singular, plural, number)
if _default is None:
from django.conf import settings
_default = translation('*', settings.LANGUAGE_CODE)
_default = translation(settings.LANGUAGE_CODE)
return _default.ngettext(singular, plural, number)
gettext_lazy = lazy(gettext, str)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment