]> git.sesse.net Git - ccbs/blobdiff - intl/make-all-pot.sh
Start gettextifying Perl scripts (and thus titles) as well.
[ccbs] / intl / make-all-pot.sh
index 707ac76ef03ff122e2d23d6b37e2e077aa824b04..51e4eb38951663ebd8b0e0099a814a9590ce943c 100755 (executable)
@@ -3,13 +3,18 @@
 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
 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