From 085f88d57dc9a358646f91d0448a82aa941292a6 Mon Sep 17 00:00:00 2001 From: Konstantin Dmitriev Date: May 27 2018 23:54:04 +0000 Subject: 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. --- diff --git a/toonz/sources/translations/update.sh b/toonz/sources/translations/update.sh new file mode 100755 index 0000000..6a66657 --- /dev/null +++ b/toonz/sources/translations/update.sh @@ -0,0 +1,16 @@ +#!/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 +