Skip to content

Commit

Permalink
wmlxgettext: Accept single-quoted textdomains in Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 6, 2016
1 parent 72b01c8 commit 5bd0466
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/wmlxgettext
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5bd0466

Please sign in to comment.