wmlxgettext: Accept single-quoted textdomains in Lua
This commit is contained in:
parent
72b01c813a
commit
5bd0466069
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue