diff --git a/public/getrss.php b/public/getrss.php index 1d9445a0..dae5c38a 100644 --- a/public/getrss.php +++ b/public/getrss.php @@ -326,7 +326,7 @@ if (get_setting('main.spsct') == 'yes') { - + diff --git a/public/userdetails.php b/public/userdetails.php index 0f1ff087..051dcba3 100644 --- a/public/userdetails.php +++ b/public/userdetails.php @@ -32,10 +32,12 @@ $medalType = 'valid_medals'; $userInfo = \App\Models\User::query()->with($medalType)->findOrFail($user['id']); $userRep = new \App\Repositories\UserRepository(); -if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null) -$joindate = $lang_userdetails['text_not_available']; -else -$joindate = $user['added']." (" . gettime($user["added"], true, false, true).")"; +if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null) { + $joindate = $lang_userdetails['text_not_available']; +} else { + $weeks = $userInfo->added->diffInWeeks() . nexus_trans('nexus.time_units.week'); + $joindate = $user['added']." (" . gettime($user["added"], true, false, true).", $weeks)"; +} $lastseen = $user["last_access"]; if ($lastseen == "0000-00-00 00:00:00" || $lastseen == null) $lastseen = $lang_userdetails['text_not_available']; diff --git a/resources/lang/en/nexus.php b/resources/lang/en/nexus.php index bd9196f0..f5ec03f0 100644 --- a/resources/lang/en/nexus.php +++ b/resources/lang/en/nexus.php @@ -5,4 +5,7 @@ return [ 'require_argument' => ':argument cannot be empty', 'select_one_please' => 'Please select one', 'user_not_exists' => '(orphaned)', + 'time_units' => [ + 'week' => 'weeks', + ], ]; diff --git a/resources/lang/zh_CN/nexus.php b/resources/lang/zh_CN/nexus.php index 9d206b96..a885fc86 100644 --- a/resources/lang/zh_CN/nexus.php +++ b/resources/lang/zh_CN/nexus.php @@ -5,4 +5,7 @@ return [ 'require_argument' => ':argument 不能为空', 'select_one_please' => '请选择一项', 'user_not_exists' => '(无此帐户)', + 'time_units' => [ + 'week' => '周', + ], ]; diff --git a/resources/lang/zh_TW/nexus.php b/resources/lang/zh_TW/nexus.php index 2fd6b606..47d923a9 100644 --- a/resources/lang/zh_TW/nexus.php +++ b/resources/lang/zh_TW/nexus.php @@ -5,4 +5,7 @@ return [ 'require_argument' => ':argument 不能為空', 'select_one_please' => '請選擇一項', 'user_not_exists' => '(無此帳戶)', + 'time_units' => [ + 'week' => '周', + ], ];