fix gettext

This commit is contained in:
Denis Fomin 2013-01-03 13:41:52 +04:00
parent c4d5ccf4e0
commit 3c4a63e97e
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,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.. In other words this is a hack to ngettext() to support %s %d etc..
""" """
text = _translation.ungettext(s_sing, s_plural, n) text = _translation.ngettext(s_sing, s_plural, n)
if n == 1 and replace_sing is not None: if n == 1 and replace_sing is not None:
text = text % replace_sing text = text % replace_sing
elif n > 1 and replace_plural is not None: elif n > 1 and replace_plural is not None: