From a05075b0a7d68333a0c28cf74a328e5de8a953c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Joachim=20K=C3=BChn?= Date: Mon, 26 Jun 2023 17:14:34 +0200 Subject: [PATCH 1/6] Changed names --- frontend/public/locales/de/backend.json5 | 43 ++++++++++++------------ frontend/public/locales/en/backend.json5 | 37 ++++++++++---------- 2 files changed, 39 insertions(+), 41 deletions(-) diff --git a/frontend/public/locales/de/backend.json5 b/frontend/public/locales/de/backend.json5 index 2404c195..1a1563c9 100644 --- a/frontend/public/locales/de/backend.json5 +++ b/frontend/public/locales/de/backend.json5 @@ -1,29 +1,28 @@ { 'infection-states': { - Infected: 'Infiziert', - Hospitalized: 'Hospitalisiert', - ICU: 'Intensivpatient', + Infected: 'Infiziert, symptomatisch', + Hospitalized: 'Infiziert, schwer', + ICU: 'Infiziert, kritisch', Dead: 'Verstorben', - Exposed: 'Kontaktperson', - Recovered: 'Genesen', - Carrier: 'TrΓ€ger', + Exposed: 'Infiziert, prΓ€infektiΓΆs', + Carrier: 'Infiziert, nichtsymptomatisch', Susceptible: 'EmpfΓ€nglich', - InfectedT: 'Infiziert (πŸ§ͺ)', - InfectedTV1: 'Infiziert (πŸ§ͺ + πŸ’‰)', - InfectedTV2: 'Infiziert (πŸ§ͺ + πŸ’‰πŸ’‰)', - InfectedV1: 'Infiziert (πŸ’‰)', - InfectedV2: 'Infiziert (πŸ’‰πŸ’‰)', - HospitalizedV1: 'Hospitalisiert (πŸ’‰)', - HospitalizedV2: 'Hospitalisiert (πŸ’‰πŸ’‰)', - ICUV1: 'Intensivpatient (πŸ’‰)', - ICUV2: 'Intensivpatient (πŸ’‰πŸ’‰)', - ExposedV1: 'Kontaktperson (πŸ’‰)', - ExposedV2: 'Kontaktperson (πŸ’‰πŸ’‰)', - CarrierT: 'TrΓ€ger (πŸ§ͺ)', - CarrierTV1: 'TrΓ€ger (πŸ§ͺ + πŸ’‰)', - CarrierTV2: 'TrΓ€ger (πŸ§ͺ + πŸ’‰πŸ’‰)', - CarrierV1: 'TrΓ€ger (πŸ’‰)', - CarrierV2: 'TrΓ€ger (πŸ’‰πŸ’‰)', + InfectedT: 'Infiziert, symptomatisch (πŸ§ͺ)', + InfectedTV1: 'Infiziert, symptomatisch (πŸ§ͺ + πŸ’‰)', + InfectedTV2: 'Infiziert, symptomatisch (πŸ§ͺ + πŸ’‰πŸ’‰)', + InfectedV1: 'Infiziert, symptomatisch (πŸ’‰)', + InfectedV2: 'Infiziert, symptomatisch (πŸ’‰πŸ’‰)', + HospitalizedV1: 'Infiziert, schwer (πŸ’‰)', + HospitalizedV2: 'Infiziert, schwer (πŸ’‰πŸ’‰)', + ICUV1: 'Infiziert, kritisch (πŸ’‰)', + ICUV2: 'Infiziert, kritisch (πŸ’‰πŸ’‰)', + ExposedV1: 'Infiziert, prΓ€infektiΓΆs (πŸ’‰)', + ExposedV2: 'Infiziert, prΓ€infektiΓΆs (πŸ’‰πŸ’‰)', + CarrierT: 'Infiziert, nichtsymptomatisch (πŸ§ͺ)', + CarrierTV1: 'Infiziert, nichtsymptomatisch (πŸ§ͺ + πŸ’‰)', + CarrierTV2: 'Infiziert, nichtsymptomatisch (πŸ§ͺ + πŸ’‰πŸ’‰)', + CarrierV1: 'Infiziert, nichtsymptomatisch (πŸ’‰)', + CarrierV2: 'Infiziert, nichtsymptomatisch (πŸ’‰πŸ’‰)', SusceptibleV1: 'EmpfΓ€nglich (πŸ’‰)', SusceptibleV2: 'EmpfΓ€nglich (πŸ’‰πŸ’‰)', }, diff --git a/frontend/public/locales/en/backend.json5 b/frontend/public/locales/en/backend.json5 index 21e3efd3..40939e86 100644 --- a/frontend/public/locales/en/backend.json5 +++ b/frontend/public/locales/en/backend.json5 @@ -1,29 +1,28 @@ { 'infection-states': { - Infected: 'Infected', - Hospitalized: 'Hospitalized', - ICU: 'Intensive Care', + Infected: 'Infectious Symptomatic', + Hospitalized: 'Infected Severe', + ICU: 'Infected Critical', Dead: 'Dead', Exposed: 'Exposed', - Recovered: 'Recovered', - Carrier: 'Carrier', + Carrier: 'Infectious Non-Symptomatic', Susceptible: 'Susceptible', - InfectedT: 'Infected (πŸ§ͺ)', - InfectedTV1: 'Infected (πŸ§ͺ + πŸ’‰)', - InfectedTV2: 'Infected (πŸ§ͺ + πŸ’‰πŸ’‰)', - InfectedV1: 'Infected (πŸ’‰)', - InfectedV2: 'Infected (πŸ’‰πŸ’‰)', - HospitalizedV1: 'Hospitalized (πŸ’‰)', - HospitalizedV2: 'Hospitalized (πŸ’‰πŸ’‰)', - ICUV1: 'Intensive Care (πŸ’‰)', - ICUV2: 'Intensive Care (πŸ’‰πŸ’‰)', + InfectedT: 'Infectious Symptomatic (πŸ§ͺ)', + InfectedTV1: 'Infectious Symptomatic (πŸ§ͺ + πŸ’‰)', + InfectedTV2: 'Infectious Symptomatic (πŸ§ͺ + πŸ’‰πŸ’‰)', + InfectedV1: 'Infectious Symptomatic (πŸ’‰)', + InfectedV2: 'Infectious Symptomatic (πŸ’‰πŸ’‰)', + HospitalizedV1: 'Infected Severe (πŸ’‰)', + HospitalizedV2: 'Infected Severe (πŸ’‰πŸ’‰)', + ICUV1: 'Infected Critical (πŸ’‰)', + ICUV2: 'Infected Critical (πŸ’‰πŸ’‰)', ExposedV1: 'Exposed (πŸ’‰)', ExposedV2: 'Exposed (πŸ’‰πŸ’‰)', - CarrierT: 'Carrier (πŸ§ͺ)', - CarrierTV1: 'Carrier (πŸ§ͺ + πŸ’‰)', - CarrierTV2: 'Carrier (πŸ§ͺ + πŸ’‰πŸ’‰)', - CarrierV1: 'Carrier (πŸ’‰)', - CarrierV2: 'Carrier (πŸ’‰πŸ’‰)', + CarrierT: 'Infectious Non-Symptomatic (πŸ§ͺ)', + CarrierTV1: 'Infectious Non-Symptomatic (πŸ§ͺ + πŸ’‰)', + CarrierTV2: 'Infectious Non-Symptomatic (πŸ§ͺ + πŸ’‰πŸ’‰)', + CarrierV1: 'Infectious Non-Symptomatic (πŸ’‰)', + CarrierV2: 'Infectious Non-Symptomatic (πŸ’‰πŸ’‰)', SusceptibleV1: 'Susceptible (πŸ’‰)', SusceptibleV2: 'Susceptible (πŸ’‰πŸ’‰)', }, From 0a6db9f593b2abcd8f8e4cbc1c5278acfa3d1057 Mon Sep 17 00:00:00 2001 From: Moritz Zeumer Date: Wed, 28 Jun 2023 14:21:38 +0200 Subject: [PATCH 2/6] add multi-line support for compartments --- frontend/src/components/Scenario.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/Scenario.tsx b/frontend/src/components/Scenario.tsx index 1a81f349..caa57133 100644 --- a/frontend/src/components/Scenario.tsx +++ b/frontend/src/components/Scenario.tsx @@ -226,6 +226,7 @@ export default function Scenario(): JSX.Element { Date: Wed, 28 Jun 2023 14:22:05 +0200 Subject: [PATCH 3/6] change compartment names and add line breaks --- frontend/public/locales/de/backend.json5 | 51 ++++++++++++------------ frontend/public/locales/en/backend.json5 | 45 +++++++++++---------- 2 files changed, 49 insertions(+), 47 deletions(-) diff --git a/frontend/public/locales/de/backend.json5 b/frontend/public/locales/de/backend.json5 index 1a1563c9..976b7455 100644 --- a/frontend/public/locales/de/backend.json5 +++ b/frontend/public/locales/de/backend.json5 @@ -1,30 +1,31 @@ { 'infection-states': { - Infected: 'Infiziert, symptomatisch', - Hospitalized: 'Infiziert, schwer', - ICU: 'Infiziert, kritisch', - Dead: 'Verstorben', - Exposed: 'Infiziert, prΓ€infektiΓΆs', - Carrier: 'Infiziert, nichtsymptomatisch', - Susceptible: 'EmpfΓ€nglich', - InfectedT: 'Infiziert, symptomatisch (πŸ§ͺ)', - InfectedTV1: 'Infiziert, symptomatisch (πŸ§ͺ + πŸ’‰)', - InfectedTV2: 'Infiziert, symptomatisch (πŸ§ͺ + πŸ’‰πŸ’‰)', - InfectedV1: 'Infiziert, symptomatisch (πŸ’‰)', - InfectedV2: 'Infiziert, symptomatisch (πŸ’‰πŸ’‰)', - HospitalizedV1: 'Infiziert, schwer (πŸ’‰)', - HospitalizedV2: 'Infiziert, schwer (πŸ’‰πŸ’‰)', - ICUV1: 'Infiziert, kritisch (πŸ’‰)', - ICUV2: 'Infiziert, kritisch (πŸ’‰πŸ’‰)', - ExposedV1: 'Infiziert, prΓ€infektiΓΆs (πŸ’‰)', - ExposedV2: 'Infiziert, prΓ€infektiΓΆs (πŸ’‰πŸ’‰)', - CarrierT: 'Infiziert, nichtsymptomatisch (πŸ§ͺ)', - CarrierTV1: 'Infiziert, nichtsymptomatisch (πŸ§ͺ + πŸ’‰)', - CarrierTV2: 'Infiziert, nichtsymptomatisch (πŸ§ͺ + πŸ’‰πŸ’‰)', - CarrierV1: 'Infiziert, nichtsymptomatisch (πŸ’‰)', - CarrierV2: 'Infiziert, nichtsymptomatisch (πŸ’‰πŸ’‰)', - SusceptibleV1: 'EmpfΓ€nglich (πŸ’‰)', - SusceptibleV2: 'EmpfΓ€nglich (πŸ’‰πŸ’‰)', + Infected: 'Symptomatische', + Hospitalized: 'Hospitalisierte', + ICU: 'Intensivpatienten', + Dead: 'Verstorbene', + Exposed: 'PrΓ€infektiΓΆse', + Recovered: 'Genesene', + Carrier: 'Nichtsymptomatische', + Susceptible: 'EmpfΓ€ngliche', + InfectedT: 'Symptomatische \n (πŸ§ͺ)', + InfectedTV1: 'Symptomatische \n (πŸ§ͺ + πŸ’‰)', + InfectedTV2: 'Symptomatische \n (πŸ§ͺ + πŸ’‰πŸ’‰)', + InfectedV1: 'Symptomatische \n (πŸ’‰)', + InfectedV2: 'Symptomatische \n (πŸ’‰πŸ’‰)', + HospitalizedV1: 'Hospitalisierte \n (πŸ’‰)', + HospitalizedV2: 'Hospitalisierte \n (πŸ’‰πŸ’‰)', + ICUV1: 'Intensivpatienten \n (πŸ’‰)', + ICUV2: 'Intensivpatienten \n (πŸ’‰πŸ’‰)', + ExposedV1: 'PrΓ€infektiΓΆse \n (πŸ’‰)', + ExposedV2: 'PrΓ€infektiΓΆse \n (πŸ’‰πŸ’‰)', + CarrierT: 'Nichtsymptomatische \n (πŸ§ͺ)', + CarrierTV1: 'Nichtsymptomatische \n (πŸ§ͺ + πŸ’‰)', + CarrierTV2: 'Nichtsymptomatische \n (πŸ§ͺ + πŸ’‰πŸ’‰)', + CarrierV1: 'Nichtsymptomatische \n (πŸ’‰)', + CarrierV2: 'Nichtsymptomatische \n (πŸ’‰πŸ’‰)', + SusceptibleV1: 'EmpfΓ€ngliche \n (πŸ’‰)', + SusceptibleV2: 'EmpfΓ€ngliche \n (πŸ’‰πŸ’‰)', }, 'scenario-names': { 'Summer 2021 Simulation 1': 'Szenario ohne Maßnahmen', diff --git a/frontend/public/locales/en/backend.json5 b/frontend/public/locales/en/backend.json5 index 40939e86..932165d1 100644 --- a/frontend/public/locales/en/backend.json5 +++ b/frontend/public/locales/en/backend.json5 @@ -1,30 +1,31 @@ { 'infection-states': { - Infected: 'Infectious Symptomatic', - Hospitalized: 'Infected Severe', - ICU: 'Infected Critical', + Infected: 'Symptomatic', + Hospitalized: 'Hospitalized', + ICU: 'Intensive Care', Dead: 'Dead', Exposed: 'Exposed', - Carrier: 'Infectious Non-Symptomatic', + Recovered: 'Recovered', + Carrier: 'Non-Symptomatic', Susceptible: 'Susceptible', - InfectedT: 'Infectious Symptomatic (πŸ§ͺ)', - InfectedTV1: 'Infectious Symptomatic (πŸ§ͺ + πŸ’‰)', - InfectedTV2: 'Infectious Symptomatic (πŸ§ͺ + πŸ’‰πŸ’‰)', - InfectedV1: 'Infectious Symptomatic (πŸ’‰)', - InfectedV2: 'Infectious Symptomatic (πŸ’‰πŸ’‰)', - HospitalizedV1: 'Infected Severe (πŸ’‰)', - HospitalizedV2: 'Infected Severe (πŸ’‰πŸ’‰)', - ICUV1: 'Infected Critical (πŸ’‰)', - ICUV2: 'Infected Critical (πŸ’‰πŸ’‰)', - ExposedV1: 'Exposed (πŸ’‰)', - ExposedV2: 'Exposed (πŸ’‰πŸ’‰)', - CarrierT: 'Infectious Non-Symptomatic (πŸ§ͺ)', - CarrierTV1: 'Infectious Non-Symptomatic (πŸ§ͺ + πŸ’‰)', - CarrierTV2: 'Infectious Non-Symptomatic (πŸ§ͺ + πŸ’‰πŸ’‰)', - CarrierV1: 'Infectious Non-Symptomatic (πŸ’‰)', - CarrierV2: 'Infectious Non-Symptomatic (πŸ’‰πŸ’‰)', - SusceptibleV1: 'Susceptible (πŸ’‰)', - SusceptibleV2: 'Susceptible (πŸ’‰πŸ’‰)', + InfectedT: 'Symptomatic \n (πŸ§ͺ)', + InfectedTV1: 'Symptomatic \n (πŸ§ͺ + πŸ’‰)', + InfectedTV2: 'Symptomatic \n (πŸ§ͺ + πŸ’‰πŸ’‰)', + InfectedV1: 'Symptomatic \n (πŸ’‰)', + InfectedV2: 'Symptomatic \n (πŸ’‰πŸ’‰)', + HospitalizedV1: 'Hospitalized \n (πŸ’‰)', + HospitalizedV2: 'Hospitalized \n (πŸ’‰πŸ’‰)', + ICUV1: 'Intensive Care \n (πŸ’‰)', + ICUV2: 'Intensive Care \n (πŸ’‰πŸ’‰)', + ExposedV1: 'Exposed \n (πŸ’‰)', + ExposedV2: 'Exposed \n (πŸ’‰πŸ’‰)', + CarrierT: 'Non-Symptomatic \n (πŸ§ͺ)', + CarrierTV1: 'Non-Symptomatic \n (πŸ§ͺ + πŸ’‰)', + CarrierTV2: 'Non-Symptomatic \n (πŸ§ͺ + πŸ’‰πŸ’‰)', + CarrierV1: 'Non-Symptomatic \n (πŸ’‰)', + CarrierV2: 'Non-Symptomatic \n (πŸ’‰πŸ’‰)', + SusceptibleV1: 'Susceptible \n (πŸ’‰)', + SusceptibleV2: 'Susceptible \n (πŸ’‰πŸ’‰)', }, 'scenario-names': { 'Summer 2021 Simulation 1': 'Scenario without Interventions', From ade6344fb4b5f2ef70bcbd0ca4b9e6ed2c5a3e8e Mon Sep 17 00:00:00 2001 From: Moritz Zeumer Date: Wed, 28 Jun 2023 16:23:29 +0200 Subject: [PATCH 4/6] fix district map tooltip newline between infection state and glyphs --- frontend/src/components/Sidebar/DistrictMap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Sidebar/DistrictMap.tsx b/frontend/src/components/Sidebar/DistrictMap.tsx index dd0f50ba..3e67f966 100644 --- a/frontend/src/components/Sidebar/DistrictMap.tsx +++ b/frontend/src/components/Sidebar/DistrictMap.tsx @@ -248,7 +248,8 @@ export default function DistrictMap(): JSX.Element { selectedScenario && selectedCompartment ? `${t(`BEZ.${regionData.BEZ}`)} {GEN}\n${tBackend( `infection-states.${selectedCompartment}` - )}: ${formatNumber(regionData.value)}` + // replace ' \n ' sequence for compartments that have glyphs with ' ' + ).replace(/ \n /g, ' ')}: ${formatNumber(regionData.value)}` : `${t(`BEZ.${regionData.BEZ}`)} {GEN}`, fill: fillColor, }); From 950248635e79f44b4937d0fcd6267ccb6db34944 Mon Sep 17 00:00:00 2001 From: Mo <25636783+NXXR@users.noreply.github.com> Date: Wed, 28 Jun 2023 17:41:00 +0200 Subject: [PATCH 5/6] =?UTF-8?q?change=20Verstorbene=20to=20Todesf=C3=A4lle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/locales/de/backend.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/locales/de/backend.json5 b/frontend/public/locales/de/backend.json5 index 976b7455..641ded19 100644 --- a/frontend/public/locales/de/backend.json5 +++ b/frontend/public/locales/de/backend.json5 @@ -3,7 +3,7 @@ Infected: 'Symptomatische', Hospitalized: 'Hospitalisierte', ICU: 'Intensivpatienten', - Dead: 'Verstorbene', + Dead: 'TodesfΓ€lle', Exposed: 'PrΓ€infektiΓΆse', Recovered: 'Genesene', Carrier: 'Nichtsymptomatische', From 4c01ba61457c63e27b31dfd753d5f5d65138b278 Mon Sep 17 00:00:00 2001 From: Moritz Zeumer Date: Wed, 28 Jun 2023 17:45:34 +0200 Subject: [PATCH 6/6] :sparkles: ran formatter --- frontend/src/components/Sidebar/DistrictMap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Sidebar/DistrictMap.tsx b/frontend/src/components/Sidebar/DistrictMap.tsx index 3e67f966..40fff375 100644 --- a/frontend/src/components/Sidebar/DistrictMap.tsx +++ b/frontend/src/components/Sidebar/DistrictMap.tsx @@ -248,7 +248,7 @@ export default function DistrictMap(): JSX.Element { selectedScenario && selectedCompartment ? `${t(`BEZ.${regionData.BEZ}`)} {GEN}\n${tBackend( `infection-states.${selectedCompartment}` - // replace ' \n ' sequence for compartments that have glyphs with ' ' + // replace ' \n ' sequence for compartments that have glyphs with ' ' ).replace(/ \n /g, ' ')}: ${formatNumber(regionData.value)}` : `${t(`BEZ.${regionData.BEZ}`)} {GEN}`, fill: fillColor,