Skip to content
Snippets Groups Projects
Commit 40c17be3 authored by nkour's avatar nkour
Browse files

[stephan k.] gettext to return unicode isntances

parent 12ef793d
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ def init():
def _(s):
if s == '':
return s
return _translation.gettext(s)
return _translation.ugettext(s)
def Q_(s):
# Qualified translatable strings
......@@ -59,7 +59,7 @@ def ngettext(s_sing, s_plural, n, replace_sing = None, replace_plural = None):
in other words this is a hack to ngettext() to support %s %d etc..
'''
text = _translation.ngettext(s_sing, s_plural, n)
text = _translation.ungettext(s_sing, s_plural, n)
if n == 1 and replace_sing is not None:
text = text % replace_sing
elif n > 1 and replace_plural is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment