Activation i18n ok

This commit is contained in:
Fred Tempez 2021-10-31 16:18:49 +01:00
parent 92cbc0b6d4
commit af6e4beb32
2 changed files with 13 additions and 2 deletions

View File

@ -482,7 +482,18 @@ class config extends common {
'autoDisconnect' => $this->getInput('connectAutoDisconnect',helper::FILTER_BOOLEAN),
],
'i18n' => [
'enable' => $this->getData(['config', 'i18n', 'enable'])
'enable' => $this->getInput('localei18n',helper::FILTER_BOOLEAN),
'scriptGoogle' => $this->getData(['config', 'i18n', 'scriptGoogle']),
'showCredits' => $this->getData(['config', 'i18n', 'showCredits']),
'autoDetect' => $this->getData(['config', 'i18n', 'autoDetect']),
'admin' => $this->getData(['config', 'i18n', 'admin']),
'fr' => $this->getData(['config', 'i18n', 'fr']),
'de' => $this->getData(['config', 'i18n', 'de']),
'en' => $this->getData(['config', 'i18n', 'en']),
'es' => $this->getData(['config', 'i18n', 'es']),
'it' => $this->getData(['config', 'i18n', 'it']),
'nl' => $this->getData(['config', 'i18n', 'nl']),
'pt' => $this->getData(['config', 'i18n', 'pt'])
]
]
]);

View File

@ -5,7 +5,7 @@
<h4>Langues étrangères</h4>
<div class="row">
<div class="col12">
<?php echo template::checkbox('localeI18n', true, 'Activer la gestion des langues étrangères', [
<?php echo template::checkbox('localei18n', true, 'Activer la gestion des langues étrangères', [
'checked' => $this->getData(['config', 'i18n', 'enable']),
'help'=> 'Une nouvelle icône apparaîtra dans la barre d\'administration. Consultez l\'aide de la page concernée pour en apprendre plus.'
]); ?>