Address feature request in bug #16309:
...add support for adding textdomain tags to .lua files in change_textdomain.
This commit is contained in:
parent
13b1503875
commit
c989a906cb
1 changed files with 11 additions and 0 deletions
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue