From ca19a2bf2916a555f96ea7ab4791267dd5601c72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 4 Jun 2022 16:28:14 +0200 Subject: Commit --- statusbar.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/statusbar.php b/statusbar.php index 9300121..cf94cb5 100644 --- a/statusbar.php +++ b/statusbar.php @@ -15,6 +15,7 @@ if (isset($_COOKIE['FL_SESSION_TOKEN'])) { $_USER = $_PROFILE['login']; $_SUID = $_PROFILE['login']; $_FULLNAME = $_PROFILE['name']; + $_FRENCH = $_PROFILE['locale']['name'] === "fr"; } else { header("Location: https://" . $_CONFIG["Global"]["domain"] . "/login/?r=" . urlencode("https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]")); die(); @@ -30,6 +31,16 @@ if (isset($_PROFILE["projectRoles"]) && is_array($_PROFILE["projectRoles"]) && i $_ADMIN = false; } +function l($fr, $en) { + global $_FRENCH; + + if ($_FRENCH) { + return $fr; + } else { + return $en; + } +} + ?> -- cgit