summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-26 12:59:13 +0300
committerAndrew Dolgov <[email protected]>2021-02-26 12:59:13 +0300
commitc21fbb2d13fdc0c8a123d91be020145b235744a9 (patch)
treec037de28def449758ffc35632017ca043ac40b03 /utils
parent15cad4a9c07736394768a983dff500da20d8b1c9 (diff)
rebase translations, fixing a few JS strings not mached; remove obsolete scripts (2)
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rebase-translations.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/utils/rebase-translations.sh b/utils/rebase-translations.sh
index 51869986b..c1034b97d 100755
--- a/utils/rebase-translations.sh
+++ b/utils/rebase-translations.sh
@@ -1,11 +1,11 @@
#!/bin/sh
TEMPLATE=messages.pot
-xgettext -kT_js_decl -kT_sprintf -kT_nsprintf:1,2 -k_ngettext:1,2 -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'`
+xgettext -kT_sprintf -kT_nsprintf:1,2 -k_ngettext:1,2 -kT_ngettext:1,2 -k__ \
+ -L PHP -o $TEMPLATE *.php `find classes plugins include -iname '*.php'`
-xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress -kngettext -L Perl -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
-
-xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress -kngettext -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
+xgettext --from-code utf-8 -k__ -kNotify.info -kNotify.error -kNotify.progress \
+ -kngettext:1,2 -L JavaScript -j -o $TEMPLATE `find js plugins -iname '*.js'`
update_lang() {
if [ -f $1.po ]; then
@@ -23,5 +23,3 @@ for lang in $LANGS; do
PO_BASENAME=`echo $lang | sed s/.po//`
update_lang $PO_BASENAME
done
-
-#./utils/update-js-translations.sh