Browse Source

Use new plural formula.

master
Andrius Štikonas 10 years ago
parent
commit
c1adc872ff
  1. 4
      init-po-files

4
init-po-files

@ -45,8 +45,8 @@ for dir in `ls`; do
echo -e $RED"$dir/$po"$ENDCOLOR
msginit -i "$file" -o "$podir/$po" --no-translator
svn add "$podir/$po"
sed -ie 's/\"Plural-Forms: nplurals=3; plural=(n%10==1 \&\& n%100!=11 ? 0 : n%10>=2 \&\& (n"/\"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10==1 \&\& n%100!=11 ? 1 : n%\"/
s/\"%100<10 || n%100>=20) ? 1 : 2);\\n\"/"10>=2 \&\& (n%100<10 || n%100>=20) ? 2 : 3);\\n\"/
sed -ie 's/\"Plural-Forms: nplurals=3; plural=(n%10==1 \&\& n%100!=11 ? 0 : n%10>=2 \&\& (n"/"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10>=2 \&\& (n%100<10 || n"/
s/\"%100<10 || n%100>=20) ? 1 : 2);\\n\"/"%100>=20) ? 1 : n%10==0 || (n%100>10 \&\& n%100<20) ? 2 : 3);\\n"/
/\"Language: lt\\n\"/d' "$podir/$po"
rm "$podir/$po"e
fi

Loading…
Cancel
Save