Fix For big numbers in spanish

Fix for millons in spanish
This commit is contained in:
Alexis Sanchez
2013-10-21 10:41:29 -04:30
parent ffcc57adc2
commit cfd6812470

View File

@@ -76,7 +76,7 @@ class Num2Word_ES(Num2Word_EU):
return ("%s y %s"%(ctext, ntext), cnum + nnum) return ("%s y %s"%(ctext, ntext), cnum + nnum)
return ("%s %s"%(ctext, ntext), cnum + nnum) return ("%s %s"%(ctext, ntext), cnum + nnum)
elif (not nnum % 1000000) and cnum > 1: elif (not nnum % 1000000) and cnum > 1:
ntext = ntext[:-3] + "ones" ntext = ntext[:-3] + "lones"
if nnum == 100: if nnum == 100:
if cnum == 5: if cnum == 5: