]> git.sesse.net Git - ccbs/blob - intl/make-all-pot.sh
Shape text using Pango and HarfBuzz; gives us nice ligatures and exotic scripts.
[ccbs] / intl / make-all-pot.sh
1 #! /bin/sh
2
3 set -e
4
5 rm -f templates/*.pot
6
7 # Extract strings from all the Perl code
8 xgettext --keyword=_ --from-code=utf-8 -o templates/messages.pot -L Perl *.{pm,pl} 
9
10 # ...from the database
11 perl ../intl/make-season-pot.pl > templates/seasons.pot
12
13 # ...and from all the TT templates
14 for FILE in templates/*.tmpl; do
15         echo $FILE...
16         perl -I../intl ../intl/make-pot.pl $FILE | msguniq > $FILE.pot
17 done
18
19 msgcat templates/*.pot > po/templates.pot
20 rm -f templates/*.pot
21
22 for FILE in po/*.po; do
23         msgmerge -U $FILE po/templates.pot
24 done