mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-13 00:08:41 +00:00
fix exporter
This commit is contained in:
parent
d286ba6066
commit
cccfbdf418
|
|
@ -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 = [];
|
$tplKeys = [];
|
||||||
foreach ($themes as $theme) {
|
foreach ($themes as $theme) {
|
||||||
if (!\is_dir($themePath . $theme) || $theme === '.' || $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);
|
\preg_match_all('/(\$this\->getHtml\(\')([0-9a-zA-Z:\-]+)(\'\))/', $template, $keys, \PREG_PATTERN_ORDER);
|
||||||
|
|
||||||
foreach ($keys[2] ?? [] as $key) {
|
foreach ($keys[2] ?? [] as $key) {
|
||||||
if (!isset($languageArray[''][$module][$theme][$key])) {
|
if (!isset($languageArray[$module][$theme][''][$key])) {
|
||||||
$tplKeys[$module][$theme][''][$key]['en'] = '';
|
$tplKeys[$module][$theme][''][$key]['en'] = '';
|
||||||
$languageArray[$module][$theme][''][$key]['en'] = '';
|
$languageArray[$module][$theme][''][$key]['en'] = '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user