-
Notifications
You must be signed in to change notification settings - Fork 488
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
Support Arabic #72
Support Arabic #72
Conversation
Hello @dalwadani |
Done! |
Can this be merged/released now? |
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.
I don't know Arabic myself, so we really trust new contributions. Overall this looks goods, only two small comments. Thanks again for your time I will merge it when I have your feedback about the comments.
num2words/lang_AR.py
Outdated
def to_year(self, val, longval=True): | ||
if not (val//100)%10: | ||
return self.to_cardinal(val) | ||
return self.to_splitnum(val, hightxt="hundred", jointxt="and", |
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.
I don't know any Arabic, but I don't think that you use "hundred" and "and", could you check this, please?
num2words/lang_AR.py
Outdated
def to_currency(self, val, longval=True): | ||
return self.to_splitnum(val, hightxt="dollar/s", lowtxt="cent/s", | ||
jointxt="and", longval=longval, cents = True) | ||
|
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.
The same here, I see "dollar/s", "cent/s", "and".
@dalwadani Sorry for taking too long in the review, could you please check the comments? Thanks! |
Done! |
Thanks @dalwadani ! |
Thanks both of you! |
@dufresnedavid is the maintainer of the package now. |
@hsoft Sorry, when I told you that I would maintain this repo, I was a bit out of context. num2words is not relevant for Odoo development since Odoo version 9.0 (an equivalent of num2words is available directly in the source code of Odoo). Therefore, I don't see myself fit has maintainer of this project because I won't use it at all. I would suggest @erozqba to take the flag. |
@hsoft I have made a new release v0.5.5. I try to publish it in https://pypi.python.org/pypi but I'm not allowed I get this error: Server response (403): You are not allowed to store 'num2words' package information Thanks in advance for your help and any suggestions or changes that must be made to the release. |
@erozqba I don't have permissions to publish PyPI packages under the SFL account any more so I can't help you much, but we had set up PyPI permissions with @dufresnedavid before I left. |
@jerem I have released the version v0.5.5 |
Add Arabic support: