summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-03 15:46:54 +0300
committerAndrew Dolgov <[email protected]>2018-12-03 15:46:54 +0300
commit4cb3a601a0fbeb0bf98c932bd5af8a3cffa8ab64 (patch)
treeed3dae8894591be12287b3cce3ff5b4cc6d1ce0e /utils
parentcd0a39ea4cb7137aef5b225bdc4472d207a48e62 (diff)
parent98986ce066764158c045c3e23b69e98183b94236 (diff)
Merge branch 'js-objects' into weblate-integration
Diffstat (limited to 'utils')
-rwxr-xr-xutils/extract-i18n-js.pl2
-rwxr-xr-xutils/update-translations.sh4
2 files changed, 3 insertions, 3 deletions
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 (<STDIN>) {
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