diff --git a/src/common/i18n.py b/src/common/i18n.py index 7bf09275e..150abf60d 100644 --- a/src/common/i18n.py +++ b/src/common/i18n.py @@ -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: