create option to translate "log out" string
authorAndrew Engelbrecht <andrew@fsf.org>
Wed, 12 Jan 2022 20:21:13 +0000 (15:21 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 12 Jan 2022 20:21:13 +0000 (15:21 -0500)
dictionaries/fsfdrupalauth.definition.json
themes/fsftheme/casserver/loggedIn.php

index 96f87658c58e693146ec561db5b3ca3285fa0f3d..58dfdfdecbef908e917ecc9997a1ec7161d05e59 100644 (file)
@@ -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!"
     },
index 3e55401fe724447c28328327507956963c084caf..3f33e71b38b58841f99a61a107ce255779f9dfa8 100644 (file)
@@ -37,7 +37,7 @@ $this->includeAtTemplateBase('includes/header.php');
         }
 
         echo $this->t('{fsfdrupalauth:fsfdrupalauth:loggedin_as_description}') . "<strong>" . htmlspecialchars($attrs['name'][0]) . "</strong>";
-        echo " <a href=\"/cas/logout?url=/cas/login\">[log out]</a>";
+        echo " <a href=\"/cas/logout?url=/cas/login\">[".$this->t('{fsfdrupalauth:fsfdrupalauth:log_out}')."]</a>";
         ?>
     </p>