From 45a8464deef440145e6959b0d02b3d3fc09682c4 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 7afb99ef5..0f5cb03c1 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 bf9a45e2a1fd91b45b1ffce0f3abcde24e0299ee 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 ebdf6d5b0..329fff82b 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 f42b7b0e9d5561cbd2ab4c191ca028853907ee89 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 7a1b0f5d1..717cf375e 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',