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);
= htmlentities($user->displayName) ?>
- You
+ = __("You") ?>
- @= htmlentities($user->name) ?> • Member since = htmlentities($dateJoined->format("c")); ?>
+ @= htmlentities($user->name) ?> • = __("Member since %join_date%", [
+ "join_date" => '' . htmlentities($dateJoined->format("c")) . '',
+ ]) ?>
@@ -40,7 +38,9 @@ $dateJoined->setTime(0, 0, 0, 0);