From bee3bec549292e0976aead160d878684d98ffd63 Mon Sep 17 00:00:00 2001 From: Ionite Date: Wed, 15 Nov 2023 19:49:22 -0500 Subject: [PATCH] Add localization, remove debug only for accounts --- StabilityMatrix.Avalonia/Languages/Resources.Designer.cs | 9 +++++++++ StabilityMatrix.Avalonia/Languages/Resources.resx | 3 +++ .../Views/Settings/MainSettingsPage.axaml | 3 +-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/StabilityMatrix.Avalonia/Languages/Resources.Designer.cs b/StabilityMatrix.Avalonia/Languages/Resources.Designer.cs index 8d6c1599..f9984748 100644 --- a/StabilityMatrix.Avalonia/Languages/Resources.Designer.cs +++ b/StabilityMatrix.Avalonia/Languages/Resources.Designer.cs @@ -581,6 +581,15 @@ namespace StabilityMatrix.Avalonia.Languages { } } + /// + /// Looks up a localized string similar to . + /// + public static string Label_Accounts { + get { + return ResourceManager.GetString("Label_Accounts", resourceCulture); + } + } + /// /// Looks up a localized string similar to Add Stability Matrix to the Start Menu. /// diff --git a/StabilityMatrix.Avalonia/Languages/Resources.resx b/StabilityMatrix.Avalonia/Languages/Resources.resx index 6363e680..9baa3860 100644 --- a/StabilityMatrix.Avalonia/Languages/Resources.resx +++ b/StabilityMatrix.Avalonia/Languages/Resources.resx @@ -777,4 +777,7 @@ API Key + + + diff --git a/StabilityMatrix.Avalonia/Views/Settings/MainSettingsPage.axaml b/StabilityMatrix.Avalonia/Views/Settings/MainSettingsPage.axaml index ee6d4ece..e9d960f0 100644 --- a/StabilityMatrix.Avalonia/Views/Settings/MainSettingsPage.axaml +++ b/StabilityMatrix.Avalonia/Views/Settings/MainSettingsPage.axaml @@ -255,10 +255,9 @@ Grid.Row="1" Margin="8,0" IsClickEnabled="True" - IsVisible="{Binding SharedState.IsDebugMode}" Command="{Binding NavigateToSubPageCommand}" CommandParameter="{x:Type vmSettings:AccountSettingsViewModel}" - Header="Accounts" + Header="{x:Static lang:Resources.Label_Accounts}" ActionIconSource="ChevronRight">