[10.0.107.dev] Logo Google en bas des pages traduites.

This commit is contained in:
fredtempez 2019-11-16 15:28:26 +01:00
parent 8043b139a4
commit a477653d9d
4 changed files with 14 additions and 7 deletions

View File

@ -32,7 +32,7 @@ class common {
const I18N_DIR = 'site/i18n/';
// Numéro de version
const ZWII_VERSION = '10.0.106.dev';
const ZWII_VERSION = '10.0.107.dev';
public static $actions = [];
public static $coreModuleIds = [
@ -2205,7 +2205,9 @@ class layout extends common {
echo '<h2 id="sectionTitle">' . $this->core->output['title'] . '</h2>';
}
echo '<div class="translate">' . $this->core->output['content'] . '</div>';
if ($this->getData(['config','i18n',$this->geti18n(),'autoTranslate']) === true) {
echo '<div><a href="//translate.google.com/intl/fr/about/" data-lity><img src="core/module/i18n/ressource/googtrans.png" /></a></div>';
}
}

View File

@ -1357,4 +1357,4 @@ th.col12 {
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -26,10 +26,7 @@
echo template::select('i18nLanguageAdd', $available, [
'label' => 'Nouvelle langue'
]); ?>
</div>
<div class="row">
<?php echo template::checkbox('i18AutoTranslation', true, 'Traduction automatique par Google'); ?>
</div>
</div>
</div>
<div class="col6">
<?php echo template::select('i18nLanguageCopyFrom', $this->i18nInstalled(true), [
@ -38,6 +35,14 @@
]); ?>
</div>
</div>
<div class="row">
<div class="col3 verticalAlignMiddle">
<?php echo template::checkbox('i18AutoTranslation', true, 'Traduction automatique'); ?>
</div>
<div class="col3 verticalAlignMiddle">
<a href="//translate.google.com/intl/fr/about/" data-lity><img src="core/module/i18n/ressource/googtrans.png" /></a>
</div>
</div>
</div>
</div>
</div>