view misc/update-i18n.sh @ 1315:ed3009a50f81 piper

Make SVDEBUG always write to a log file -- formerly this was disabled in NDEBUG builds. I think there's little use to that, it just means that we keep adding more cerr debug output because we aren't getting the log we need. And SVDEBUG logging is not usually used in tight loops, I don't think the performance overhead is too serious. Also update the About box.
author Chris Cannam
date Thu, 03 Nov 2016 14:57:00 +0000
parents bd3cb9d6db66
children
line wrap: on
line source
#!/bin/sh

LUPDATE="lupdate"
LRELEASE="lrelease"

if lupdate-qt5 -version >/dev/null 2>&1; then
    LUPDATE="lupdate-qt5"
    LRELEASE="lrelease-qt5"
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