X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=intl%2Fmake-all-pot.sh;h=0e4958b0ef20510fc08a3ed0304ef68feee4b77c;hp=707ac76ef03ff122e2d23d6b37e2e077aa824b04;hb=7b8b747f037d2244ffd080e97d9d5e5c0e9114a7;hpb=31c8c1f081e2f04dd0a2635aa27cf8dfdfb1f400 diff --git a/intl/make-all-pot.sh b/intl/make-all-pot.sh index 707ac76..0e4958b 100755 --- a/intl/make-all-pot.sh +++ b/intl/make-all-pot.sh @@ -3,13 +3,21 @@ set -e rm -f templates/*.pot + +# Extract strings from all the Perl code +xgettext --keyword=_ --from-code=utf-8 -o templates/messages.pot -L Perl *.{pm,pl} + +# ...from the database +perl ../intl/make-season-pot.pl > templates/seasons.pot + +# ...and from all the TT templates for FILE in templates/*.tmpl; do echo $FILE... perl -I../intl ../intl/make-pot.pl $FILE | msguniq > $FILE.pot done msgcat templates/*.pot > po/templates.pot -# rm -f templates/*.pot +rm -f templates/*.pot for FILE in po/*.po; do msgmerge -U $FILE po/templates.pot