Skip to content
Snippets Groups Projects
Commit ec7b59a8 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix incorrect use

parent a7251ffd
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,7 @@ class Localization
if (file_exists($poPath) && is_readable($poPath)) {
$poLoader = new PoLoader();
$translations = $poLoader->loadFile($poPath);
$this->translator->createFromTranslations($translations);
$this->translator = Translator::createFromTranslations($translations);
} else {
$error = "Localization file '$poFile' not found in '$langPath', falling back to default";
Logger::debug($_SERVER['PHP_SELF'] . ' - ' . $error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment