diff install-po.sh @ 478:a9925aaf5f61 1.0.1

i18n and Russian translation
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 08 Mar 2011 12:29:14 +0200
parents
children 4ea237bbcef8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/install-po.sh	Tue Mar 08 12:29:14 2011 +0200
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#Compiles and installs translation catalogs
+
+for pofile in po/*.po; do
+  molang=`echo $pofile | sed -e 's#po/\(.*\)\\.po#\\1#'`;
+  mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`;
+  mkdir -p Resources/locale/$molang/LC_MESSAGES
+  msgfmt $pofile -o Resources/locale/$molang/LC_MESSAGES/suspended-sentence.mo
+done