summaryrefslogtreecommitdiff
path: root/format_translations.sh
diff options
context:
space:
mode:
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;