From 265d648473ead54287abde7c9b14c366ece2c8db Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Tue, 1 Apr 2025 09:15:45 +0200 Subject: [PATCH] Update text resources and enhance interaction dialog headers Adjusted the header text in ProspectContainer to include the prospect's name for better context. Refined translation terms for interaction types in TermHelper to improve clarity and consistency. --- .../Controls/ProspectContainer.razor.cs | 2 +- FoodsharingSiegen.Shared/Helper/TermHelper.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs index 5d4b399..6ea8b2e 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs +++ b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor.cs @@ -40,7 +40,7 @@ namespace FoodsharingSiegen.Server.Controls { if (Prospect != null && OnDataChanged != null) { - var headerText = $"{type.Translate(AppSettings)} eintragen"; + var headerText = $"{type.Translate(AppSettings)} für {Prospect.Name} eintragen"; await InteractionDialog.ShowAsync(ModalService, new(type, Prospect.Id, headerText, OnDataChanged)); } diff --git a/FoodsharingSiegen.Shared/Helper/TermHelper.cs b/FoodsharingSiegen.Shared/Helper/TermHelper.cs index dab939b..54da768 100644 --- a/FoodsharingSiegen.Shared/Helper/TermHelper.cs +++ b/FoodsharingSiegen.Shared/Helper/TermHelper.cs @@ -22,13 +22,13 @@ namespace FoodsharingSiegen.Shared.Helper { InteractionType.EinAb => "Einführung", InteractionType.Welcome => "Begrüßung", - InteractionType.IdCheck => "Perso prüfen", - InteractionType.PrintPass => "FS-Ausweis (Print)", + InteractionType.IdCheck => "Perso-Check", + InteractionType.PrintPass => "FS-Ausweis", InteractionType.PdfPass => "FS-Ausweis (PDF)", - InteractionType.Verify => "Verifizieren", + InteractionType.Verify => "Verifizierung", InteractionType.Complete => "Fertig", InteractionType.StepInBriefing => appSettings.Terms.StepInName ?? "StepIn", - InteractionType.ReleasedForVerification => "Freigabe zur Verifizierung", + InteractionType.ReleasedForVerification => "Freigabe zum Freischalten", _ => type.ToString() }; }