forked from visualfc/liteide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_tr.sh
executable file
·28 lines (21 loc) · 910 Bytes
/
update_tr.sh
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
#!/bin/sh
export BUILD_ROOT=$PWD
if [ -z $LITEIDE_ROOT ]; then
export LITEIDE_ROOT=$PWD/../liteidex
fi
echo GOROOT=$GOROOT
echo QTDIR=$QTDIR
echo BUILD_ROOT=$BUILD_ROOT
echo LITEIDE_ROOT=$LITEIDE_ROOT
echo .
if [ -z $QTDIR ]; then
echo 'error, QTDIR is null'
exit 1
fi
echo compress translator files
lrelease -compress $LITEIDE_ROOT/liteide_zh.ts -qm $LITEIDE_ROOT/deploy/translations/liteide_zh.qm
lrelease -compress $LITEIDE_ROOT/liteide_zh_TW.ts -qm $LITEIDE_ROOT/deploy/translations/liteide_zh_TW.qm
lrelease -compress $LITEIDE_ROOT/liteide_de.ts -qm $LITEIDE_ROOT/deploy/translations/liteide_de.qm
lrelease -compress $LITEIDE_ROOT/liteide_fr.ts -qm $LITEIDE_ROOT/deploy/translations/liteide_fr.qm
lrelease -compress $LITEIDE_ROOT/liteide_ja.ts -qm $LITEIDE_ROOT/deploy/translations/liteide_ja.qm
lrelease -compress $LITEIDE_ROOT/liteide_ru.ts -qm $LITEIDE_ROOT/deploy/translations/liteide_ru.qm