-
Notifications
You must be signed in to change notification settings - Fork 115
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
Improve Italian support #94
Comments
@kslazarev: any info about this? Do you think you'd be able to do it? |
@alessandro1997 I am not sure what you're asking for. Make code changes and pull requests, please. |
Never mind. First of all, how would I go about removing the spaces between translations? 170 in Italian is "centosettanta", not "cento settanta". Spaces are added after millions and billions (e.g. 1,740,794 is "un milione settecentoquarantamilasettecentonovantaquattro"). Also, 1,000 is "mille", not "uno mille". If you could point me in the right direction I'd be glad to make the needed changes. |
@alessandro1997 you could do this on a couple 'level' the most basic is you provide some kind of failing tests, for example you could edit the https://github.com/kslazarev/numbers_and_words/blob/development/spec/numbers_and_words/integer/fixture_examples/it.yml (please note: you should work off of the development branch) so it would be clear what the problems are, however without further instructions (and without knowledge about the italian language) i'm not sure anyone could take on them you could also provide some instructions like you did. for example for the problem with where to put spaces you could check https://github.com/kslazarev/numbers_and_words/blob/development/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb (see also https://github.com/kslazarev/numbers_and_words/blob/development/lib/numbers_and_words/strategies/figures_converter/languages/base.rb how it is used), in a nutshell (when you call
you can check how modifications are made to this process on every level, e.g.:
depending on the rules of the italian language i would change https://github.com/kslazarev/numbers_and_words/blob/development/lib/numbers_and_words/strategies/figures_converter/languages/it.rb to alter |
@eLod, if you need feedback, I'm Italian; any example reported by alessandro1997 is correct. |
@davidebaldini i'm not working on this, i was just trying to help @alessandro1997 |
numbers_and_words currently has poor support for Italian. I have the code needed to convert a number into Italian, but I'm not able to integrate it in your gem.
If I provide the code, can someone with a better understanding of numbers_and_words use it to improve the present implementation?
Thanks in advance.
The text was updated successfully, but these errors were encountered: