view 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 source
#!/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