Option du français

This commit is contained in:
fredtempez 2020-11-26 12:09:06 +01:00
parent 6c4aa26608
commit bafd6addbf
2 changed files with 9 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class translate extends common {
'showCredits' => $this->getInput('translateCredits', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false, 'showCredits' => $this->getInput('translateCredits', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false,
'autoDetect' => $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN), 'autoDetect' => $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN),
'admin' => $this->getInput('translateAdmin', helper::FILTER_BOOLEAN), 'admin' => $this->getInput('translateAdmin', helper::FILTER_BOOLEAN),
'fr' => 'site', 'fr' => $this->getInput('translateFR'),
'de' => $this->getInput('translateDE'), 'de' => $this->getInput('translateDE'),
'en' => $this->getInput('translateEN'), 'en' => $this->getInput('translateEN'),
'es' => $this->getInput('translateES'), 'es' => $this->getInput('translateES'),

View File

@ -49,6 +49,14 @@
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4>Drapeaux des langues supportées</h4> <h4>Drapeaux des langues supportées</h4>
<div class="row">
<div class="col4 offset4">
<?php echo template::select('translateFR', ['non'=>'Masqué','site'=>'Affiché'], [
'label' => 'Français',
'selected' => $this->getData(['config', 'translate' , 'fr'])
]); ?>
</div>
</div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<div class="col8 offset2"> <div class="col8 offset2">