Comment translate function

This commit is contained in:
Fred Tempez 2023-01-13 15:59:59 +01:00
parent b2cbbf0c2d
commit 46c2455853
1 changed files with 2 additions and 1 deletions

View File

@ -26,8 +26,8 @@ class helper
public static function translate($text) public static function translate($text)
{ {
/*
$target = 'redirection'; $target = 'redirection';
/** Collecte des dialogues des modules */
$url = $_SERVER['QUERY_STRING']; $url = $_SERVER['QUERY_STRING'];
$module = explode('/', $url); $module = explode('/', $url);
if ( $module[0] === $target) if ( $module[0] === $target)
@ -40,6 +40,7 @@ class helper
} }
} }
*/
return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text); return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text);
} }