From 6a6fd7efe622efb68a7b6927f59b3e13efb94c2e Mon Sep 17 00:00:00 2001 From: Pascal Date: Thu, 6 Nov 2025 11:42:08 +0100 Subject: [PATCH] ui(client): translation --- .../FiledialogFilters.Designer.cs | 2 +- .../GeneralLangRes.Designer.cs} | 178 ++++++++++++------ .../GeneralLangRes.resx} | 86 +++++---- .../LangRes/MsgBoxLangRes.Designer.cs | 81 ++++++++ .../LangRes/MsgBoxLangRes.resx | 126 +++++++++++++ ModpackUpdater.Apps.Client.Gui/MainForm.axaml | 17 +- .../MainForm.axaml.cs | 24 +-- .../ModpackUpdater.Apps.Client.Gui.csproj | 25 +-- 8 files changed, 411 insertions(+), 128 deletions(-) rename ModpackUpdater.Apps.Client.Gui/{LangRes.Designer.cs => LangRes/GeneralLangRes.Designer.cs} (54%) rename ModpackUpdater.Apps.Client.Gui/{LangRes.resx => LangRes/GeneralLangRes.resx} (82%) create mode 100644 ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.Designer.cs create mode 100644 ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.resx diff --git a/ModpackUpdater.Apps.Client.Gui/FiledialogFilters.Designer.cs b/ModpackUpdater.Apps.Client.Gui/FiledialogFilters.Designer.cs index 3c97b26..384382a 100644 --- a/ModpackUpdater.Apps.Client.Gui/FiledialogFilters.Designer.cs +++ b/ModpackUpdater.Apps.Client.Gui/FiledialogFilters.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace ModpackUpdater.My.Resources { +namespace ModpackUpdater.Apps.Client.Gui { using System; diff --git a/ModpackUpdater.Apps.Client.Gui/LangRes.Designer.cs b/ModpackUpdater.Apps.Client.Gui/LangRes/GeneralLangRes.Designer.cs similarity index 54% rename from ModpackUpdater.Apps.Client.Gui/LangRes.Designer.cs rename to ModpackUpdater.Apps.Client.Gui/LangRes/GeneralLangRes.Designer.cs index d8dfc43..4beaf39 100644 --- a/ModpackUpdater.Apps.Client.Gui/LangRes.Designer.cs +++ b/ModpackUpdater.Apps.Client.Gui/LangRes/GeneralLangRes.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace ModpackUpdater.My.Resources { +namespace ModpackUpdater.Apps.Client.Gui.LangRes { using System; @@ -22,24 +22,24 @@ namespace ModpackUpdater.My.Resources { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class LangRes { + public class GeneralLangRes { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal LangRes() { + internal GeneralLangRes() { } /// /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { + public static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ModpackUpdater.Apps.Client.Gui.LangRes", typeof(LangRes).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ModpackUpdater.Apps.Client.Gui.LangRes.GeneralLangRes", typeof(GeneralLangRes).Assembly); resourceMan = temp; } return resourceMan; @@ -51,7 +51,7 @@ namespace ModpackUpdater.My.Resources { /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { + public static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -61,110 +61,164 @@ namespace ModpackUpdater.My.Resources { } /// - /// Sucht eine lokalisierte Zeichenfolge, die Select the minecraft profile folder (usually named .minecraft) ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die An update is available! ähnelt. /// - internal static string FileDialog_SelectMinecraftProfileFolder { + public static string AnUpdateIsAvailable { get { - return ResourceManager.GetString("FileDialog_SelectMinecraftProfileFolder", resourceCulture); + return ResourceManager.GetString("AnUpdateIsAvailable", resourceCulture); } } /// - /// Sucht eine lokalisierte Zeichenfolge, die A new version of this program is available. If you confirm, the update will be installed automatically. It takes just a few seconds. Continue? ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die Check for updates ähnelt. /// - internal static string MsgBox_UpdateAvailable { + public static string CheckForUpdates { get { - return ResourceManager.GetString("MsgBox_UpdateAvailable", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die New program version available ähnelt. - /// - internal static string MsgBox_UpdateAvailable_Title { - get { - return ResourceManager.GetString("MsgBox_UpdateAvailable_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Everything is right and up-to-date. ähnelt. - /// - internal static string StatusTest_EverythingOk { - get { - return ResourceManager.GetString("StatusTest_EverythingOk", resourceCulture); + return ResourceManager.GetString("CheckForUpdates", resourceCulture); } } /// /// Sucht eine lokalisierte Zeichenfolge, die Checking for Updates... ähnelt. /// - internal static string StatusText_CheckingForUpdates { + public static string CheckingForUpdates { get { - return ResourceManager.GetString("StatusText_CheckingForUpdates", resourceCulture); + return ResourceManager.GetString("CheckingForUpdates", resourceCulture); } } /// /// Sucht eine lokalisierte Zeichenfolge, die Config incomplete or not loaded! ähnelt. /// - internal static string StatusText_ConfigIncompleteOrNotLoaded { + public static string ConfigIncompleteOrNotLoaded { get { - return ResourceManager.GetString("StatusText_ConfigIncompleteOrNotLoaded", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Error on update check or while updating! ähnelt. - /// - internal static string StatusText_ErrorWhileUpdateCheckOrUpdate { - get { - return ResourceManager.GetString("StatusText_ErrorWhileUpdateCheckOrUpdate", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Installing... ähnelt. - /// - internal static string StatusText_Installing { - get { - return ResourceManager.GetString("StatusText_Installing", resourceCulture); + return ResourceManager.GetString("ConfigIncompleteOrNotLoaded", resourceCulture); } } /// /// Sucht eine lokalisierte Zeichenfolge, die Downloading program update... ähnelt. /// - internal static string StatusText_InstallingAppUpdate { + public static string DownloadProgramUpdate { get { - return ResourceManager.GetString("StatusText_InstallingAppUpdate", resourceCulture); + return ResourceManager.GetString("DownloadProgramUpdate", resourceCulture); } } /// - /// Sucht eine lokalisierte Zeichenfolge, die The update servers are in maintenance. ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die Error on update check or while updating! ähnelt. /// - internal static string StatusText_Maintenance { + public static string ErrorOnUpdateCheckOrUpdating { get { - return ResourceManager.GetString("StatusText_Maintenance", resourceCulture); + return ResourceManager.GetString("ErrorOnUpdateCheckOrUpdating", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Everything is right and up-to-date. ähnelt. + /// + public static string EverythingIsRightAndUpToDate { + get { + return ResourceManager.GetString("EverythingIsRightAndUpToDate", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Install ähnelt. + /// + public static string Install { + get { + return ResourceManager.GetString("Install", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Installation key ähnelt. + /// + public static string InstallationKey { + get { + return ResourceManager.GetString("InstallationKey", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Installing... ähnelt. + /// + public static string Installing { + get { + return ResourceManager.GetString("Installing", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Minecraft profile ähnelt. + /// + public static string MinecraftProfile { + get { + return ResourceManager.GetString("MinecraftProfile", resourceCulture); } } /// /// Sucht eine lokalisierte Zeichenfolge, die Minecraft profile folder seems to be not valid. ähnelt. /// - internal static string StatusText_MinecraftProfileWarning { + public static string MinecraftProfileFolderSeemsInvalid { get { - return ResourceManager.GetString("StatusText_MinecraftProfileWarning", resourceCulture); + return ResourceManager.GetString("MinecraftProfileFolderSeemsInvalid", resourceCulture); } } /// - /// Sucht eine lokalisierte Zeichenfolge, die An update is available! ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die Modpack config url ähnelt. /// - internal static string StatusText_UpdateAvailable { + public static string ModpackConfigUrl { get { - return ResourceManager.GetString("StatusText_UpdateAvailable", resourceCulture); + return ResourceManager.GetString("ModpackConfigUrl", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Repair ähnelt. + /// + public static string Repair { + get { + return ResourceManager.GetString("Repair", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Select ähnelt. + /// + public static string Select { + get { + return ResourceManager.GetString("Select", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Select the minecraft profile folder (usually named .minecraft) ähnelt. + /// + public static string SelectMinecraftProfileFolder { + get { + return ResourceManager.GetString("SelectMinecraftProfileFolder", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Status ähnelt. + /// + public static string Status { + get { + return ResourceManager.GetString("Status", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die The update servers are in maintenance. ähnelt. + /// + public static string UpdateServerInMaintenance { + get { + return ResourceManager.GetString("UpdateServerInMaintenance", resourceCulture); } } } diff --git a/ModpackUpdater.Apps.Client.Gui/LangRes.resx b/ModpackUpdater.Apps.Client.Gui/LangRes/GeneralLangRes.resx similarity index 82% rename from ModpackUpdater.Apps.Client.Gui/LangRes.resx rename to ModpackUpdater.Apps.Client.Gui/LangRes/GeneralLangRes.resx index e0ef0c7..5203ba1 100644 --- a/ModpackUpdater.Apps.Client.Gui/LangRes.resx +++ b/ModpackUpdater.Apps.Client.Gui/LangRes/GeneralLangRes.resx @@ -117,40 +117,58 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Select the minecraft profile folder (usually named .minecraft) - - - A new version of this program is available. If you confirm, the update will be installed automatically. It takes just a few seconds. Continue? - - - New program version available - - - Everything is right and up-to-date. - - - Checking for Updates... - - - Config incomplete or not loaded! - - - Error on update check or while updating! - - - Installing... - - - Downloading program update... - - - The update servers are in maintenance. - - - Minecraft profile folder seems to be not valid. - - + An update is available! + + Check for updates + + + Checking for Updates... + + + Config incomplete or not loaded! + + + Downloading program update... + + + Error on update check or while updating! + + + Everything is right and up-to-date. + + + Install + + + Installation key + + + Installing... + + + Minecraft profile + + + Minecraft profile folder seems to be not valid. + + + Modpack config url + + + Repair + + + Select + + + Select the minecraft profile folder (usually named .minecraft) + + + Status + + + The update servers are in maintenance. + \ No newline at end of file diff --git a/ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.Designer.cs b/ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.Designer.cs new file mode 100644 index 0000000..3ad2d8e --- /dev/null +++ b/ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.Designer.cs @@ -0,0 +1,81 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace ModpackUpdater.Apps.Client.Gui.LangRes { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class MsgBoxLangRes { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal MsgBoxLangRes() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ModpackUpdater.Apps.Client.Gui.LangRes.MsgBoxLangRes", typeof(MsgBoxLangRes).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die A new version of this program is available. If you confirm, the update will be installed automatically. It takes just a few seconds. Continue? ähnelt. + /// + public static string UpdateAvailable { + get { + return ResourceManager.GetString("UpdateAvailable", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die New program version available ähnelt. + /// + public static string UpdateAvailable_Title { + get { + return ResourceManager.GetString("UpdateAvailable_Title", resourceCulture); + } + } + } +} diff --git a/ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.resx b/ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.resx new file mode 100644 index 0000000..2b0fc36 --- /dev/null +++ b/ModpackUpdater.Apps.Client.Gui/LangRes/MsgBoxLangRes.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + A new version of this program is available. If you confirm, the update will be installed automatically. It takes just a few seconds. Continue? + + + New program version available + + \ No newline at end of file diff --git a/ModpackUpdater.Apps.Client.Gui/MainForm.axaml b/ModpackUpdater.Apps.Client.Gui/MainForm.axaml index da9844e..5b0ea7a 100644 --- a/ModpackUpdater.Apps.Client.Gui/MainForm.axaml +++ b/ModpackUpdater.Apps.Client.Gui/MainForm.axaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:lang="clr-namespace:ModpackUpdater.Apps.Client.Gui.LangRes" xmlns:svg="clr-namespace:Avalonia.Svg;assembly=Avalonia.Svg" mc:Ignorable="d" x:Class="ModpackUpdater.Apps.Client.Gui.MainForm" @@ -26,10 +27,10 @@ -