diff --git a/wire/modules/LanguageSupport/LanguageParser.php b/wire/modules/LanguageSupport/LanguageParser.php index 1efcba24..fdeb59e9 100644 --- a/wire/modules/LanguageSupport/LanguageParser.php +++ b/wire/modules/LanguageSupport/LanguageParser.php @@ -228,7 +228,7 @@ class LanguageParser extends Wire { // Find __('text', textdomain) style matches preg_match_all( - '/([\s.=(\\\\]__|^__)\(\s*' . // __( + '/([\s.=(\\\\,]__|=>__|^__)\(\s*' . // __( '([\'"])(.+?)(?_x('text', 'context') style matches preg_match_all( - '/([\s.=>(\\\\]_x|^_x)\(\s*' . // _x( or $this->_x( + '/([\s.=>(\\\\,]_x|^_x)\(\s*' . // _x( or $this->_x( '([\'"])(.+?)(?_n(...) style matches preg_match_all( - '/([\s.=>(\\\\]_n|^_n)\(\s*' . // _n( or $this->_n( + '/([\s.=>(\\\\,]_n|^_n)\(\s*' . // _n( or $this->_n( '([\'"])(.+?)(?