summaryrefslogtreecommitdiff
path: root/po/remake_language.po.in
diff options
context:
space:
mode:
Diffstat (limited to 'po/remake_language.po.in')
-rwxr-xr-xpo/remake_language.po.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/po/remake_language.po.in b/po/remake_language.po.in
new file mode 100755
index 0000000..38c3ed6
--- /dev/null
+++ b/po/remake_language.po.in
@@ -0,0 +1,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
+
+