Fix pluralize translation function
This commit is contained in:
parent
38c1727b94
commit
cfef7ab071
1 changed files with 2 additions and 2 deletions
|
@ -94,9 +94,9 @@ class Translate(dict):
|
|||
|
||||
def pluralize(self, value, single, multi):
|
||||
if value > 1:
|
||||
return self[single].format(value)
|
||||
else:
|
||||
return self[multi].format(value)
|
||||
else:
|
||||
return self[single].format(value)
|
||||
|
||||
def translateData(self, data, translate_table=None, mode="js"):
|
||||
if not translate_table:
|
||||
|
|
Loading…
Reference in a new issue