Move "Connect as" label translation to template

This commit is contained in:
Benjamin Renard 2020-05-28 16:59:28 +02:00
parent 69addc15ea
commit 81c8a486d9
2 changed files with 1 additions and 3 deletions

View file

@ -1600,8 +1600,6 @@ class LSsession {
if (!self :: $template) if (!self :: $template)
self :: setTemplate('base_connected.tpl'); self :: setTemplate('base_connected.tpl');
LStemplate :: assign('connected_as',_("Connected as"));
LStemplate :: display(self :: $template); LStemplate :: display(self :: $template);
} }

View file

@ -45,7 +45,7 @@
</select> </select>
<input type='submit' value='->'/> <input type='submit' value='->'/>
</form> </form>
{if $displaySelfAccess}{$connected_as|escape:"htmlall"} <span id='user_name'>{$LSsession_username|escape:"htmlall"}</span>{/if} {if $displaySelfAccess}{tr msg="Connected as"|escape:"htmlall"} <span id='user_name'>{$LSsession_username|escape:"htmlall"}</span>{/if}
<a href='?LSsession_refresh=1'><img src='{img name='refresh'}' alt="{tr msg="Refresh my access rights"}" title="{tr msg="Refresh my access rights"}" /></a> <a href='?LSsession_refresh=1'><img src='{img name='refresh'}' alt="{tr msg="Refresh my access rights"}" title="{tr msg="Refresh my access rights"}" /></a>
{if $displayLogoutBtn} <a href='?LSsession_logout'><img src='{img name='logout'}' alt='Logout' title='Logout' /></a>{/if} {if $displayLogoutBtn} <a href='?LSsession_logout'><img src='{img name='logout'}' alt='Logout' title='Logout' /></a>{/if}
</td> </td>