summaryrefslogtreecommitdiff
path: root/po/remake_language.po.in
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:04:58 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:04:58 +0000
commit2d113e8792747151bf5d830f1a1485f2f951f940 (patch)
treef29e273d53fe5735cdac171504d798bf45ea2007 /po/remake_language.po.in
Imported Upstream version 0.50upstream/0.50
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
+
+