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
This commit is contained in:
parent
674c0b353c
commit
eda3e2c99a
|
@ -247,7 +247,7 @@ def ngettext(singular, plural, number):
|
||||||
return t.ngettext(singular, plural, number)
|
return t.ngettext(singular, plural, number)
|
||||||
if _default is None:
|
if _default is None:
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
_default = translation('*', settings.LANGUAGE_CODE)
|
_default = translation(settings.LANGUAGE_CODE)
|
||||||
return _default.ngettext(singular, plural, number)
|
return _default.ngettext(singular, plural, number)
|
||||||
|
|
||||||
gettext_lazy = lazy(gettext, str)
|
gettext_lazy = lazy(gettext, str)
|
||||||
|
|
Loading…
Reference in New Issue