From c21fbb2d13fdc0c8a123d91be020145b235744a9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Feb 2021 12:59:13 +0300 Subject: rebase translations, fixing a few JS strings not mached; remove obsolete scripts (2) --- utils/rebase-translations.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'utils') 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 -- cgit v1.2.3