From 1bf8661834c5a186f414541c0cee058f38b6d75a Mon Sep 17 00:00:00 2001 From: Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> Date: Mon, 3 Feb 2020 15:14:10 -0800 Subject: [PATCH 1/3] Add total_number_of_points. --- ui/src/translations/en.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/translations/en.ts b/ui/src/translations/en.ts index 7afb99ef..0f5cb03c 100644 --- a/ui/src/translations/en.ts +++ b/ui/src/translations/en.ts @@ -81,6 +81,7 @@ export const en = { number_of_users: '{{count}} Users', number_of_subscribers: '{{count}} Subscribers', number_of_points: '{{count}} Points', + total_number_of_points: '{{count}} Total Points', number_online: '{{count}} Users Online', name: 'Name', title: 'Title', From 0b7e5a5b55f30d9095dad518f37347fa9f105cf6 Mon Sep 17 00:00:00 2001 From: Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> Date: Mon, 3 Feb 2020 15:20:59 -0800 Subject: [PATCH 2/3] Display a given user's total score. --- ui/src/components/user.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index ebdf6d5b..329fff82 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -356,6 +356,9 @@ export class User extends Component {
{i18n.t('joined')}
+
+ {i18n.t('total_number_of_points', { count: (user.post_score + user.comment_score) })} +
From 9cb438b440267a4477ef9af1fa5f9218d259885d Mon Sep 17 00:00:00 2001 From: Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> Date: Mon, 3 Feb 2020 15:23:36 -0800 Subject: [PATCH 3/3] Translate total_number_of_points to German. --- ui/src/translations/de.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/translations/de.ts b/ui/src/translations/de.ts index 7a1b0f5d..717cf375 100644 --- a/ui/src/translations/de.ts +++ b/ui/src/translations/de.ts @@ -74,6 +74,7 @@ export const de = { number_of_users: '{{count}} Benutzer', number_of_subscribers: '{{count}} Abonnenten', number_of_points: '{{count}} Punkte', + total_number_of_points: '{{count}} Gesamtpunkte', number_online: '{{count}} Benutzer online', name: 'Name', title: 'Titel',