Drapeau anglais + copie de module WIP
This commit is contained in:
parent
8cf721bfe7
commit
32b4f3b7de
@ -34,7 +34,7 @@ class translate extends common {
|
||||
// Liste des langues cibles
|
||||
public static $languagesTarget = [];
|
||||
// Activation du bouton de copie
|
||||
public static $siteTranslate = true;
|
||||
public static $siteCopy = true;
|
||||
// Localisation en cours d'édition
|
||||
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
|
||||
if (is_dir(self::I18N_DIR)) {
|
||||
|
@ -20,7 +20,7 @@
|
||||
<?php echo template::button('translateButton', [
|
||||
'href' => helper::baseUrl() . 'translate/copy',
|
||||
'value' => template::ico('docs'),
|
||||
'disabled' => $module::$siteTranslate,
|
||||
'disabled' => $module::$siteCopy,
|
||||
'help' => 'Copie de sites inter-langues'
|
||||
]); ?>
|
||||
</div>
|
||||
|
BIN
core/vendor/i18n/png/en_EN.png
vendored
Normal file
BIN
core/vendor/i18n/png/en_EN.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
Reference in New Issue
Block a user