Not correct plural forms in "GPS Taces" page on National Languages #2412
Comments
Author: tom[at]compton.nu That string is a standard rails message so has to be handled by changing the translation in the rails-i18n plugin. You can find that here: http://github.com/svenfuchs/rails-i18n and the Russian translation specifically is here: http://github.com/svenfuchs/rails-i18n/commits/master/rails/locale/ru.yml We update from those translations periodically, so if you submit changes there then they will then make their way to OpenStreetMap, and you'll be helping out other rails based sites as well. |
Author: tom[at]compton.nu Actually, looking at the translations for Russian I think the data is already there, we just need a custom pluralizer for Russian. The keys for that message are:
We will only be using "one" and "other" though. If you can let me know the rule that should be used decide which numbers map to each of those keys then I can add a custom pluralizer and make it work properly. |
Author: tom[at]compton.nu That quote should have been formatted as:
|
Author: Calibrator This code may still be useful for you and Ruby I18n community. You can learn how to create custom backends for I18n and how to provide support of standalone (as defined in Unicode CLDR) month names with I18n and Rails, and also how to add dead simple pluralization rules into your translation tables. This library also includes a module (Russian) with a set of helpers to provide simplistic pluralization and strftime for Russian language in a way that is easier than using I18n methods. |
Author: tom[at]compton.nu What are you referring to exactly? I'd rather not have to add whole code modules for each language if I can avoid it, but if you could just answer my question then I can fix the pluralisation issue... |
Author: Calibrator For Russian: 2-10, 12-20, 22-30,... 92-100 etc: |
Author: Calibrator For Russian: 1,11, 21, 31, ... 91,101, 201... etc: {{count}} {{count}} {{count}} {{count}} 2-10, 12-20, 22-30,... 92-100 etc: {{count}} {{count}} {{count}} {{count}} {{count}} |
Author: Calibrator sorry. Do Not look my previous messages. Tomorrow I will send more correct. Excuse me. |
Author: Calibrator This is CORRECT version for Russian (uffffff!) :) 1, 21, 31, ... 91, 101, 111, etc.[[BR]] 2-4, 22-24, 32-34, ... etc.[[BR]] 5-20, 25-30, 35-40, ... etc.[[BR]] |
Author: tomhughes (In [18436]) Add russian pluralization logic, based on description in the russion http://github.com/yaroslav/russian/blob/master/lib/russian/backend/advanced.rb Also simplify the other pluralizers by defaulting to :other when a Closes #2412. |
Reporter: Calibrator
[Submitted to the original trac issue database at 3.11pm, Sunday, 1st November 2009]
English Page GPS Traces looks correct: 1 minute ago, 2 minutes ago, 6 minutes ago.
Russian Page not correct: 1 , 2 , 6 .
In Russian must be 2 plural forms: 1 , 2 , 6 .
Not impossible to edit Localised strings in 2 Russian Plural forms. I am not found this strings in http://translatewiki.net/wiki/Translating:OpenStreetMap now.
The text was updated successfully, but these errors were encountered: