Skip to content

Commit

Permalink
adrien2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B authored and cedric-anne committed Jan 13, 2025
1 parent 4c79676 commit bf47784
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit bf47784

Please sign in to comment.