From 38f03c375eafdb6b95190729479c6fa0d721b400 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Mon, 16 Sep 2024 11:31:53 +0200 Subject: More i18n --- src/application/views/view_user.php | 49 ++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 23 deletions(-) (limited to 'src/application/views/view_user.php') diff --git a/src/application/views/view_user.php b/src/application/views/view_user.php index 79b57d2..536cc33 100644 --- a/src/application/views/view_user.php +++ b/src/application/views/view_user.php @@ -12,15 +12,11 @@ $canEdit = ($user->id === $GLOBALS["currentUser"]?->id && $user->hasPermission(U $isOwnProfile = $user->id === $GLOBALS["currentUser"]?->id; -$sIsOwn_your = ""; -if ($isOwnProfile) - $sIsOwn_your = " your"; - $sUserPossessive = ""; if ($isOwnProfile) - $sUserPossessive = "Your"; + $sUserPossessive = "Your posts"; else - $sUserPossessive = $user->displayName . "'s"; + $sUserPossessive = "%display_name%'s posts"; $dateJoined = DateTime::createFromImmutable($user->created); $dateJoined->setTime(0, 0, 0, 0); @@ -30,9 +26,11 @@ $dateJoined->setTime(0, 0, 0, 0); displayName) ?> - You +
- @name) ?> • Member since format("c")); ?> + @name) ?> • '' . htmlentities($dateJoined->format("c")) . '', + ]) ?> @@ -40,7 +38,9 @@ $dateJoined->setTime(0, 0, 0, 0);
-

posts

+

$user->displayName, +]) ?>

0): ?>
@@ -49,19 +49,22 @@ $dateJoined->setTime(0, 0, 0, 0); deleted) continue; ?> content)), 100)) ?>
- posted on postDate->format("c")) ?> in topicId]?->title ?? "unknown") ?> + '' . htmlentities($post->postDate->format("c")) . '', + "topic" => '' . htmlentities($topics[$post->topicId]?->title ?? "unknown") . '', + ]) ?>
- +
- This user has not posted anything yet +
@@ -69,7 +72,7 @@ $dateJoined->setTime(0, 0, 0, 0);
-

Edit profile

+

$_formError]); @@ -77,24 +80,24 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) { ?>
" method="post" enctype="multipart/form-data">
- +
- + - You can only change your username every 30 days! +
- +
- + profilePicture); $_checkbox_disabled_class = $_checkbox_disabled ? " disabled text-muted" : ""; @@ -102,29 +105,29 @@ $_checkbox_disabled_class = $_checkbox_disabled ? " disabled text-muted" : "";
- +
-- cgit v1.2.3