Commit 09800947 authored by Henning Leutz's avatar Henning Leutz 🥋

fix: Locale line break replacement at getByLang fixed; under certain...

fix: Locale line break replacement at getByLang fixed; under certain circumstances this was not done
parent d14cf4da
......@@ -449,7 +449,10 @@ class Locale
public function getByLang($lang, $group, $value = false, $replace = false)
{
if ($replace === false || empty($replace)) {
return $this->getHelper($group, $value, $lang);
$str = $this->getHelper($group, $value, $lang);
$str = str_replace('{\n}', PHP_EOL, $str);
return $str;
}
$str = $this->getHelper($group, $value, $lang);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment