-
Notifications
You must be signed in to change notification settings - Fork 506
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
[ADD] num2words: add traslation to spanish of several currencies #356
[ADD] num2words: add traslation to spanish of several currencies #356
Conversation
Pull Request Test Coverage Report for Build 968
💛 - Coveralls |
Could you review this, please? Regards. |
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.
Could you test in spanish with all odoo currencies, please?
In order to check if we are not missing something
num2words/lang_ES.py
Outdated
'PEN': (('sol', 'soles'), ('céntimo', 'céntimos')), | ||
'CRC': (('colon', 'colones'), GENERIC_CENTS), |
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.
colón
'CRC': (('colon', 'colones'), GENERIC_CENTS), | |
'CRC': (('colón', 'colones'), GENERIC_CENTS), |
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.
Done
25e6f46
to
6426543
Compare
I just ran the following script, check the output too in the same link: There are errors using a few currencies. Could you fix it, please? |
tests/test_en.py
Outdated
@@ -131,6 +131,194 @@ def test_to_currency(self): | |||
"four pesos and one cent" | |||
) | |||
|
|||
self.assertEqual( |
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 name of the file is test_en.py
it is for English.
What about using a *es.py
?
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.
You right, it's fixed.
ab3480e
to
ae35a48
Compare
I added all currencies except following:
No information found about those currencies. Regards. |
Check the data file directly from odoo: |
ae35a48
to
3290be5
Compare
Done |
Could you check it, please? cc @eilst |
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.
- Traslations -> translations
- The conventions [ADD], [FIX], etc; belon to Odoo, I'd try to conform guidelines from this project instead.
tests/test_es.py
Outdated
) | ||
|
||
TEST_CASES_TO_CURRENCY_GBP = ( | ||
(1.00, 'un libra con cero pence'), |
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 "un" instead of "una" expected?
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.
No, it's not expected. It's fixed.
num2words/lang_ES.py
Outdated
'YER': (('rial', 'riales'), ('fils', 'fils')), | ||
'YUM': (('dinar', 'dinares'), ('para', 'para')), | ||
'ZMW': (('kwacha', 'kwachas'), ('ngwee', 'ngwee')), | ||
'ZRZ': (('zaire', 'zaire'), ('likuta', 'makuta')), |
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.
Isn't "zaires" the plural?
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.
You right. It's fixed.
6300de1
to
2fb7870
Compare
@lgharib Could you check it, please? |
Could you review again, please? Regards. |
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.
@fernandahf I think we don't need to loop over the CURRENCIES_UNA
. Could you also please rebase your branch?
199d27d
to
2841f48
Compare
49ee41f
to
b0f2ccd
Compare
Changes proposed in this pull request:
Status
How to verify this change
Run test, add three cases of added currencies.