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>
|
2020-12-06 17:45:37 +01:00
|
|
|
<div class="col2 offset6">
|
|
|
|
<?php echo template::button('configAdvancedButton', [
|
|
|
|
'href' => helper::baseUrl() . 'translate/advanced',
|
|
|
|
'value' => 'Avancée',
|
|
|
|
'ico' => 'cog-alt',
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
2020-11-11 19:48:07 +01:00
|
|
|
<?php echo template::submit('translateFormSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
2020-12-04 12:56:20 +01:00
|
|
|
<div class="block" id="flagsWrapper">
|
2020-12-06 17:45:37 +01:00
|
|
|
<h4>Mode de traduction et affichage des drapeaux
|
|
|
|
<span class="helpDisplayButton">
|
|
|
|
<?php echo template::ico('help', 'left');?>
|
|
|
|
</span>
|
|
|
|
</h4>
|
2020-11-26 12:09:06 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col4 offset4">
|
2020-12-06 12:10:07 +01:00
|
|
|
<?php echo template::select('translateFR', ['none'=>'Drapeau masqué','site'=>'Drapeau affiché'], [
|
2020-11-26 12:09:06 +01:00
|
|
|
'label' => 'Français',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'fr'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="col8 offset2">
|
2020-12-06 17:45:37 +01:00
|
|
|
<?php echo template::select('translateDE', $module::$translateOptions['de'], [
|
2020-11-25 18:25:16 +01:00
|
|
|
'label' => 'Allemand',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'selected' => $this->getData(['config', 'translate' , 'de'])
|
2020-11-24 15:29:47 +01:00
|
|
|
]); ?>
|
2020-11-25 14:04:04 +01:00
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
2020-12-06 17:45:37 +01:00
|
|
|
<?php echo template::select('translateEN', $module::$translateOptions['en'], [
|
2020-11-25 18:25:16 +01:00
|
|
|
'label' => 'Anglais',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'selected' => $this->getData(['config', 'translate' , 'en'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
2020-12-06 17:45:37 +01:00
|
|
|
<?php echo template::select('translateES', $module::$translateOptions['es'], [
|
2020-11-25 18:25:16 +01:00
|
|
|
'label' => 'Espagnol',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'selected' => $this->getData(['config', 'translate' , 'es'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-24 15:29:47 +01:00
|
|
|
</div>
|
2020-11-24 19:00:23 +01:00
|
|
|
<div class="col6">
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
2020-12-06 17:45:37 +01:00
|
|
|
<?php echo template::select('translateIT', $module::$translateOptions['it'], [
|
2020-11-25 18:25:16 +01:00
|
|
|
'label' => 'Italien',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'selected' => $this->getData(['config', 'translate' , 'it'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
2020-12-06 17:45:37 +01:00
|
|
|
<?php echo template::select('translateNL', $module::$translateOptions['nl'], [
|
2020-11-25 18:25:16 +01:00
|
|
|
'label' => 'Néerlandais',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'selected' => $this->getData(['config', 'translate' , 'nl'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
2020-12-06 17:45:37 +01:00
|
|
|
<?php echo template::select('translatePT', $module::$translateOptions['pt'], [
|
2020-11-25 18:25:16 +01:00
|
|
|
'label' => 'Portugais',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'selected' => $this->getData(['config', 'translate' , 'pt'])
|
2020-11-24 19:00:23 +01:00
|
|
|
]); ?>
|
2020-11-25 14:04:04 +01:00
|
|
|
</div>
|
2020-11-24 13:44:31 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-22 13:32:20 +01:00
|
|
|
</div>
|
2020-11-11 19:48:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-29 08:48:29 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Paramètres de la traduction automatique</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateScriptGoogle', true, 'Active le script de traduction automatique', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'scriptGoogle']),
|
|
|
|
'help' => 'Le script Google Translate assure la traduction automatique du site.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateCredits', true, 'Afficher les crédits du script Google', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'showCredits']),
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateGoogleScriptOption',
|
2020-11-29 08:48:29 +01:00
|
|
|
'help' => 'Option recommandée pour le respect du droit d\'auteur'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAutoDetect', true, 'Détection automatique de la langue', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'autoDetect']),
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateGoogleScriptOption',
|
2020-11-29 08:48:29 +01:00
|
|
|
'help' => 'Détecte la langue du navigateur, dans ce mode il n\'est pas nécessaire d\'afficher les drapeaux.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAdmin', true, 'Traduction en mode connecté', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'admin']),
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateGoogleScriptOption',
|
2020-11-29 08:48:29 +01:00
|
|
|
'help' => 'Traduit le site et l\'interface de ZwiiCMS quand un utilisateur est connecté'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-06 17:45:37 +01:00
|
|
|
<div class="col10 helpDisplayContent">
|
|
|
|
<p>Vous avez le choix entre une traduction automatique réalisée avec le script Google Traduction ou une traduction rédigée.
|
|
|
|
Si vous sélectionnez la traduction rédigée, seule la page d'accueil est générée, à vous de rédiger le site dans la langue sélectionnée.
|
|
|
|
Il est possible de copier les pages et les modules d'une langue vers une autre en cliquant sur le bouton de gestion avancée.</p>
|
|
|
|
<p>Une traduction peut être cachée en masquant le drapeau, la suppression d'une traduction rédigée est définitive, pensez à sauvegarder.
|
|
|
|
Afficher le drapeau fraçais afin de revenir à la langue d'origine du site.</p>
|
|
|
|
</div>
|
2020-11-11 19:48:07 +01:00
|
|
|
<?php echo template::formClose(); ?>
|