diff --git a/src/includes/class/class.LSlang.php b/src/includes/class/class.LSlang.php index 79a9e64c..afcc580a 100644 --- a/src/includes/class/class.LSlang.php +++ b/src/includes/class/class.LSlang.php @@ -822,8 +822,8 @@ function _cli_output_php($fd) { * @return string The cleaned string */ function _cli_clean_for_pot_file($val) { - $val = str_replace('"', '\\"', $val); - return str_replace("\n", "\\n", $val); + $val = preg_replace('/([^\\\\])"/', '$1\"', $val); + return str_replace("\n", '\n', $val); } /**