savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
823 stars 496 forks source link

Bugs in tanslation from 30 to 40 in spanish #4

Closed miltonlab closed 10 years ago

miltonlab commented 10 years ago

In [23]: for n in range(29, 41): print num2words.num2words(n, lang='es') ....:
vientinueve vientinueve y uno vientinueve y dos vientinueve y tres vientinueve y cuatro vientinueve y cinco vientinueve y seis vientinueve y siete vientinueve y ocho vientinueve y nueve vientinueve y diez cuarenta

ghost commented 10 years ago

What is the expected result?

miltonlab commented 10 years ago

IS THIS:

vientinueve treinta treinta y uno treinta y dos treinta y tres treinta y cuatro treinta y cinco treinta y seis treinta y siete treinta y ocho treinta y nueve cuarenta

miltonlab commented 10 years ago

I would contribute with this project, adding support to python 2.5 for example or antoher feature with your help.

ghost commented 10 years ago

That would be great. What kind of help do you need?

miltonlab commented 10 years ago

first i would be a commiter, and i would your guide related to "How get compatibility backward to python 2.5 version"

ghost commented 10 years ago

With git, you don't need commit rights. Just commit locally and create a pull request.

As for Python 2.5 support, I doubt it's possible to elegantly support it at the same time as supporting Python 3, so I wouldn't do it. But if you want to take a shot at it, I'd be glad to review what you end up with.