Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Add script for updating/adding translation TS files (#1709)

Konstantin Dmitriev085f88d57dc9
diff --git a/toonz/sources/translations/update.sh b/toonz/sources/translations/update.sh
new file mode 100755
index 000000000..6a66657e1
--- /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
+