fix ordinal_num for French numbers ending with 1 (#236)

This commit is contained in:
Zeno Gantner
2019-01-12 19:10:31 +01:00
committed by Ernesto Rodriguez Ortiz
parent 218d184583
commit 778786b65b
2 changed files with 4 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ class Num2Word_FR(Num2Word_EU):
def to_ordinal_num(self, value):
self.verify_ordinal(value)
out = str(value)
out += {"1": "er"}.get(out[-1], "me")
out += "er" if value == 1 else "me"
return out
def to_currency(self, val, longval=True, old=False):