summaryrefslogtreecommitdiff
path: root/dist/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'dist/scripts')
-rwxr-xr-xdist/scripts/po2mo.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/scripts/po2mo.sh b/dist/scripts/po2mo.sh
new file mode 100755
index 0000000..7be049b
--- /dev/null
+++ b/dist/scripts/po2mo.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+for f in *.po
+do
+ mo_dir=${f%%.po}.utf8/LC_MESSAGES/
+ [ -d "$mo_dir" ] || mkdir -p "$mo_dir"
+
+ echo msgfmt -o "$mo_dir/editablesite.mo" "$f"
+ msgfmt -o "$mo_dir/editablesite.mo" "$f"
+done