Fix parsing of starting and ending translation string quotes

This commit is contained in:
Tautvidas Sipavičius
2017-01-30 17:35:03 +02:00
parent cb8c32e171
commit af2a6b2559

View File

@@ -287,7 +287,8 @@ class StringExtractor {
$arguments = array();
foreach($arguments_matches[0] as $argument) {
$arguments[] = trim($argument, "'\"");
// Remove surrounding quotes of the same type from argument strings
$arguments[] = preg_replace("/^(('|\")+)(.*)\\1$/", "\\3", $argument);
}
$call = array(