forked from cutelyst/cutelyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Messages.sh
executable file
·32 lines (20 loc) · 1.72 KB
/
Messages.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
28
29
30
31
32
#!/bin/sh
if [ ! -x "$QT5LUPDATE" ]; then
QT5LUPDATE=`which lupdate-qt5 2> /dev/null`; fi
if [ ! -x "$QT5LUPDATE" ]; then
QT5LUPDATE=`which lupdate5 2> /dev/null`; fi
if [ ! -x "$QT5LUPDATE" ]; then
QT5LUPDATE=`which lupdate 2> /dev/null`; fi
if [ ! -x "$QT5LUPDATE" ]; then
echo "lupdate can not be found or is not executable."; echo "Use export QT5LUPDATE=/path/to/lupdate"; exit 1; fi
for LANG in en de
do
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG cmd -ts cmd/i18n/cutelystcmd.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG server -ts server/i18n/cutelystserver.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG -no-recursive Cutelyst -ts Cutelyst/i18n/cutelystcore.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG Cutelyst/Plugins/Memcached -ts Cutelyst/Plugins/Memcached/i18n/plugin_memcached.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG Cutelyst/Plugins/CSRFProtection -ts Cutelyst/Plugins/CSRFProtection/i18n/plugin_csrfprotection.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG Cutelyst/Plugins/View/Cutelee -ts Cutelyst/Plugins/View/Cutelee/i18n/plugin_view_cutelee.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG Cutelyst/Plugins/View/Grantlee -ts Cutelyst/Plugins/View/Grantlee/i18n/plugin_view_grantlee.$LANG.ts
$QT5LUPDATE -no-obsolete -locations none -source-language en -target-language $LANG Cutelyst/Plugins/Utils/Validator -ts Cutelyst/Plugins/Utils/Validator/i18n/plugin_utils_validator.$LANG.ts
done