2020-11-11 19:48:07 +01:00
|
|
|
<?php echo template::formOpen('translateForm'); ?>
|
|
|
|
<div class="row">
|
2022-01-20 13:28:33 +01:00
|
|
|
<div class="col1">
|
2020-11-11 19:48:07 +01:00
|
|
|
<?php echo template::button('translateFormBack', [
|
|
|
|
'class' => 'buttonGrey',
|
2020-11-14 14:52:18 +01:00
|
|
|
'href' => helper::baseUrl(),
|
2022-01-20 13:28:33 +01:00
|
|
|
'value' => template::ico('left')
|
2020-11-11 19:48:07 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-01-20 13:28:33 +01:00
|
|
|
<div class="col1">
|
2021-11-04 19:12:27 +01:00
|
|
|
<?php echo template::button('translateHelp', [
|
2021-11-04 18:59:53 +01:00
|
|
|
'href' => 'https://doc.zwiicms.fr/prise-en-charge-des-langues-etrangeres',
|
|
|
|
'target' => '_blank',
|
2022-01-20 15:40:56 +01:00
|
|
|
'value' => template::ico('help'),
|
|
|
|
'class' => 'buttonHelp',
|
|
|
|
'help' => 'Consulter l\'aide en ligne'
|
2021-06-04 14:21:23 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-01-20 15:40:56 +01:00
|
|
|
<div class="col1 offset7">
|
2021-10-30 12:48:29 +02:00
|
|
|
<?php echo template::button('translateButton', [
|
2021-06-04 13:57:44 +02:00
|
|
|
'href' => helper::baseUrl() . 'translate/copy',
|
2022-01-20 15:40:56 +01:00
|
|
|
'value' => template::ico('cogs'),
|
|
|
|
'disabled' => $module::$siteTranslate,
|
2022-01-21 10:58:13 +01:00
|
|
|
'help' => 'Copie de sites inter-langues'
|
2021-06-04 13:57:44 +02:00
|
|
|
]); ?>
|
|
|
|
</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">
|
2021-01-14 15:26:13 +01:00
|
|
|
<div class="block">
|
2021-11-01 14:38:28 +01:00
|
|
|
<h4>Traduction automatique</h4>
|
2021-01-14 15:26:13 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::checkbox('translateScriptGoogle', true, 'Active le script de traduction automatique', [
|
|
|
|
'checked' => $this->getData(['config','i18n', 'scriptGoogle']),
|
|
|
|
'help' => 'Le script Google Translate assure la traduction automatique du site.'
|
2021-01-14 15:26:13 +01:00
|
|
|
]); ?>
|
2021-06-04 13:57:44 +02:00
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAutoDetect', true, 'Détection automatique de la langue du navigateur', [
|
|
|
|
'checked' => $this->getData(['config','i18n', 'autoDetect']),
|
|
|
|
'class' => 'translateGoogleScriptOption',
|
|
|
|
'help' => 'Détecte la langue du navigateur, dans ce mode il n\'est pas nécessaire d\'afficher les drapeaux.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateCredits', true, 'Afficher les crédits du script Google', [
|
|
|
|
'checked' => $this->getData(['config','i18n', 'showCredits']),
|
|
|
|
'class' => 'translateGoogleScriptOption',
|
|
|
|
'help' => 'Option recommandée pour le respect du droit d\'auteur'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block" id="flagsWrapper">
|
|
|
|
<h4>Mode de traduction et affichage des drapeaux</h4>
|
|
|
|
<div class="row">
|
2021-10-03 17:26:05 +02:00
|
|
|
<div class="col3">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translateFR', ['none'=>'Drapeau masqué','site'=>'Drapeau affiché'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('', '30px'),
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , 'fr']),
|
2021-06-04 13:57:44 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-03 17:26:05 +02:00
|
|
|
<div class="col3">
|
|
|
|
<div class="col12">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translateDE', $module::$translateOptions['de'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('de', '30px'),
|
2021-06-04 13:57:44 +02:00
|
|
|
'class' => 'translateFlagSelect',
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , 'de'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-03 17:26:05 +02:00
|
|
|
<div class="col12">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translateEN', $module::$translateOptions['en'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('en', '30px'),
|
2021-06-04 13:57:44 +02:00
|
|
|
'class' => 'translateFlagSelect',
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , 'en'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-03 17:26:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<div class="col12">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translateES', $module::$translateOptions['es'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('es', '30px'),
|
2021-06-04 13:57:44 +02:00
|
|
|
'class' => 'translateFlagSelect',
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , 'es'])
|
2021-05-20 21:52:09 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-03 17:26:05 +02:00
|
|
|
<div class="col12">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translateIT', $module::$translateOptions['it'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('it', '30px'),
|
2021-06-04 13:57:44 +02:00
|
|
|
'class' => 'translateFlagSelect',
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , 'it'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-03 17:26:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<div class="col12">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translateNL', $module::$translateOptions['nl'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('nl', '30px'),
|
2021-06-04 13:57:44 +02:00
|
|
|
'class' => 'translateFlagSelect',
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , 'nl'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2021-10-03 17:26:05 +02:00
|
|
|
<div class="col12">
|
2021-06-04 13:57:44 +02:00
|
|
|
<?php echo template::select('translatePT', $module::$translateOptions['pt'], [
|
2021-10-03 17:26:05 +02:00
|
|
|
'label' => template::flag('pt', '30px'),
|
2021-06-04 13:57:44 +02:00
|
|
|
'class' => 'translateFlagSelect',
|
|
|
|
'selected' => $this->getData(['config', 'i18n' , '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>
|
2021-06-17 11:34:22 +02:00
|
|
|
<?php echo template::formClose(); ?>
|