Ticket #4796: 4796-fix.diff
File 4796-fix.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/utils/translation/__init__.py
39 39 g['real_%s' % name] = getattr(trans, name) 40 40 41 41 # Make the originally requested function call on the way out the door. 42 return g[ caller](*args, **kwargs)42 return g['real_%s' % caller](*args, **kwargs) 43 43 44 44 g = globals() 45 45 for name in __all__: -
tests/regressiontests/i18n/tests.py
30 30 >>> s4 = ugettext_lazy('Some other string') 31 31 >>> s == s4 32 32 False 33 34 unicode(string_concat(...)) should not raise a TypeError - #4796 35 36 >>> import django.utils.translation 37 >>> reload(django.utils.translation) 38 <module 'django.utils.translation' from ...> 39 >>> unicode(django.utils.translation.string_concat("dja", "ngo")) 40 u'django' 33 41 """