view misc/update-i18n.sh @ 411:9f6436615ac7

I had put the Info.plist in deploy/osx/ before I noticed it was also in osx/ -- sorry. Removing from osx/ -- we really need the plist to be written by deploy/osx/deploy.sh (and not by qmake) because we need the version number in it. However, leaving it in the .pro file anyway so we don't end up with nothing at least if nobody runs deploy.sh
author Chris Cannam
date Fri, 08 Apr 2011 16:39:23 +0100
parents 249fe3768d91
children bd3cb9d6db66
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 \
	../svcore/*/*.h ../svcore/*/*.cpp \
	../svcore/*/*/*.h ../svcore/*/*/*.cpp \
	../svgui/*/*.h ../svgui/*/*.cpp \
	../svapp/*/*.h ../svapp/*/*.cpp \
	*/*.h */*.cpp \
	-ts i18n/sonic-visualiser_$LANG.ts
done

for LANG in $LANGUAGES; do
    $LRELEASE i18n/sonic-visualiser_$LANG.ts
done