Address feature request in bug #16309:

...add support for adding textdomain tags to .lua files in change_textdomain.
This commit is contained in:
Eric S. Raymond 2010-08-19 10:58:25 +00:00
parent 13b1503875
commit c989a906cb

View file

@ -143,6 +143,17 @@ add_textdomain()
${do} cp /tmp/ctd$$.tmp $file
fi
done
for file in `find data -name "*.lua" -print`
do
if grep '#textdomain' $file >/dev/null
then
:
else
${do} echo "--! #textdomain wesnoth" >/tmp/ctd$$.tmp
${do} cat $file >>/tmp/ctd$$.tmp
${do} cp /tmp/ctd$$.tmp $file
fi
done
}
if [ "$1" = "-h" -o "$1" = "--help" ]