diff --git a/src/Plugin.php b/src/Plugin.php index 6aceabc6b14..41135dcc3f8 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -39,7 +39,6 @@ use Glpi\Application\View\TemplateRenderer; use Glpi\Cache\CacheManager; -use Glpi\Cache\I18nCache; use Glpi\Dashboard\Grid; use Glpi\Marketplace\Controller as MarketplaceController; use Glpi\Marketplace\View as MarketplaceView; @@ -477,17 +476,6 @@ public static function loadLang($plugin_key, $forcelang = '', $coretrytoload = ' } } - if (!defined('TU_USER')) { - $i18n_cache = new I18nCache((new CacheManager())->getTranslationsCacheInstance()); - $TRANSLATE = new class ($i18n_cache) extends Laminas\I18n\Translator\Translator { - public function __construct(?I18nCache $cache) - { - $this->cache = $cache; - } - }; - $TRANSLATE->setLocale($coretrytoload); - } - if ($mofile !== false) { $TRANSLATE->addTranslationFile( 'gettext',