Translate : nom de variable

This commit is contained in:
Fred Tempez 2022-09-21 15:09:13 +02:00
parent 677ecaf19c
commit 55b4763cff
2 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ class translate extends common {
]);
// Sauvegarder les langues de contenu
$this->setData(['config', 'i18n', [
'interface' => $this->getInput('translateI18n'),
'interface' => $this->getInput('translateUI'),
'fr' => $this->getInput('translateFR'),
'de' => $this->getInput('translateDE'),
'en' => $this->getInput('translateEN'),
@ -272,7 +272,7 @@ class translate extends common {
];
}
}
// Générer la list des pages disponibles
// Générer la liste des pages disponibles
self::$pagesList = $this->getData(['page']);
foreach(self::$pagesList as $page => $pageId) {
if ($this->getData(['page',$page,'block']) === 'bar' ||

View File

@ -50,7 +50,7 @@
</h4>
<div class="row">
<div class="col4 offset4">
<?php echo template::select('translateI18n', $module::$i18nFiles, [
<?php echo template::select('translateUI', $module::$i18nFiles, [
'label' => 'Traductions installées',
'selected' => $this->getData(['config', 'i18n' , 'interface']),
]); ?>