Skip to content
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

Merged
merged 6 commits into from
Jun 28, 2017
Merged

Support Arabic #72

merged 6 commits into from
Jun 28, 2017

Conversation

dalwadani
Copy link
Contributor

Add Arabic support:

>>> from num2words import num2words
>>> num2words(42, lang="ar")
'اثنين وأربعين'
>>> 

@erozqba
Copy link
Collaborator

erozqba commented Jun 22, 2017

Hello @dalwadani
Thanks for taking the time to add Arabic support into mun2words.
Could you please fix the encoding problem for Python 2.7 and add some test for Arabic like the one that exists for the other languages inside the tests directory?

@dalwadani
Copy link
Contributor Author

Done!

@jerem
Copy link

jerem commented Jun 27, 2017

Can this be merged/released now?

Copy link
Collaborator

@erozqba erozqba left a 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.

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",
Copy link
Collaborator

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?

def to_currency(self, val, longval=True):
return self.to_splitnum(val, hightxt="dollar/s", lowtxt="cent/s",
jointxt="and", longval=longval, cents = True)

Copy link
Collaborator

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".

@erozqba
Copy link
Collaborator

erozqba commented Jun 27, 2017

@dalwadani Sorry for taking too long in the review, could you please check the comments? Thanks!

@dalwadani
Copy link
Contributor Author

Done!

@erozqba
Copy link
Collaborator

erozqba commented Jun 28, 2017

Thanks @dalwadani !

@erozqba erozqba merged commit d41b1b6 into savoirfairelinux:master Jun 28, 2017
@jerem
Copy link

jerem commented Jun 29, 2017

Thanks both of you!
@erozqba When can we expect a new release including this change?

@erozqba
Copy link
Collaborator

erozqba commented Jun 30, 2017

@jerem I will ask the main maintainer @hsoft about a new release as soon as possible.

@ghost
Copy link

ghost commented Jun 30, 2017

@dufresnedavid is the maintainer of the package now.

@ghost
Copy link

ghost commented Jun 30, 2017

@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.

@erozqba
Copy link
Collaborator

erozqba commented Jul 3, 2017

@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
I have tested the release on the test server of PyPi, you could check it here: https://testpypi.python.org/pypi/num2words

Thanks in advance for your help and any suggestions or changes that must be made to the release.

@ghost
Copy link

ghost commented Jul 3, 2017

@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.

@erozqba
Copy link
Collaborator

erozqba commented Jul 12, 2017

@jerem I have released the version v0.5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants