diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 8f9dc32901d..dd5f1e6769d 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -781,6 +781,8 @@ class Translate if (preg_match('/^[a-z]+_[A-Z]+/i', $dir)) { $this->load("languages"); + + if (! empty($conf->global->MAIN_LANGUAGES_ALLOWED) && ! in_array($dir, explode(',' , $conf->global->MAIN_LANGUAGES_ALLOWED)) ) continue; if ($usecode == 2) {