From 86a30964614643c60507116975ba19b23f66e7c0 Mon Sep 17 00:00:00 2001 From: Austin King <shout@ozten.com> Date: Fri, 24 Feb 2012 09:58:36 -0800 Subject: [PATCH] Initialize pot file each run. Removing -j which mean 'write strings into existing file'. (closes #1170, closes #1194) --- scripts/extract_po.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/extract_po.sh b/scripts/extract_po.sh index 5407ff264..92ef55b72 100755 --- a/scripts/extract_po.sh +++ b/scripts/extract_po.sh @@ -3,16 +3,17 @@ # syntax: # extract-po.sh +# No -j on first line, to clear out .pot file (Issue#1170) # messages.po is server side strings -xgettext -j --keyword=_ -L Perl --output-dir=locale/templates/LC_MESSAGES --from-code=utf-8 --output=messages.pot\ - `find lib -name '*.js' | grep -v 'i18n.js'` +xgettext --keyword=_ -L Perl --output-dir=locale/templates/LC_MESSAGES --from-code=utf-8 --output=messages.pot\ + `find lib -name '*.js' | grep -v 'i18n.js' | grep -v jwcrypto` xgettext -j -L PHP --keyword=_ --output-dir=locale/templates/LC_MESSAGES --output=messages.pot `find resources/views -name '*.ejs'` xgettext -j -L PHP --keyword=_ --output-dir=locale/templates/LC_MESSAGES --output=messages.pot `find lib/browserid -name '*.ejs'` # client.po # js -xgettext -j -L Perl --output-dir=locale/templates/LC_MESSAGES --from-code=utf-8 --output=client.pot\ +xgettext -L Perl --output-dir=locale/templates/LC_MESSAGES --from-code=utf-8 --output=client.pot\ `find resources/static -name '*.js' | grep -v /lib/ | grep -v /build/ | grep -v /production/ | grep -v 'gettext.js'` xgettext -j -L Perl --output-dir=locale/templates/LC_MESSAGES --output=client.pot `find resources/static/dialog/ -name '*.js' | grep -v include.js` # ejs -- GitLab