diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index ca480287..29748bff 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -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)) { diff --git a/core/module/translate/view/index/index.php b/core/module/translate/view/index/index.php index b4741814..82c3deba 100644 --- a/core/module/translate/view/index/index.php +++ b/core/module/translate/view/index/index.php @@ -20,7 +20,7 @@ helper::baseUrl() . 'translate/copy', 'value' => template::ico('docs'), - 'disabled' => $module::$siteTranslate, + 'disabled' => $module::$siteCopy, 'help' => 'Copie de sites inter-langues' ]); ?> diff --git a/core/vendor/i18n/png/en_EN.png b/core/vendor/i18n/png/en_EN.png new file mode 100644 index 00000000..628986d1 Binary files /dev/null and b/core/vendor/i18n/png/en_EN.png differ