diff --git a/utils/wmlxgettext b/utils/wmlxgettext index e9653658a303..3b47a1b2aae5 100755 --- a/utils/wmlxgettext +++ b/utils/wmlxgettext @@ -228,11 +228,11 @@ sub read_lua_file { next LINE if m/^\s*--/ and not defined $str and not m/--\s*wmlxgettext/; # change the textdomain - if (m/textdomain\s*\(?\s*"([^"]+)"(.*)/) { - $curdomain = $1; + if (m/textdomain\s*\(?\s*(["'])([^"]+)\g1(.*)/) { + $curdomain = $2; # process rest of the line - $_ = $2 . "\n"; + $_ = $3 . "\n"; redo LINE; }