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