Drapeau anglais + copie de module WIP

This commit is contained in:
Fred Tempez 2022-09-28 15:58:35 +02:00
parent 8cf721bfe7
commit 32b4f3b7de
3 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class translate extends common {
// Liste des langues cibles // Liste des langues cibles
public static $languagesTarget = []; public static $languagesTarget = [];
// Activation du bouton de copie // Activation du bouton de copie
public static $siteTranslate = true; public static $siteCopy = true;
// Localisation en cours d'édition // Localisation en cours d'édition
public static $locales = []; public static $locales = [];
@ -147,6 +147,8 @@ class translate extends common {
} }
} }
// Activation du bouton de copie
self::$siteCopy = count(self::$languagesInstalled) > 1 ? false : true;
// Langues de l'UI disponibles // Langues de l'UI disponibles
if (is_dir(self::I18N_DIR)) { if (is_dir(self::I18N_DIR)) {

View File

@ -20,7 +20,7 @@
<?php echo template::button('translateButton', [ <?php echo template::button('translateButton', [
'href' => helper::baseUrl() . 'translate/copy', 'href' => helper::baseUrl() . 'translate/copy',
'value' => template::ico('docs'), 'value' => template::ico('docs'),
'disabled' => $module::$siteTranslate, 'disabled' => $module::$siteCopy,
'help' => 'Copie de sites inter-langues' 'help' => 'Copie de sites inter-langues'
]); ?> ]); ?>
</div> </div>

BIN
core/vendor/i18n/png/en_EN.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB