-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Spanish language #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution!
I don't know Spanish, can you explain what is the difficulty with ordinals?
It's not very complicated, but we haven't got a unique suffix so it is like writing the cardinal number with other words. You can understand all the possibilities with the next picture: |
I see, better let them in full letters then! |
text_to_num/transforms.py
Outdated
@@ -74,6 +74,8 @@ def alpha2digit( | |||
if you prefer to get « moins 2 » instead of « -2 ». | |||
""" | |||
language = LANG[lang] | |||
if lang is "es": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
raises a warning with literals; you should use ==
here.
I will merge as soon as you fixes the two little nits. Thank you. |
Hi,
I've implemented Spanish language support for your module.
It works from 0 to 999 999 999 999 like the other languages, but ord2card() is not implemented.
Hope it helps.