-
Notifications
You must be signed in to change notification settings - Fork 114
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
Full support for Brazilian Portuguese #139
Conversation
7a3f951
to
cd90772
Compare
1 similar comment
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!
I commented on a few details.
.gitignore
Outdated
@@ -2,3 +2,4 @@ coverage | |||
pkg | |||
Gemfile.lock | |||
.bundle | |||
.idea |
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.
Let's not commit this file
Gemfile
Outdated
@@ -6,6 +6,7 @@ gem 'activesupport' | |||
group :development do | |||
gem 'rake' | |||
gem 'jeweler' | |||
gem 'pry' |
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.
Let's not commit this file
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
end | ||
end | ||
end | ||
end |
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.
Missing line at the end
1.0: um | ||
0.7: sete décimos | ||
3.5: três e cinco décimos | ||
42.1: quarenta e dois e um décimo |
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.
Missing line at the end
Thank you! I have only one more question: Does Portugal use the long scale of numbers? I know Brazil uses the short scale. I am not familiar with the Acordo Ortográfico da Língua Portuguesa de 1990. If so, this should be changed to |
@jlduran We realized that, too, and are already working on switching it to pt-BR, so the original pt implementation will remain and we're adding an entirely new pt-BR one with this pull request. cc @rafaelcaricio |
I will update the PR soon enough. 😃 |
21000: vinte e um mil | ||
21001: vinte e um mil e um | ||
999000: novecentos e noventa e nove mil | ||
999999: novecentos e noventa e nove mil e novecentos e noventa e nove |
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 verify this is correct? I think it should be how it actually is (if so, other numbers should change as well):
999999: novecentos e noventa e nove mil novecentos e noventa e nove
Looking at a few documents:
https://www.legisweb.com.br/legislacao/?id=178282 Art. 3º, Seção 2º
... o número nove milhões, novecentos e noventa e nove mil novecentos e noventa e nove ...
Also:
http://www.languagesandnumbers.com/how-to-count-in-portuguese-brazil/en/por-bra/
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 are right. Just keep in mind that the website "languagesandnumbers.com" does not add the required commas, but we are adding in our implementation. So we are correct in that matter and the site wrong.
Thank you. I think this is good to go now. I will merge it right now, however I'm not sure if I can cut a new gem today. Let's ask @dblock, otherwise by the end of the week I'll have it ready. |
No description provided.