summaryrefslogtreecommitdiff
path: root/src/application/views/nav_logged_in.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-16 11:31:53 +0200
committerJonas Kohl2024-09-16 11:31:53 +0200
commit38f03c375eafdb6b95190729479c6fa0d721b400 (patch)
tree637616799ed5e20c72d8d7be7a78e72a11826cfa /src/application/views/nav_logged_in.php
parentcb9b87997993702131ca24d4d0e1fd45ef64805c (diff)
More i18n
Diffstat (limited to 'src/application/views/nav_logged_in.php')
-rw-r--r--src/application/views/nav_logged_in.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/application/views/nav_logged_in.php b/src/application/views/nav_logged_in.php
index 8ed8d07..39c65cb 100644
--- a/src/application/views/nav_logged_in.php
+++ b/src/application/views/nav_logged_in.php
@@ -2,12 +2,9 @@
use mystic\forum\orm\User;
?>
<ul class="nav navbar-nav navbar-right">
-<li><p class="navbar-text">Welcome,
-<?php if ($user->id === User::SUPERUSER_ID): ?>
-<strong class="text-danger"><?= htmlentities($user->displayName) ?></strong>!
-<?php else: ?>
-<strong><?= htmlentities($user->displayName) ?></strong>!
-<?php endif; ?>
+<li><p class="navbar-text"><?= __("Welcome, %user%!", [
+ "user" => ($user->id === User::SUPERUSER_ID) ? ('<strong class="text-danger">' . htmlentities($user->displayName) . '</strong>') : ('<strong>' . htmlentities($user->displayName) . '</strong>')
+]) ?>
</p></li>
<li><a href="?_action=viewuser&amp;user=<?= htmlentities(urlencode($user->id)) ?>"><span class="glyphicon glyphicon-user" aria-hidden="true"></span><span class="sr-only">View profile</span></a></li>
<li><a href="?_action=logout&amp;next=<?= htmlentities(urlencode($_SERVER["REQUEST_URI"])) ?>"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span><span class="sr-only">Log out</span></a></li>