Django

Code

Changeset 1266

Show
Ignore:
Timestamp:
11/16/05 06:13:28 (3 years ago)
Author:
hugo
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/translation.py

    r1209 r1266  
    248248    if _default is None: 
    249249        from django.conf import settings 
    250         _default = translation('*', settings.LANGUAGE_CODE) 
     250        _default = translation(settings.LANGUAGE_CODE) 
    251251    return _default.ngettext(singular, plural, number) 
    252252