]> git.sesse.net Git - ccbs/blobdiff - intl/make-all-pot.sh
There is no freshcolumnheading.
[ccbs] / intl / make-all-pot.sh
index ba7aeb7e5eefda8b37aa083413ac62b4608c446b..0e4958b0ef20510fc08a3ed0304ef68feee4b77c 100755 (executable)
@@ -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
@@ -11,3 +19,6 @@ done
 msgcat templates/*.pot > po/templates.pot
 rm -f templates/*.pot
 
+for FILE in po/*.po; do
+       msgmerge -U $FILE po/templates.pot
+done