X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=intl%2Fmake-all-pot.sh;h=0e4958b0ef20510fc08a3ed0304ef68feee4b77c;hb=e919c30db9bc56b9b56668892ec3247696095928;hp=1d513bfb585ffea6eb3712e1e99fadb0dace9106;hpb=1de7e79dcc058716e94ce15af3d7a21aa517d660;p=ccbs diff --git a/intl/make-all-pot.sh b/intl/make-all-pot.sh index 1d513bf..0e4958b 100755 --- a/intl/make-all-pot.sh +++ b/intl/make-all-pot.sh @@ -3,6 +3,14 @@ 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