This commit is contained in:
Dennis Eichhorn 2021-04-24 16:21:10 +02:00
parent 12308efbed
commit 47767eea0d

View File

@ -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;
}
/**