From 5bd0466069f88cee9a1d7c418a30861e3f58f2bb Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 6 Mar 2016 17:05:20 -0500 Subject: [PATCH] wmlxgettext: Accept single-quoted textdomains in Lua --- utils/wmlxgettext | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }