-
Notifications
You must be signed in to change notification settings - Fork 922
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
Separate translations for "zero" and "zero like numbers" #3997
Comments
Translatewiki is outside our control - if you have a problem with the way it operates then you will need to address it with them. |
This is OSM problem in my opinion, and I believe I have reported this earlier already. The For most languages this is not a problem, but for languages like Latvian, the translation is either wrong or it is impossible to provide translation for "no X". This can be resolved in two ways:
|
The problem is that https://cldr.unicode.org/index/cldr-spec/plural-rules is self contradictory - it both says that the zero category can sometimes cover all numbers that end in zero and also encourages treating it specially so you can do things like "No friends" in place of "0 friends". |
I'm happy to make this change. We currently have the zero form in two places, so it's not much work to sort out. I wasn't previously aware about the problem with using the zero form, but it makes sense to replace it with a separate translation, given the Latvian issue. |
Well it's not something we can do on our own - it's the i18n library that decides how to map counts to labels. |
I think we can do it ourselves like: if count == 0
t '.no_whatevers'
else
t '.whatevers', :count => count
end |
Well obviously we can do that but I was dismissing the idea of doing that to everywhere where we lookup a counted translation as impractical and/or having way too awful an effect on the code. I'd monkey patch the pluraliser before I did that! |
Already discussed at ruby-i18n/i18n#629 and https://github.com/ruby-i18n/i18n/blob/master/lib/i18n/backend/pluralization.rb#L17. Unfortunately although they support |
I guess so long as locales that need |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
If you don't understand something, then please ask for clarification.
This is absolutely not what he said. I don't know why you took a statement that you say you didn't understand, and then go on for three paragraphs, making up conclusions and attributing bad intentions as you go along. It's not helpful. Please be assured that we will fix this problem, that's why it was reopened. |
Translatewiki knows better how something should be translated...
Translation of the text in the red box: "Plural forms should be defined as ...
This translation includes ..."
But when I remove "|zero=Brak zgłoszeń"
it allows me to upload.
Is it possible to disable this validator? Alternatively replace it with a warning (yellow color)?
The text was updated successfully, but these errors were encountered: