A Divendres, 11 de juny de 2010, Chusslove Illich va escriure: > > [: Yuri Chornoivan :] > > Is there any way to change the plural formula to [...] > > There is now, attached script (Pology needs to be added to PYTHONPATH, as > mentioned in its setup instructions). To convert to plural forms like for > Serbian (where the fourth form is for exactly n == 1), you would execute: > > $ modplforms.py $KDETRANSLATIONS/uk/messages \ > 'nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : > n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;' \ > '0>0,1>1,2>2,0>3' > > This will convert all PO files in the given path. The third argument is the > mapping of how to copy old forms to new forms: here it says to keep forms > 0, 1, 2 where they were, and to copy form 0 to form 3. It will output to > terminal the paths of modified files. And fuzzy the "wrong" entries? Albert