diff options
Diffstat (limited to 'utils/update-translations.sh')
-rwxr-xr-x | utils/update-translations.sh | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/utils/update-translations.sh b/utils/update-translations.sh index 8e49fac56..4b8dab6b9 100755 --- a/utils/update-translations.sh +++ b/utils/update-translations.sh @@ -1,20 +1,14 @@ #!/bin/sh TEMPLATE=messages.pot -./utils/update-schema-translations.sh +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 -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php help/*.php mobile/*.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'` `find plugins -iname '*.js'` - -xgettext --from-code utf-8 -k__ -L Java -j -o $TEMPLATE js/*.js +xgettext --from-code utf-8 -k__ -knotify_info -knotify_progress -kngettext -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'` update_lang() { if [ -f $1.po ]; then - TMPFILE=/tmp/update-translations.$$ - - msgmerge -o $TMPFILE $1.po $TEMPLATE - mv $TMPFILE $1.po - msgfmt --statistics $1.po - msgfmt -o $1.mo $1.po + msgmerge --no-wrap --width 1 -U $1.po $TEMPLATE + msgfmt --statistics $1.po -o $1.mo else echo "Usage: $0 [-p|<basename>]" fi |