mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user