[Openstack-i18n] Wrong plural formula for russian
amotoki at gmail.com
Thu Mar 10 18:19:52 UTC 2016
Ah.. sorry. I would like to say PO file.
I found  and if it is true now, num plurals in PO file controls the
number of plurals in Zanata,
so I wonder you can fix the problem by yourself.
The following is my investigation result:
I checked some Russian resources on Zanata. The num plurals are:
- 4 for horizon, django-openstack-auth, nova
- 3 for murano-dashboard, sahara-dashboard, magnum
This shows the default value of Zanata looks find.
It seems resources with num plurals == 4 were migrated from Transifex.
As far as I checked, the number of plural in Russian PO file are
changed from 3 to 4 in commit .
 happens on 4 May 2015. It was an import from Transifex.
I guess num-plurals of Russian horizon translations were overridden
when we imported
Russian translations from Transifex.
2016-03-11 2:11 GMT+09:00 Ilya Alekseyev <ilyaalekseyev at acm.org>:
> wonder if there is a correlation with POT file. Looks like there is nothing
> special for specific langiage.
> By the way, as soon as we have regression with this issue mey be it is
> possible to add some kind of checks to scripts that uploading translations
> to repository?
> Kind regards,
> Ilya Alekseyev.
> 2016-03-10 20:00 GMT+03:00 Ilya Alekseyev <ilyaalekseyev at acm.org>:
>> i remember we fixed this for Liberty. But looks like somewhere wrong
>> config or error in script that creating master version.
>> How ca we fix it? How i can help with this issue?
>> Alex, is it possible to fix plural formula ofr version and keep statistics
>> We need to fix it as soon as possible, because 4 plural forms making
>> issues for russian translation (empty message, empty buttons, etc, as we can
>> seee in Kilo release).
>> Kind regards,
>> Ilya Alekseyev.
>> С уважением,
>> Илья Алексеев
>> Russian OpenStack Community
>> 2016-03-10 19:37 GMT+03:00 Akihiro Motoki <amotoki at gmail.com>:
>>> Russian translations in the horizon repo is downloaded from Zanata,
>>> OpenStack translation platform.
>>> It seems Zanata has wrong plural configuration.
>>> > Daisy, Alex,
>>> Could you check Russian configuration in Zanata is correct?
>>> 2016-03-10 22:42 GMT+09:00 Ilya Alekseyev <ilyaalekseyev at acm.org>:
>>> > Dear collegues,
>>> > i've checked current russian translation in horizon repository and find
>>> > out
>>> > that we have wrong plural formula in upstream.
>>> > https://github.com/openstack/horizon/blob/master/openstack_dashboard/locale/ru/LC_MESSAGES/django.po#L35-L37
>>> > There is only 3 plural forms in Russian.
>>> > And correct formula should be
>>> > nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 &&
>>> > (n%100<10 || n%100>=20) ? 1 : 2);
>>> > Looks like some script is wrong.
>>> > Does anybody know how to fix it?
>>> > Kind regards,
>>> > Ilya Alekseyev
>>> > _______________________________________________
>>> > Openstack-i18n mailing list
>>> > Openstack-i18n at lists.openstack.org
>>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n
More information about the Openstack-i18n