Commit f2d8ddce authored by Paul Brown's avatar Paul Brown

fix the dummy ngettext to work like the babelex ngettext

parent 488af54f
...@@ -6,6 +6,7 @@ except ImportError: ...@@ -6,6 +6,7 @@ except ImportError:
return string % variables return string % variables
def ngettext(singular, plural, num, **variables): def ngettext(singular, plural, num, **variables):
variables.setdefault('num', num)
return (singular if num == 1 else plural) % variables return (singular if num == 1 else plural) % variables
def lazy_gettext(string, **variables): def lazy_gettext(string, **variables):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment