summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--statusbar.php11
1 files changed, 11 insertions, 0 deletions
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;
+ }
+}
+
?>
<!DOCTYPE html>