Skip to content
Snippets Groups Projects
Commit 86a30964 authored by Austin King's avatar Austin King Committed by Lloyd Hilaiel
Browse files

Initialize pot file each run. Removing -j which mean 'write strings into...

Initialize pot file each run. Removing -j which mean 'write strings into existing file'. (closes #1170, closes #1194)
parent 9a6a6fc8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment