ZwiiCMS/core/module/translate/view/index/index.php

124 lines
4.4 KiB
PHP
Raw Normal View History

2020-11-11 19:48:07 +01:00
<?php echo template::formOpen('translateForm'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('translateFormBack', [
'class' => 'buttonGrey',
2020-11-14 14:52:18 +01:00
'href' => helper::baseUrl(),
2020-11-11 19:48:07 +01:00
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
2021-05-20 21:52:09 +02:00
<div class="col2 offset8">
2020-11-11 19:48:07 +01:00
<?php echo template::submit('translateFormSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2021-05-20 21:52:09 +02:00
<h4>Langues supportées</h4>
<div class="row">
<div class="col6">
2021-05-20 21:52:09 +02:00
<b>Traduction automatique :</b>
<div class="col12">
<?php echo template::checkbox('translateScriptFlagDE', true, 'Allemand', [
'checked' => $this->getData(['config','translate', 'scriptDE'])
]); ?>
2021-05-20 21:52:09 +02:00
</div>
<div class="col12">
<?php echo template::checkbox('translateScriptFlagEN', true, 'Anglais', [
'checked' => $this->getData(['config','translate', 'scriptEN'])
]); ?>
2021-05-20 21:52:09 +02:00
</div>
<div class="col12">
<?php echo template::checkbox('translateScriptFlagES', true, 'Espagnol', [
'checked' => $this->getData(['config','translate', 'scriptES'])
]); ?>
</div>
<div class="col12">
<?php echo template::checkbox('translateScriptFlagIT', true, 'Italien', [
'checked' => $this->getData(['config','translate', 'scriptIT'])
2020-11-24 15:29:47 +01:00
]); ?>
2020-11-25 14:04:04 +01:00
</div>
2021-05-20 21:52:09 +02:00
<div class="col12">
<?php echo template::checkbox('translateScriptFlagNL', true, 'Néerlandais', [
'checked' => $this->getData(['config','translate', 'scriptNL'])
2020-11-25 14:04:04 +01:00
]); ?>
</div>
2021-05-20 21:52:09 +02:00
<div class="col12">
<?php echo template::checkbox('translateScriptFlagPT', true, 'Portugais', [
'checked' => $this->getData(['config','translate', 'scriptPT'])
2020-11-25 14:04:04 +01:00
]); ?>
</div>
2021-05-20 21:52:09 +02:00
<div class="col12">
<?php echo template::checkbox('translateAutoDetect', true, 'Détection automatique', [
'checked' => $this->getData(['config','translate', 'autoDetect']),
'help' => 'Détecte la langue du navigateur.'
]); ?>
</div>
2020-11-24 15:29:47 +01:00
</div>
2020-11-24 19:00:23 +01:00
<div class="col6">
2021-05-20 21:52:09 +02:00
<b>Traduction rédigée :</b>
<div class="col12">
<?php echo template::checkbox('translateSiteFlagEN', true, 'Anglais', [
'checked' => $this->getData(['config', 'translate', 'siteEN'])
]); ?>
</div>
<div class="col12">
<?php echo template::checkbox('translateSiteFlagDE', true, 'Allemand', [
'checked' => $this->getData(['config', 'translate', 'siteDE'])
]); ?>
</div>
<div class="col12">
<?php echo template::checkbox('translateSiteFlagES', true, 'Espagnol', [
'checked' => $this->getData(['config', 'translate', 'siteES'])
]); ?>
</div>
<div class="col12">
<?php echo template::checkbox('translateSiteFlagIT', true, 'Italien', [
'checked' => $this->getData(['config', 'translate', 'siteIT'])
2020-11-25 14:04:04 +01:00
]); ?>
</div>
2021-05-20 21:52:09 +02:00
<div class="col12">
<?php echo template::checkbox('translateSiteFlagNL', true, 'Néerlandais', [
'checked' => $this->getData(['config', 'translate', 'siteNL'])
2020-11-25 14:04:04 +01:00
]); ?>
</div>
2021-05-20 21:52:09 +02:00
<div class="col12">
<?php echo template::checkbox('translateSiteFlagPT', true, 'Portugais', [
'checked' => $this->getData(['config', 'translate', 'sitePT'])
2020-11-24 19:00:23 +01:00
]); ?>
2020-11-25 14:04:04 +01:00
</div>
</div>
</div>
2020-11-22 13:32:20 +01:00
</div>
2020-11-11 19:48:07 +01:00
</div>
</div>
2021-05-20 21:52:09 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4>Paramètres de traduction automatique</h4>
<div class="row">
<div class="col4">
<?php echo template::checkbox('translateScriptGoogle', true, 'Active le script de traduction automatique', [
'checked' => $this->getData(['config','translate', 'scriptGoogle'])
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('translateAdmin', true, 'Mode connexion', [
'checked' => $this->getData(['config','translate', 'admin']),
'help' => 'Traduction automatique du site et de l\'interface du CMS'
]); ?>
</div>
<div class="col4">
<?php echo template::checkbox('translateCredits', true, 'Afficher les crédits du script Google', [
'checked' => $this->getData(['config','translate', 'showCredits']),
'help' => 'Option vivement recommandée pour le respect du droit d\'auteur'
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>
2020-11-11 19:48:07 +01:00
<?php echo template::formClose(); ?>