Ticket #5056: ugettext.diff
File ugettext.diff, 1.2 KB (added by , 17 years ago) |
---|
-
lib/django/django/conf/__init__.py
144 144 # django.utils.translation requires a working settings module, and loading it 145 145 # from within this file would cause a circular import. 146 146 def first_time_gettext(*args): 147 from django.utils.translation import gettext148 __builtins__['_'] = gettext149 return gettext(*args)147 from django.utils.translation import ugettext 148 __builtins__['_'] = ugettext 149 return ugettext(*args) 150 150 151 151 __builtins__['_'] = first_time_gettext -
lib/django/django/utils/translation/trans_real.py
419 419 Installs the gettext function as the default translation function under 420 420 the name '_'. 421 421 """ 422 __builtins__['_'] = gettext422 __builtins__['_'] = ugettext 423 423 424 424 dot_re = re.compile(r'\S') 425 425 def blankout(src, char):