18 lines
669 B
Bash
Executable File
18 lines
669 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source "`dirname $0`/ths-variables"
|
|
|
|
./poupdate -NS trunk stable pot-stable
|
|
./poupdate -NS doc-trunk doc-stable doc-pot-stable
|
|
|
|
echo -e $BLUE"Running sed script on all files..."$ENDCOLOR
|
|
|
|
for po in `find stable doc-stable -follow -name "*.po"`; do
|
|
sed -ie 's/\"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10==1 \&\& n%100!=11 ? 1 : n\"/\"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10==1 \&\& n%100!=11 ? 1 : n%\"/
|
|
s/\"%10>=2 \&\& (n%100<10 || n%100>=20) ? 2 \: 3);\\n\"/\"10>=2 \&\& (n%100<10 || n%100>=20) ? 2 \: 3);\\n\"/
|
|
/\"Language: lt\\n\"/d
|
|
/\"Content-Transfer-Encoding: 8bit\\n\"/ a\
|
|
\"Language: lt\\n\"' "$po"
|
|
rm "$po"e
|
|
done
|