From b920a71120fd8211cacf82aa3d31b0fdfc257fd3 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 17 Apr 2022 11:56:33 +0200 Subject: [PATCH] round numbers in result protocol entries --- resources/js/components/protocol/Item.js | 4 ++++ resources/js/i18n/de.js | 4 ++-- resources/js/i18n/en.js | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/js/components/protocol/Item.js b/resources/js/components/protocol/Item.js index 2ea8ea7..dba32f5 100644 --- a/resources/js/components/protocol/Item.js +++ b/resources/js/components/protocol/Item.js @@ -53,13 +53,17 @@ const getEntryDescription = entry => { ); case 'result.comment': { const comment = getEntryResultComment(entry); + const number = getEntryRoundNumber(entry); return + {{number}} {{comment}}, ; } case 'result.report': { + const number = getEntryRoundNumber(entry); const time = getEntryResultTime(entry); return + {{number}} {{time}}, ; } diff --git a/resources/js/i18n/de.js b/resources/js/i18n/de.js index 5bac532..fc15a69 100644 --- a/resources/js/i18n/de.js +++ b/resources/js/i18n/de.js @@ -144,8 +144,8 @@ export default { rejected: 'Anmeldung von {{username}} abgelehnt', }, result: { - comment: 'Ergebnis kommentiert: <0>{{comment}}', - report: 'Ergebnis von <0>{{time}} eingetragen', + comment: 'Ergebnis von Runde {{number}} kommentiert: <1>{{comment}}', + report: 'Ergebnis von <1>{{time}} bei Runde {{number}} eingetragen', }, round: { create: 'Runde #{{number}} hinzugefügt', diff --git a/resources/js/i18n/en.js b/resources/js/i18n/en.js index fb050d1..0acab1a 100644 --- a/resources/js/i18n/en.js +++ b/resources/js/i18n/en.js @@ -144,8 +144,8 @@ export default { rejected: 'Application from {{username}} rejected', }, result: { - comment: 'Result commented: <0>{{comment}}', - report: 'Result of <0>{{time}} reported', + comment: 'Result of round {{number}} commented: <1>{{comment}}', + report: 'Result of <1>{{time}} reported for round {{number}}', }, round: { create: 'Round #{{number}} added', -- 2.39.2