From 81c8a486d980112e4c59e6859833b45c6c3a8d27 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 28 May 2020 16:59:28 +0200 Subject: [PATCH] Move "Connect as" label translation to template --- src/includes/class/class.LSsession.php | 2 -- src/templates/default/base_connected.tpl | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index 03222b83..c3919822 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -1600,8 +1600,6 @@ class LSsession { if (!self :: $template) self :: setTemplate('base_connected.tpl'); - LStemplate :: assign('connected_as',_("Connected as")); - LStemplate :: display(self :: $template); } diff --git a/src/templates/default/base_connected.tpl b/src/templates/default/base_connected.tpl index 36c5d943..6f280a11 100644 --- a/src/templates/default/base_connected.tpl +++ b/src/templates/default/base_connected.tpl @@ -45,7 +45,7 @@ - {if $displaySelfAccess}{$connected_as|escape:"htmlall"} {$LSsession_username|escape:"htmlall"}{/if} + {if $displaySelfAccess}{tr msg="Connected as"|escape:"htmlall"} {$LSsession_username|escape:"htmlall"}{/if} {tr msg= {if $displayLogoutBtn} Logout{/if}