X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=intl%2Fmake-all-pot.sh;fp=intl%2Fmake-all-pot.sh;h=51e4eb38951663ebd8b0e0099a814a9590ce943c;hp=1d513bfb585ffea6eb3712e1e99fadb0dace9106;hb=721adff0d70d1f13dee093b7a0620a2a9c088d02;hpb=f0e8278b0d9d92d49601e236e11c80a89695d682 diff --git a/intl/make-all-pot.sh b/intl/make-all-pot.sh index 1d513bf..51e4eb3 100755 --- a/intl/make-all-pot.sh +++ b/intl/make-all-pot.sh @@ -3,6 +3,11 @@ 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} + +# ...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