Code

Ticket #5056: ugettext.3.diff

File ugettext.3.diff, 575 bytes (added by Christopher Lenz <cmlenz@…>, 7 years ago)

Oops, fixed a problem with previous patch

Line 
1Index: django/utils/translation/__init__.py
2===================================================================
3--- django/utils/translation/__init__.py        (revision 124)
4+++ django/utils/translation/__init__.py        (working copy)
5@@ -61,8 +61,8 @@
6 def string_concat(*strings):
7     return real_string_concat(*strings)
8 
9-ngettext_lazy = lazy(ngettext, str)
10-gettext_lazy = lazy(gettext, str)
11+ngettext_lazy = lazy(ngettext, unicode)
12+gettext_lazy = lazy(gettext, unicode)
13 ungettext_lazy = ngettext_lazy
14 ugettext_lazy = gettext_lazy
15 string_concat = lazy(string_concat, unicode)