tahoma2d/toonz/sources/translations/update.sh
2023-03-24 08:01:48 -04:00

21 lines
No EOL
525 B
Bash
Executable file

#!/bin/bash
#
# Usage: update.sh LANGUAGE
BASE_DIR=$(cd `dirname "$0"`; pwd)
TOONZLANG=$1
[ -d "${BASE_DIR}/${TOONZLANG}" ] || mkdir -p "${BASE_DIR}/${TOONZLANG}"
cd "${BASE_DIR}/${TOONZLANG}"
lupdate ../../colorfx/ -ts colorfx.ts
lupdate ../../common/ -ts tnzcore.ts
lupdate ../../tnztools/ -ts tnztools.ts
lupdate ../../toonz/ ../../stopmotion/ -ts toonz.ts
lupdate ../../toonzlib/ -ts toonzlib.ts
lupdate ../../toonzqt/ -ts toonzqt.ts
lupdate ../../image/ -ts image.ts
if [ "$OSTYPE" = "msys" ]
then
unix2dos *.ts
fi