From 526389b2d380177490605037fdc3a24ebc688fac Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Dec 2018 20:56:30 +0300 Subject: update notify_* calls to use Notify --- utils/extract-i18n-js.pl | 2 +- utils/update-translations.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/extract-i18n-js.pl b/utils/extract-i18n-js.pl index d6179fc70..b51e7ce5a 100755 --- a/utils/extract-i18n-js.pl +++ b/utils/extract-i18n-js.pl @@ -5,7 +5,7 @@ use strict; while () { chomp; - if (/(__|notify_progress|notify|notify_info|notify_error)\(['"](.*?)['"]\)/) { + if (/(__|Notify.progress|Notify.msg|Notify.info|Notify.error)\(['"](.*?)['"]\)/) { my $msg = $2; $msg =~ s/\"/\\\"/g; diff --git a/utils/update-translations.sh b/utils/update-translations.sh index b955ac28d..1ba50fa5c 100755 --- a/utils/update-translations.sh +++ b/utils/update-translations.sh @@ -3,9 +3,9 @@ TEMPLATE=messages.pot xgettext -kT_js_decl -kT_sprintf -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 --from-code utf-8 -k__ -knotify_info -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 Perl -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'` -xgettext --from-code utf-8 -k__ -knotify_info -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 -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'` update_lang() { if [ -f $1.po ]; then -- cgit v1.2.3