Allow wesnoth.textdomain to be called with brackets

This commit is contained in:
Alexander van Gessel 2012-02-27 13:29:43 +01:00
parent ab8469354c
commit faf744aff3

View File

@ -228,7 +228,7 @@ sub read_lua_file {
next LINE if m/^\s*--/ and not defined $str and not m/--\s*wmlxgettext/;
# change the textdomain
if (m/textdomain "([^"]+)"(.*)/) {
if (m/textdomain\s*\(?\s*"([^"]+)"(.*)/) {
$curdomain = $1;
# process rest of the line