From 5a1c54ff73d1bce0f76de49e4e8c0ff9ca4f07ad Mon Sep 17 00:00:00 2001 From: NeoCoderMatrix86 <40752681+NeoCoderMatrix86@users.noreply.github.com> Date: Tue, 26 Mar 2024 10:48:31 +0100 Subject: [PATCH] Bugfix for localizing validation messages --- AudioCuesheetEditor/Pages/EditSplitpoints.razor | 1 + AudioCuesheetEditor/Pages/ViewModeImport.razor | 1 + AudioCuesheetEditor/Shared/CuesheetData.razor | 1 + AudioCuesheetEditor/Shared/TracksTable.razor | 1 + 4 files changed, 4 insertions(+) diff --git a/AudioCuesheetEditor/Pages/EditSplitpoints.razor b/AudioCuesheetEditor/Pages/EditSplitpoints.razor index 058fd753..2102ccf0 100644 --- a/AudioCuesheetEditor/Pages/EditSplitpoints.razor +++ b/AudioCuesheetEditor/Pages/EditSplitpoints.razor @@ -161,6 +161,7 @@ along with Foobar. If not, see void LocalizationService_LocalizationChanged(object? sender, EventArgs args) { StateHasChanged(); + validations?.ValidateAll(); } Task AddSplitPointClicked() diff --git a/AudioCuesheetEditor/Pages/ViewModeImport.razor b/AudioCuesheetEditor/Pages/ViewModeImport.razor index 7ed3ac7d..dcf33b2d 100644 --- a/AudioCuesheetEditor/Pages/ViewModeImport.razor +++ b/AudioCuesheetEditor/Pages/ViewModeImport.razor @@ -586,6 +586,7 @@ along with Foobar. If not, see StateHasChanged(); TimeSpanFormat.TextLocalizer = _localizer; TextImportScheme.TextLocalizer = _localizer; + validations?.ValidateAll(); } private void SessionStateContainer_ImportCuesheetChanged(object? sender, EventArgs args) diff --git a/AudioCuesheetEditor/Shared/CuesheetData.razor b/AudioCuesheetEditor/Shared/CuesheetData.razor index c6533636..6d0b9bcf 100644 --- a/AudioCuesheetEditor/Shared/CuesheetData.razor +++ b/AudioCuesheetEditor/Shared/CuesheetData.razor @@ -316,6 +316,7 @@ along with Foobar. If not, see private void LocalizationService_LocalizationChanged(object? sender, EventArgs args) { StateHasChanged(); + validations?.ValidateAll(); } private void SessionStateContainer_CuesheetChanged(object? sender, EventArgs args) diff --git a/AudioCuesheetEditor/Shared/TracksTable.razor b/AudioCuesheetEditor/Shared/TracksTable.razor index 4d0f7864..8c97bc92 100644 --- a/AudioCuesheetEditor/Shared/TracksTable.razor +++ b/AudioCuesheetEditor/Shared/TracksTable.razor @@ -610,6 +610,7 @@ along with Foobar. If not, see private void LocalizationService_LocalizationChanged(object? sender, EventArgs args) { StateHasChanged(); + validations?.ValidateAll(); } private MarkupString GetMarkupString(String? stringValue)