From d3b0e3487ed13ebd58a1340d19875b5a24537e01 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 2 Sep 2013 13:09:32 +0400 Subject: fix xgettext extraction of plural forms, replace wrong ngettext() calls with _ngettext(), rebase translations --- utils/update-translations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/update-translations.sh') diff --git a/utils/update-translations.sh b/utils/update-translations.sh index 4b8dab6b9..49d648043 100755 --- a/utils/update-translations.sh +++ b/utils/update-translations.sh @@ -1,7 +1,7 @@ #!/bin/sh TEMPLATE=messages.pot -xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'` +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 Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'` -- cgit v1.2.3 From f8eb8d78acef8beead4882cd46c2a36a3250809f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Sep 2014 15:11:06 +0400 Subject: use Perl instead of Java as a base language for JS files; rebase translations --- utils/update-translations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/update-translations.sh') diff --git a/utils/update-translations.sh b/utils/update-translations.sh index 49d648043..691aff07c 100755 --- a/utils/update-translations.sh +++ b/utils/update-translations.sh @@ -3,7 +3,7 @@ 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 Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'` +xgettext --from-code utf-8 -k__ -knotify_info -knotify_progress -kngettext -L Perl -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'` update_lang() { if [ -f $1.po ]; then -- cgit v1.2.3