From d76834fe87c5e60210afa532040cc65653421b75 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 12 Jan 2022 15:21:13 -0500 Subject: [PATCH] create option to translate "log out" string --- dictionaries/fsfdrupalauth.definition.json | 3 +++ themes/fsftheme/casserver/loggedIn.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dictionaries/fsfdrupalauth.definition.json b/dictionaries/fsfdrupalauth.definition.json index 96f8765..58dfdfd 100644 --- a/dictionaries/fsfdrupalauth.definition.json +++ b/dictionaries/fsfdrupalauth.definition.json @@ -2,6 +2,9 @@ "loggedin_as_description": { "en": "You are logged in as " }, + "log_out": { + "en": "log out" + }, "fsf_help_header": { "en": "Help with my account!" }, diff --git a/themes/fsftheme/casserver/loggedIn.php b/themes/fsftheme/casserver/loggedIn.php index 3e55401..3f33e71 100644 --- a/themes/fsftheme/casserver/loggedIn.php +++ b/themes/fsftheme/casserver/loggedIn.php @@ -37,7 +37,7 @@ $this->includeAtTemplateBase('includes/header.php'); } echo $this->t('{fsfdrupalauth:fsfdrupalauth:loggedin_as_description}') . "" . htmlspecialchars($attrs['name'][0]) . ""; - echo " [log out]"; + echo " [".$this->t('{fsfdrupalauth:fsfdrupalauth:log_out}')."]"; ?>

-- 2.25.1