Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Fixing CHARSET warnings by re-writing CHARSET to UTF-8 when we create…
Browse files Browse the repository at this point in the history
… a new po template
  • Loading branch information
ozten committed Mar 28, 2012
1 parent 8fb201a commit a61299f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/extract_po.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
# messages.po is server side strings
xgettext --keyword=_ -L Perl --output-dir=locale/templates/LC_MESSAGES --from-code=utf-8 --output=messages.pot\
`find server -name '*.js' | grep -v 'i18n.js'`
sed -e 's/charset=CHARSET/charset=UTF-8/g' < locale/templates/LC_MESSAGES/messages.pot > messages.pot.tmp
mv messages.pot.tmp locale/templates/LC_MESSAGES/messages.pot
xgettext -j -L PHP --keyword=_ --output-dir=locale/templates/LC_MESSAGES --output=messages.pot `find server -name '*.ejs'`

# i18n-abide supports client-side gettext too. Usually you won't need this, unless your doing some
Expand Down

0 comments on commit a61299f

Please sign in to comment.