blob: 38c3ed6c94e0a80738c5ab2b9a9deac4627ddb76 (
plain)
1
2
3
4
5
6
7
8
9
10
|
if [ $# != 1 ]
then
echo "Usage: remake_language.po.in file[.po.in]"
exit -1
fi
cat $1.po.in | sed -e "/#original text/D" -e "/msgid/P" -e "s/msgid /_/g" - | sed -e "s/msgid/#original text:/g" >$1.po.in.tmp
gcc -E -P - <$1.po.in.tmp | sed -e "s/^_/msgid /g" - | cat newlanguage.po.in.header - >$1.po.in
rm $1.po.in.tmp
|