From bf4778431d8085bd0de28bd223689a96151168f6 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Fri, 10 Jan 2025 15:36:05 +0100 Subject: [PATCH] adrien2 --- src/Plugin.php | 12 ------------ 1 file changed, 12 deletions(-) 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',