diff --git a/src/Tools/Gettext/PoTranslation.php b/src/Tools/Gettext/PoTranslation.php index 95e584d..593adb6 100644 --- a/src/Tools/Gettext/PoTranslation.php +++ b/src/Tools/Gettext/PoTranslation.php @@ -99,7 +99,7 @@ protected function _slash($text) $text = trim(addcslashes(stripslashes($text), '"')); if(strpos($text, "\n") > 0) { - return '"' . "\n" . implode('"\n"', explode("\n", $text)); + return implode('"' . PHP_EOL . '"', explode("\n", $text)); } return $text; }