Comment translate function

This commit is contained in:
Fred Tempez 2023-01-13 15:59:59 +01:00
parent b2cbbf0c2d
commit 46c2455853

View File

@ -26,8 +26,8 @@ class helper
public static function translate($text)
{
/*
$target = 'redirection';
/** Collecte des dialogues des modules */
$url = $_SERVER['QUERY_STRING'];
$module = explode('/', $url);
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);
}