tahoma2d/toonz/sources/translations/update.sh
Konstantin Dmitriev 085f88d57d Add script for updating/adding translation TS files (#1709)
* Add script for updating/adding translation TS files for particular language.

Usage: update.sh LANGUAGE

With this script it is easy to create new language. I.e. just execute "update.sh portuguese" to add Portuguese language.
2018-05-28 08:54:04 +09:00

16 lines
423 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/ -ts toonz.ts
lupdate ../../toonzlib/ -ts toonzlib.ts
lupdate ../../toonzqt/ -ts toonzqt.ts