]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/data/locale-src/install
Added some modules from Riaan Booysen:
[wxWidgets.git] / wxPython / demo / data / locale-src / install
diff --git a/wxPython/demo/data/locale-src/install b/wxPython/demo/data/locale-src/install
new file mode 100755 (executable)
index 0000000..ee95d10
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+#----------------------------------------------------------------------
+# Run msgfmt on all the .po files, and install them to ../locale
+#----------------------------------------------------------------------
+
+DEST=../locale
+NAME=wxpydemo
+
+for po in ??.po ??_??.po; do
+    echo compiling message catalog for $po
+    BASE=`basename $po .po`
+    mkdir -p $DEST/$BASE/LC_MESSAGES
+    msgfmt -o $DEST/$BASE/LC_MESSAGES/$NAME.mo $po
+done
+