File: gettextize

package info (click to toggle)
gtoaster 0.19991130-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,700 kB
  • ctags: 1,318
  • sloc: ansic: 12,739; sh: 353; makefile: 217; sed: 93
file content (10 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# update i18n informations

echo "creating po/POTFILES.in"
grep '_(' *.c *.h|cut -d: -f1 |sort -u > po/POTFILES.in

echo "extracting translatable strings"
for i in po/*.po;
do xgettext -d `basename $i .po` --keyword=_ --keyword=N_ -j -p po -C -f po/POTFILES.in;
done