chiark / gitweb /
some helper scripts for merging translations from Rosetta
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 24 Jan 2006 10:01:40 +0000 (10:01 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 24 Jan 2006 10:01:40 +0000 (10:01 +0000)
rosetta-merge [new file with mode: 0755]
rosetta-merge-all [new file with mode: 0755]

diff --git a/rosetta-merge b/rosetta-merge
new file mode 100755 (executable)
index 0000000..9119bc9
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/bash
+[ -e ../../../rosetta-$1/$2.po ] || exit
+msgmerge -q <(msgconv -t UTF-8 ../../../rosetta-$1/$2.po | msgattrib --no-obsolete -) <(msgconv -t UTF-8 $2.po | msgattrib --no-obsolete -) | msgmerge -q - <(msgconv -t UTF-8 $2.po | msgattrib --no-obsolete -) | diff -u --label $2.po <(msgconv -t UTF-8 $2.po) -
diff --git a/rosetta-merge-all b/rosetta-merge-all
new file mode 100755 (executable)
index 0000000..0dadc1e
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+for x in *.po; do rosetta-merge $1 ${x%.*} | view -; done