diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2018-02-24 00:13:45 +0000 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2018-02-24 00:13:46 +0000 |
commit | 0fa6fb5a53789434e6ef57af39ab9024b7ec7d50 (patch) | |
tree | 9854613566cca815292f6fcad8e4d678afa30a9a /tools/to-pack/sub-script/translation-local.sh | |
parent | 2124f782c35cd832460d070186eaf72d935c1bdb (diff) | |
parent | b00b0c864574c3842effe1705b66066fa228f950 (diff) |
merge patched into master
Diffstat (limited to 'tools/to-pack/sub-script/translation-local.sh')
-rw-r--r-- | tools/to-pack/sub-script/translation-local.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/to-pack/sub-script/translation-local.sh b/tools/to-pack/sub-script/translation-local.sh new file mode 100644 index 0000000..2e56f15 --- /dev/null +++ b/tools/to-pack/sub-script/translation-local.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +if [ "${TEMP_PATH}" = "" ] +then + exit; +fi + +rm -Rf ${TEMP_PATH} + +cd ${ULTRACOPIER_SOURCE} +lupdate ultracopier-core.pro > /dev/null 2>&1 +lrelease -nounfinished -compress -removeidentical ultracopier-core.pro > /dev/null 2>&1 +PWD_BASE2=`pwd` +echo "update the .ts file" +for project in `find plugins/ plugins-alternative/ -maxdepth 2 -type d` +do + cd ${project}/ + for projectfile in `find ./ -name '*.pro' -type f` + do + if [ -f ${projectfile} ] + then + lupdate ${projectfile} > /dev/null 2>&1 + lrelease -nounfinished -compress -removeidentical ${projectfile} > /dev/null 2>&1 + fi + done + cd ${PWD_BASE2} +done + + + |