summaryrefslogtreecommitdiff
path: root/tools/to-pack/sub-script/translation-local.sh
blob: 2e56f15911d975727a45bef753c1f1d817d4a7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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