From cccfbdf41819a4f42e797a3e758762f5abd0fde5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 12 Feb 2022 20:26:56 +0100 Subject: [PATCH] fix exporter --- Interfaces/OMS/Exporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Interfaces/OMS/Exporter.php b/Interfaces/OMS/Exporter.php index 19213c0..d36da43 100755 --- a/Interfaces/OMS/Exporter.php +++ b/Interfaces/OMS/Exporter.php @@ -189,7 +189,7 @@ final class Exporter extends ExporterAbstract } } - // search for translations in tpl files which are not included in the language fieles + // search for translations in tpl files which are not included in the language files $tplKeys = []; foreach ($themes as $theme) { if (!\is_dir($themePath . $theme) || $theme === '.' || $theme === '..') { @@ -218,7 +218,7 @@ final class Exporter extends ExporterAbstract \preg_match_all('/(\$this\->getHtml\(\')([0-9a-zA-Z:\-]+)(\'\))/', $template, $keys, \PREG_PATTERN_ORDER); foreach ($keys[2] ?? [] as $key) { - if (!isset($languageArray[''][$module][$theme][$key])) { + if (!isset($languageArray[$module][$theme][''][$key])) { $tplKeys[$module][$theme][''][$key]['en'] = ''; $languageArray[$module][$theme][''][$key]['en'] = ''; }