Possible solution to avoid issues with JS and apostrophe of other languages strings

This commit is contained in:
Jose Gonzalez 2019-12-03 13:05:33 +01:00
parent 2deee86f53
commit 35ca0bc247
1 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ function __($string /*, variable arguments */)
return $string;
}
return $l10n->translate($string);
return str_replace('\'', '`', $l10n->translate($string));
}
$args = func_get_args();
@ -465,7 +465,7 @@ function __($string /*, variable arguments */)
return vsprintf($string, $args);
}
return vsprintf($l10n->translate($string), $args);
return vsprintf(str_replace('\'', '`', $l10n->translate($string)), $args);
}