3 domains
="freeciv nations ruledit"
5 if test "$1" == "" ; then
6 echo Usage
: $0 '<path to source root directory with trailing slash>'
10 for domain
in $domains ; do
11 if ! test -f $1/translations
/$domain/POTFILES.
in ; then
12 echo "Cannot find $1/translations/$domain/POTFILES.in" >&2
15 POTLIST
="$POTLIST $1/translations/$domain/POTFILES.in"
18 cat $POTLIST |
grep -v "^#" |
sed "s,^,$1," |
sort > /tmp
/potfile
20 echo Suggestions
for addition or removal of files with translatable
strings to
/from POTFILES.
in:
21 echo Please check the output manually
23 find "$1" -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.sav' -o -name '*.lua' -o -name '*.ruleset' -o -name '*.txt' -o -name '*.in' |
24 xargs grep -l -I '_("' |
26 diff -u /tmp
/potfile
- |