<div dir="ltr">Dear Daisy, Akihiro, Alex,<div><br></div><div>thank you very much for your investigation and fix of this issue.</div><div><br></div><div>Kind regards.</div><div>Ilya Alekseyev</div><div class="gmail_extra">
<br><div class="gmail_quote">2016-03-15 10:14 GMT+03:00 Ying Chun Guo <span dir="ltr"><<a href="mailto:guoyingc@cn.ibm.com" target="_blank">guoyingc@cn.ibm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think you are right.<br>
plural can be only set once.<br>
After setting, it's not able to change.<br>
<br>
python-neutronclient is fixed.<br>
<span class=""><br>
Best regards<br>
Ying Chun Guo (Daisy)<br>
<br>
<br>
</span><span class="">Akihiro Motoki <<a href="mailto:amotoki@gmail.com">amotoki@gmail.com</a>> wrote on 03/14/2016 07:21:10 PM:<br>
<br>
> From: Akihiro Motoki <<a href="mailto:amotoki@gmail.com">amotoki@gmail.com</a>><br>
> To: Ying Chun Guo/China/IBM@IBMCN<br>
> Cc: Alex Eng <<a href="mailto:aeng@redhat.com">aeng@redhat.com</a>>, Ilya Alekseyev<br>
> <<a href="mailto:ilyaalekseyev@acm.org">ilyaalekseyev@acm.org</a>>, "<a href="mailto:openstack-i18n@lists.openstack.org">openstack-i18n@lists.openstack.org</a>"<br>
> <<a href="mailto:openstack-i18n@lists.openstack.org">openstack-i18n@lists.openstack.org</a>><br>
</span>> Date: 03/14/2016 07:22 PM<br>
<div class="HOEnZb"><div class="h5">> Subject: Re: [Openstack-i18n] Wrong plural formula for russian<br>
><br>
> Hi Daisy,<br>
><br>
> 2016-03-14 17:33 GMT+09:00 Ying Chun Guo <<a href="mailto:guoyingc@cn.ibm.com">guoyingc@cn.ibm.com</a>>:<br>
> > Hi, Akihiro<br>
> ><br>
> > I tried to upload a new Russian translation file with the correct<br>
plural<br>
> > formula to django-openstack-auth.<br>
> > And then I downloaded it. Yet the header is not changed at all.<br>
> > I'm afraid uploading po files will not change the header.<br>
><br>
> I made some tests with nplurals.<br>
> My conclusion is that Zanata allows to update nplurals ONLY ONCE.<br>
> I succeed to change nplural to 2 by putting japanese PO file, but once<br>
> it was changed,<br>
> even though I put Japanese PO file with nplural==1, nplural was not<br>
changed.<br>
><br>
> I tested it using neutronclient Japanese.<br>
> As an unfortunate result, Japanese resource in neutronclient now have<br>
> the wrong nplurals (2).<br>
> Could you reset neutronclient in Japanese?<br>
> (There is no translation in neutronclient, so we can do this more easily<br>
:-)<br>
><br>
> Thanks,<br>
> Akihiro<br>
><br>
> ><br>
> > Best regards<br>
> > Ying Chun Guo (Daisy)<br>
> ><br>
> ><br>
> > Akihiro Motoki <<a href="mailto:amotoki@gmail.com">amotoki@gmail.com</a>> wrote on 03/12/2016 09:13:09 PM:<br>
> ><br>
> >> From: Akihiro Motoki <<a href="mailto:amotoki@gmail.com">amotoki@gmail.com</a>><br>
> >> To: Ying Chun Guo/China/IBM@IBMCN<br>
> >> Cc: Alex Eng <<a href="mailto:aeng@redhat.com">aeng@redhat.com</a>>, Ilya Alekseyev<br>
> >> <<a href="mailto:ilyaalekseyev@acm.org">ilyaalekseyev@acm.org</a>>, "<a href="mailto:openstack-i18n@lists.openstack.org">openstack-i18n@lists.openstack.org</a>"<br>
> >> <<a href="mailto:openstack-i18n@lists.openstack.org">openstack-i18n@lists.openstack.org</a>><br>
> >> Date: 03/12/2016 09:14 PM<br>
> >> Subject: Re: [Openstack-i18n] Wrong plural formula for russian<br>
> >><br>
> >> Hi Daisy, Alex,<br>
> >><br>
> >> I think the steps Daisy describes is the last resort.<br>
> >> Regarding translation statistics, I have nothing to say as I don't<br>
> >> know any about stats.<br>
> >><br>
> >> There are a couple of things I would like to note.<br>
> >><br>
> >> * It is better to first try to upload Russian PO files with<br>
nplurals=3<br>
> >> even though you failed it last time.<br>
> >> * We need to check other Russian resources other than Horizon.<br>
> >>   I checked django-openstack-auth and nova and they have nplurals=4.<br>
> >> There might be more.<br>
> >>   At now only Horizon and dashboard-related projects use plural<br>
cases,<br>
> >>   so we see this issue only in Horizon now.<br>
> >><br>
> >> Akihiro<br>
> >><br>
> >><br>
> >><br>
> >> 2016-03-11 14:20 GMT+09:00 Ying Chun Guo <<a href="mailto:guoyingc@cn.ibm.com">guoyingc@cn.ibm.com</a>>:<br>
> >> > Thank you for the investigation, Akihiro and Alex.<br>
> >> ><br>
> >> > Below are the steps we previously used.<br>
> >> > We can follow the same steps, just changing "stable" version to<br>
> > "master"<br>
> >> > version.<br>
> >> > I think the statistic data will not be affected in step 1 to 5.<br>
> >> > But, if we delete master-old, the contribution data in master-old<br>
will<br>
> > be<br>
> >> > removed.<br>
> >> > So my suggestion is to do the same steps, and keep master-old<br>
version<br>
> > (mark<br>
> >> > it as readonly)<br>
> >> > till 6 month or 12 month later when the contribution data is not<br>
that<br>
> >> > important.<br>
> >> ><br>
> >> >> 1. Create Russian translation files with only the correct header<br>
and<br>
> > the<br>
> >> >> pluralities translation items.<br>
> >> >> 2. Create a new version named as russian-fix<br>
> >> >> 3. Upload the source files and the Russian translation files<br>
created<br>
> > in #1<br>
> >> >> to the version russian-fix<br>
> >> >> 4. Merge the stable version with version russian-fix<br>
> >> >> 5. Rename stable version to stable-old, and rename russian-fix to<br>
> > stable.<br>
> >> ><br>
> >> > Alex and Akihiro, please confirm my proposal.<br>
> >> > Then I can take actions.<br>
> >> ><br>
> >> > Best regards<br>
> >> > Ying Chun Guo (Daisy)<br>
> >> ><br>
> >> ><br>
> >> > Alex Eng <<a href="mailto:aeng@redhat.com">aeng@redhat.com</a>> wrote on 2016/03/11 04:36:15:<br>
> >> ><br>
> >> >> From: Alex Eng <<a href="mailto:aeng@redhat.com">aeng@redhat.com</a>><br>
> >> >> To: Ilya Alekseyev <<a href="mailto:ilyaalekseyev@acm.org">ilyaalekseyev@acm.org</a>><br>
> >> >> Cc: Akihiro Motoki <<a href="mailto:amotoki@gmail.com">amotoki@gmail.com</a>>, Ying Chun Guo/China/<br>
> >> >> IBM@IBMCN, "<a href="mailto:openstack-i18n@lists.openstack.org">openstack-i18n@lists.openstack.org</a>" <openstack-<br>
> >> >> <a href="mailto:i18n@lists.openstack.org">i18n@lists.openstack.org</a>><br>
> >> >> Date: 2016/03/11 04:37<br>
> >> >> Subject: Re: [Openstack-i18n] Wrong plural formula for russian<br>
> >> ><br>
> >> ><br>
> >> >><br>
> >> >> Hi,<br>
> >> >><br>
> >> >> If we fix the plural forms in pot file and push to Zanata, that<br>
> >> >> would not affect the statistics.<br>
> >> >><br>
> >> >> But I remember last time when we trying to fix this, there are<br>
some<br>
> >> >> limitation of the pluralform wont update after the file is being<br>
> >> >> uploaded once to Zanata. And we have to create a new version with<br>
> >> >> fixed pot file and use "merge translation" feature to bring over<br>
all<br>
> >> >> the translations.<br>
> >> >><br>
> >> >> We can do the same thing again and the statistics won't be<br>
affected.<br>
> >> >> (copied translation doesn't count in as contribution)<br>
> >> >><br>
> >> >> I checked and Zanata has the correct form.<br>
> >> >><br>
> >> >> nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4<br>
&&<br>
> >> >> (n%100<10 || n%100>=20) ? 1 : 2)<br>
> >> >><br>
> >> >> ---------------------------------------------<br>
> >> >><br>
> >> >> Alex Eng<br>
> >> >> Senior Software Engineer<br>
> >> >> Globalisation Tools Engineering<br>
> >> >> DID: +61 3514 8262<br>
> >> >> Mobile: +614 2335 3457<br>
> >> >><br>
> >> >> Red Hat, Asia-Pacific Pty Ltd<br>
> >> >> Level 1, 193 North Quay<br>
> >> >> Brisbane 4000<br>
> >> >> Office: +61 7 3514 8100<br>
> >> >> Fax: +61 7 3514 8199<br>
> >> >> Website: <a href="http://www.redhat.com" rel="noreferrer" target="_blank">www.redhat.com</a><br>
> >> >><br>
> >> >> On Fri, Mar 11, 2016 at 3:00 AM, Ilya Alekseyev<br>
> > <<a href="mailto:ilyaalekseyev@acm.org">ilyaalekseyev@acm.org</a>><br>
> >> >> wrote:<br>
> >> >> Daisy,<br>
> >> >><br>
> >> >> i remember we fixed this for Liberty. But looks like somewhere<br>
wrong<br>
> >> >> config or error in script that creating master version.<br>
> >> >> How ca we fix it? How i can help with this issue?<br>
> >> >><br>
> >> >> Alex, is it possible to fix plural formula ofr version and keep<br>
> >> >> statistics safe?<br>
> >> >><br>
> >> >> We need to fix it as soon as possible, because 4 plural forms<br>
making<br>
> >> >> issues for russian translation (empty message, empty buttons, etc,<br>
> >> >> as we can seee in Kilo release).<br>
> >> >><br>
> >> >> Kind regards,<br>
> >> >> Ilya Alekseyev.<br>
> >> >><br>
> >> >> С уважением,<br>
> >> >> Илья Алексеев<br>
> >> >><br>
> >> >> Russian OpenStack Community<br>
> >> >><br>
> >> >> 2016-03-10 19:37 GMT+03:00 Akihiro Motoki <<a href="mailto:amotoki@gmail.com">amotoki@gmail.com</a>>:<br>
> >> >> Russian translations in the horizon repo is downloaded from<br>
Zanata,<br>
> >> >> OpenStack translation platform.<br>
> >> >> It seems Zanata has wrong plural configuration.<br>
> >> >><br>
> >> >> > Daisy, Alex,<br>
> >> >> Could you check Russian configuration in Zanata is correct?<br>
> >> >><br>
> >> >> 2016-03-10 22:42 GMT+09:00 Ilya Alekseyev <<a href="mailto:ilyaalekseyev@acm.org">ilyaalekseyev@acm.org</a>>:<br>
> >> >> > Dear collegues,<br>
> >> >> ><br>
> >> >> > i've checked current russian translation in horizon repository<br>
and<br>
> > find<br>
> >> >> > out<br>
> >> >> > that we have wrong plural formula in upstream.<br>
> >> >> ><br>
> >> >> > <a href="https://github.com/openstack/horizon/blob/master/" rel="noreferrer" target="_blank">https://github.com/openstack/horizon/blob/master/</a><br>
> >> >> openstack_dashboard/locale/ru/LC_MESSAGES/django.po#L35-L37<br>
> >> >> ><br>
> >> >> > There is only 3 plural forms in Russian.<br>
> >> >> > And correct formula should be<br>
> >> >> > nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 &&<br>
n%10<=4<br>
> > &&<br>
> >> >> > (n%100<10 || n%100>=20) ? 1 : 2);<br>
> >> >> ><br>
> >> >> > Looks like some script is wrong.<br>
> >> >> > Does anybody know how to fix it?<br>
> >> >> ><br>
> >> >> > Kind regards,<br>
> >> >> > Ilya Alekseyev<br>
> >> >> ><br>
> >> >> > _______________________________________________<br>
> >> >> > Openstack-i18n mailing list<br>
> >> >> > <a href="mailto:Openstack-i18n@lists.openstack.org">Openstack-i18n@lists.openstack.org</a><br>
> >> >> ><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n</a><br>
> >> >> ><br>
> >><br>
> ><br>
> ><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>