From 47767eea0d93fce176f09e7c92a1e4f798f4cd97 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 24 Apr 2021 16:21:10 +0200 Subject: [PATCH] fix --- Localization/L11nManager.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Localization/L11nManager.php b/Localization/L11nManager.php index d74011177..c94e55868 100644 --- a/Localization/L11nManager.php +++ b/Localization/L11nManager.php @@ -166,7 +166,7 @@ final class L11nManager /** @var string $class */ if (!Autoloader::exists($class)) { - return 'ERROR'; + return 'ERROR-' . $translation; } $this->loadLanguage($code, $module, $class::getLocalization($code, $theme)); @@ -178,9 +178,7 @@ final class L11nManager // @codeCoverageIgnoreEnd } - return isset($this->language[$code][$module][$translation]) - ? $this->language[$code][$module][$translation] - : 'ERROR'; + return $this->language[$code][$module][$translation] ?? 'ERROR-' . $translation; } /**