summaryrefslogtreecommitdiff
path: root/format_translations.sh
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-05-19 21:41:56 +0200
committerKevin Chabowski <kevin@kch42.de>2011-05-19 21:41:56 +0200
commit012646f3f726c37d84a0de9554db3a1d80145274 (patch)
tree82e4bedba40299daf68f31baf442cd788aebe45d /format_translations.sh
downloaddotstr_edit-012646f3f726c37d84a0de9554db3a1d80145274.tar.gz
dotstr_edit-012646f3f726c37d84a0de9554db3a1d80145274.tar.bz2
dotstr_edit-012646f3f726c37d84a0de9554db3a1d80145274.zip
Initial commit (uncoupled from sum2tools)
Diffstat (limited to 'format_translations.sh')
-rwxr-xr-xformat_translations.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/format_translations.sh b/format_translations.sh
new file mode 100755
index 0000000..f0c4536
--- /dev/null
+++ b/format_translations.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+for locale_dir in locale/*; do
+ for pofile in $locale_dir/LC_MESSAGES/*.po; do
+ mofile=`echo $pofile | sed -n "s/\\.po/\\.mo/p"`;
+ echo "$pofile => $mofile";
+ msgfmt "$pofile" -o "$mofile";
+ done;
+done;