Comment 9 for bug 121555

Revision history for this message
Luka Frelih (luka) wrote :

in debian there are 2 index-incompatible variants (position rotated one place), each appearing in a few slight variations of parentheses and spacing.
the single fomula in ubuntu seems to be the most popular one in debian, but the other 1 place rotated formula which causes this bug is used in more than a third of the files.
all the formulas use plurals based on n modulo 100.

why? most likely because it all works in gettext.

sample edited output of grep on pofiles:
$ grep -h1 Plural-Forms debian/* | sort | uniq -c | sort -n
      1 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
      1 "Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || "
      1 "n%100==4 ? 3 : 0);\n"
      1 "Plural-Forms: Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? "
      1 "2 : n%100==3 || n%100==4 ? 3 : 0);\n"
      7 "Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%"
      7 "100==4 ? 2 : 3\n"
     18 "Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n"
     18 "%100==4 ? 3 : 0);\n"
     23 "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
     23 "%100==4 ? 2 : 3);\n"
     51 --
$ grep -h1 Plural-Forms ubuntu/* | sort | uniq -c | sort -n
     52 "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
     52 "%100==4 ? 2 : 3);\n"
     52 --

would be nice if both variants were detected as valid slovenian and imported in a compatible way. (merged)