Create translation release scripts

This commit is contained in:
manongjohn 2023-03-24 08:01:48 -04:00
parent 2c06ebacd4
commit aa07f2c73c
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/bin/bash
#
# Usage: release.sh LANGUAGE DESTINATION
BASE_DIR=$(cd `dirname "$0"`; pwd)
TOONZLANG=$1
DESTINATION=$2
[ -d "${BASE_DIR}/${TOONZLANG}" ] || mkdir -p ../../../stuff/config/loc/${DESTINATION}
cd "${BASE_DIR}/${TOONZLANG}"
lrelease colorfx.ts -qm colorfx.qm
lrelease tnzcore.ts -qm tnzcore.qm
lrelease toonz.ts -qm toonz.qm
lrelease toonzqt.ts -qm toonzqt.qm
lrelease image.ts -qm image.qm
lrelease tnztools.ts -qm tnztools.qm
lrelease toonzlib.ts -qm toonzlib.qm
mv *.qm ../../../../stuff/config/loc/${DESTINATION}

View file

@ -0,0 +1,16 @@
#!/bin/bash
#
# Usage: releaseAll.sh
BASE_DIR=$(cd `dirname "$0"`; pwd)
./release.sh brazilian-portuguese 'Português(Brasil)'
./release.sh chinese 中文
./release.sh czech Čeština
./release.sh french Français
./release.sh german Deutsch
./release.sh italian Italiano
./release.sh japanese 日本語
./release.sh korean 한국어
./release.sh russian Русский
./release.sh spanish Español

View file

@ -15,3 +15,7 @@ lupdate ../../toonzlib/ -ts toonzlib.ts
lupdate ../../toonzqt/ -ts toonzqt.ts
lupdate ../../image/ -ts image.ts
if [ "$OSTYPE" = "msys" ]
then
unix2dos *.ts
fi