forked from ZwiiCMS-Team/ZwiiCMS
Nom de variable
This commit is contained in:
parent
0eafd2edfa
commit
6f257433a5
@ -24,6 +24,7 @@ class translate extends common {
|
||||
* Configuration
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
// Soumission du formulaire
|
||||
if($this->isPost()) {
|
||||
$this->setData(['config','translate', [
|
||||
@ -31,21 +32,21 @@ class translate extends common {
|
||||
'showCredits' => $this->getInput('translateCredits', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false,
|
||||
'autoDetect' => $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN),
|
||||
'admin' => $this->getInput('translateAdmin', helper::FILTER_BOOLEAN),
|
||||
'scriptFR' => $this->getInput('translateFlagScriptFR', helper::FILTER_BOOLEAN),
|
||||
'scriptDE' => $this->getInput('translateFlagScriptDE', helper::FILTER_BOOLEAN),
|
||||
'scriptEN' => $this->getInput('translateFlagScriptEN', helper::FILTER_BOOLEAN),
|
||||
'scriptES' => $this->getInput('translateFlagScriptES', helper::FILTER_BOOLEAN),
|
||||
'scriptIT' => $this->getInput('translateFlagScriptIT', helper::FILTER_BOOLEAN),
|
||||
'scriptNL' => $this->getInput('translateFlagScriptNL', helper::FILTER_BOOLEAN),
|
||||
'scriptPT' => $this->getInput('translateFlagScriptPT', helper::FILTER_BOOLEAN),
|
||||
'scriptFR' => $this->getInput('translateScriptFlagFR', helper::FILTER_BOOLEAN),
|
||||
'scriptDE' => $this->getInput('translateScriptFlagDE', helper::FILTER_BOOLEAN),
|
||||
'scriptEN' => $this->getInput('translateScriptFlagEN', helper::FILTER_BOOLEAN),
|
||||
'scriptES' => $this->getInput('translateScriptFlagES', helper::FILTER_BOOLEAN),
|
||||
'scriptIT' => $this->getInput('translateScriptFlagIT', helper::FILTER_BOOLEAN),
|
||||
'scriptNL' => $this->getInput('translateScriptFlagNL', helper::FILTER_BOOLEAN),
|
||||
'scriptPT' => $this->getInput('translateScriptFlagPT', helper::FILTER_BOOLEAN),
|
||||
'site' => $this->getInput('translateSite', helper::FILTER_BOOLEAN),
|
||||
'siteFR' => $this->getInput('translateFlagSiteFR', helper::FILTER_BOOLEAN),
|
||||
'siteDE' => $this->getInput('translateFlagSiteDE', helper::FILTER_BOOLEAN),
|
||||
'siteEN' => $this->getInput('translateFlagSiteEN', helper::FILTER_BOOLEAN),
|
||||
'siteES' => $this->getInput('translateFlagSiteES', helper::FILTER_BOOLEAN),
|
||||
'siteIT' => $this->getInput('translateFlagSiteIT', helper::FILTER_BOOLEAN),
|
||||
'siteNL' => $this->getInput('translateFlagSiteNL', helper::FILTER_BOOLEAN),
|
||||
'sitePT' => $this->getInput('translateFlagSitePT', helper::FILTER_BOOLEAN)
|
||||
'siteFR' => $this->getInput('translateSiteFlagFR', helper::FILTER_BOOLEAN),
|
||||
'siteDE' => $this->getInput('translateSiteFlagDE', helper::FILTER_BOOLEAN),
|
||||
'siteEN' => $this->getInput('translateSiteFlagEN', helper::FILTER_BOOLEAN),
|
||||
'siteES' => $this->getInput('translateSiteFlagES', helper::FILTER_BOOLEAN),
|
||||
'siteIT' => $this->getInput('translateSiteFlagIT', helper::FILTER_BOOLEAN),
|
||||
'siteNL' => $this->getInput('translateSiteFlagNL', helper::FILTER_BOOLEAN),
|
||||
'sitePT' => $this->getInput('translateSiteFlagPT', helper::FILTER_BOOLEAN)
|
||||
]]);
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
|
@ -31,39 +31,39 @@
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptFR', true, 'Français', [
|
||||
<?php echo template::checkbox('translateScriptFlagFR', true, 'Français', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptFR'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptDE', true, 'Allemand', [
|
||||
<?php echo template::checkbox('translateScriptFlagDE', true, 'Allemand', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptDE'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptEN', true, 'Anglais', [
|
||||
<?php echo template::checkbox('translateScriptFlagEN', true, 'Anglais', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptEN'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptES', true, 'Espagnol', [
|
||||
<?php echo template::checkbox('translateScriptFlagES', true, 'Espagnol', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptES'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptIT', true, 'Italien', [
|
||||
<?php echo template::checkbox('translateScriptFlagIT', true, 'Italien', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptIT'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptNL', true, 'Néerlandais', [
|
||||
<?php echo template::checkbox('translateScriptFlagNL', true, 'Néerlandais', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptNL'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagScriptPT', true, 'Portugais', [
|
||||
<?php echo template::checkbox('translateScriptFlagPT', true, 'Portugais', [
|
||||
'checked' => $this->getData(['config','translate', 'scriptPT'])
|
||||
]); ?>
|
||||
</div>
|
||||
@ -99,40 +99,40 @@
|
||||
<b>Sélectionnez les langues à activer :</b>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagSiteFR', true, 'Français', [
|
||||
<?php echo template::checkbox('translateSiteFlagFR', true, 'Français', [
|
||||
'checked' => true,
|
||||
'disabled' => true
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagSiteDE', true, 'Allemand', [
|
||||
<?php echo template::checkbox('translateSiteFlagDE', true, 'Allemand', [
|
||||
'checked' => $this->getData(['config', 'translate', 'siteDE'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagSiteEN', true, 'Anglais', [
|
||||
<?php echo template::checkbox('translateSiteFlagEN', true, 'Anglais', [
|
||||
'checked' => $this->getData(['config', 'translate', 'siteEN'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('translateFlagSiteES', true, 'Espagnol', [
|
||||
<?php echo template::checkbox('translateSiteFlagES', true, 'Espagnol', [
|
||||
'checked' => $this->getData(['config', 'translate', 'siteES'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('translateFlagSiteIT', true, 'Italien', [
|
||||
<?php echo template::checkbox('translateSiteFlagIT', true, 'Italien', [
|
||||
'checked' => $this->getData(['config', 'translate', 'siteIT'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('translateFlagSiteNL', true, 'Néerlandais', [
|
||||
<?php echo template::checkbox('translateSiteFlagNL', true, 'Néerlandais', [
|
||||
'checked' => $this->getData(['config', 'translate', 'siteNL'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::checkbox('translateFlagSitePT', true, 'Portugais', [
|
||||
<?php echo template::checkbox('translateSiteFlagPT', true, 'Portugais', [
|
||||
'checked' => $this->getData(['config', 'translate', 'sitePT'])
|
||||
]); ?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user