diff misc/update-i18n.sh @ 378:84fd4bb8d656

* Add misc/ directory from SVN repo
author Chris Cannam
date Mon, 18 Oct 2010 13:44:25 +0100
parents
children b19bef1bc3f1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/update-i18n.sh	Mon Oct 18 13:44:25 2010 +0100
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+LUPDATE="lupdate"
+LRELEASE="lrelease"
+
+if lupdate-qt4 -version >/dev/null 2>&1; then
+    LUPDATE="lupdate-qt4"
+    LRELEASE="lrelease-qt4"
+fi
+
+LANGUAGES="ru en_GB en_US cs_CZ"
+
+for LANG in $LANGUAGES; do
+    $LUPDATE */*.h */*/*.h */*.cpp */*/*.cpp \
+	-ts sv/i18n/sonic-visualiser_$LANG.ts
+done
+
+for LANG in $LANGUAGES; do
+    $LRELEASE sv/i18n/sonic-visualiser_$LANG.ts
+done
+