From 297929f717b2e224f8f6499531f8f955404fab1f Mon Sep 17 00:00:00 2001 From: a_evrard Date: Mon, 7 Sep 2026 10:34:51 +0200 Subject: [PATCH] Add path for translate file --- src/Report.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Report.php b/src/Report.php index c8e6865..934e838 100644 --- a/src/Report.php +++ b/src/Report.php @@ -85,6 +85,9 @@ public static function searchReport($all = false) foreach (glob(Plugin::getPhpDir($plug['directory']) . "/report/*", GLOB_ONLYDIR) as $path) { $tab[basename($path)] = $plug['directory']; self::includeLocales(basename($path), $plug['directory']); + if (is_file($path . "/" . basename($path) . "." . $_SESSION['glpilanguage'] . ".php")) { + include $path . "/" . basename($path) . "." . $_SESSION['glpilanguage'] . ".php"; + } } }