diff options
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/rebase-translations.sh | 10 |
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 |