translate / pootle

Online translation tool
http://pootle.translatehouse.org
GNU General Public License v3.0
1.49k stars 288 forks source link

Enhancement - improve hints for plural forms #6115

Open leonardcj opened 7 years ago

leonardcj commented 7 years ago

The idea is to display plural equation fragments when showing multiple boxes so localizers know what plural 0, plural 1 and plural 2 are supposed to be.

So for a language like Czech nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;

You would have three boxes, each tagged to show what the right part of the plural equation is.

It would help a lot for the Baltic and Eastern European languages.

dwaynebailey commented 7 years ago

@leonardcj this is what current master displays for Plurals

screen shot 2017-03-16 at 10 20 31

I think it may be more useful if we were able to display the examples as exist in CLDR plurals.

leonardcj commented 7 years ago

The current display is improved from prior versions for sure. It gets a little trickier when you have more than two nplurals because the English POT text will only provide you with two forms.