From de4503891107185a20127e1c5cd35a4d3592cbb0 Mon Sep 17 00:00:00 2001 From: Carsten Braun Date: Tue, 16 May 2023 16:20:00 +0200 Subject: [PATCH 1/3] Translated the App to German. Added a few additional resources for localization --- app/Extra.cs | 1 + app/Fans.cs | 5 + app/Properties/Strings.Designer.cs | 45 +++++++ app/Properties/Strings.de.resx | 186 ++++++++++++++++------------- app/Properties/Strings.resx | 15 +++ 5 files changed, 171 insertions(+), 81 deletions(-) diff --git a/app/Extra.cs b/app/Extra.cs index bdfb3e45..5e4c8f5f 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -68,6 +68,7 @@ namespace GHelper labelSpeed.Text = Properties.Strings.AnimationSpeed; labelBrightness.Text = Properties.Strings.Brightness; + labelBacklightTimeout.Text = Properties.Strings.BacklightTimeout; checkKeyboardAuto.Text = Properties.Strings.KeyboardAuto; checkNoOverdrive.Text = Properties.Strings.DisableOverdrive; diff --git a/app/Fans.cs b/app/Fans.cs index b6cf81e7..9d8ef87f 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -36,6 +36,11 @@ namespace GHelper labelGPU.Text = Properties.Strings.GPUSettings; + labelGPUCoreTitle.Text = Properties.Strings.GPUCoreClockOffset; + labelGPUMemoryTitle.Text = Properties.Strings.GPUMemoryClockOffset; + labelGPUBoostTitle.Text = Properties.Strings.GPUBoost; + labelGPUTempTitle.Text = Properties.Strings.GPUTempTarget; + InitTheme(); MinRPM = 18; diff --git a/app/Properties/Strings.Designer.cs b/app/Properties/Strings.Designer.cs index bd136139..4563abf2 100644 --- a/app/Properties/Strings.Designer.cs +++ b/app/Properties/Strings.Designer.cs @@ -276,6 +276,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Seconds to turn off backlight on battery. + /// + internal static string BacklightTimeout { + get { + return ResourceManager.GetString("BacklightTimeout", resourceCulture); + } + } + /// /// Looks up a localized string similar to Balanced. /// @@ -483,6 +492,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Dynamic Boost. + /// + internal static string GPUBoost { + get { + return ResourceManager.GetString("GPUBoost", resourceCulture); + } + } + /// /// Looks up a localized string similar to Changing. /// @@ -492,6 +510,24 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Core Clock. + /// + internal static string GPUCoreClockOffset { + get { + return ResourceManager.GetString("GPUCoreClockOffset", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Memory Clock Offset. + /// + internal static string GPUMemoryClockOffset { + get { + return ResourceManager.GetString("GPUMemoryClockOffset", resourceCulture); + } + } + /// /// Looks up a localized string similar to GPU Mode. /// @@ -537,6 +573,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Temperature Target. + /// + internal static string GPUTempTarget { + get { + return ResourceManager.GetString("GPUTempTarget", resourceCulture); + } + } + /// /// Looks up a localized string similar to Key Bindings. /// diff --git a/app/Properties/Strings.de.resx b/app/Properties/Strings.de.resx index c8af7f77..48f6e59c 100644 --- a/app/Properties/Strings.de.resx +++ b/app/Properties/Strings.de.resx @@ -59,49 +59,49 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Can't connect to ASUS ACPI. Application can't function without it. Try to install Asus System Control Interface + Verbindung zur ASUS ACPI fehlgeschlagen. G-Helper kann nicht ausgeführt werden. Bitte installiere ASUS System Control Interface. - Looks like GPU is in heavy use, disable it? + Die GPU ist ausgelastet. Trotzdem deaktivieren? - Eco Mode + Eco Modus - Switching off Ultimate Mode requires restart + Wechseln in den Ultimate Modus benötigt einen Neustart. Jetzt neustarten? - Ultimate Mode requires restart + Ultimate Modus benötigt einen Neustart - Reboot now? + Jetzt neustarten? - Animation Speed + Animationsgeschwindigkeit - Anime Matrix + AniMeMatrix - App already running + Die Anwendung läuft bereits - G-Helper is already running. Check system tray for an icon. + G-Helper läuft bereits. Bitte prüfen sie den Systemtray. - Apply Custom Fan Curve + Lüfterkurve anweden - Apply Power Limits + Leistungrenzen Anwenden - Auto Adjust Windows Power Mode + Windows Leistungsmodus automatisch anpassen - Breathe + Atmen - Color Cycle + Farbwechsel Fast @@ -110,13 +110,13 @@ Normal - Rainbow + Regenbogen - Slow + Langsam - Static + Statisch Strobe @@ -125,43 +125,49 @@ Auto - Sets 60Hz to save battery, and back when plugged + 60Hz auf Batterie, Maximal wenn eingesteckt. - Awake + Im Betrieb + + + Tastaturbelechtung abschalten in (Sekunden) - Balanced + Ausbalanciert - Battery Charge Limit + Ladebegrenzung - Boot + Hochfahren + + + Helligkeit - Color + Farbe CPU Boost - Custom + Benutzerdefiniert - Default + Standard - Disable screen overdrive + Overdrive abschalten - Discharging + Entlädt - Download Update + Updates herunterladen - Disables dGPU for battery savings + dGPU zum Batteriesparen abschalten Eco @@ -170,172 +176,190 @@ Extra - Extra Settings + Extra-Einstellungen - Factory Defaults + Werkseinstellungen - Fan Curves + Lüfterkurven - CPU Fan Profile + CPU Lüfterprofil - GPU Fan Profile + GPU Lüfterprofil - Mid Fan Profile + Zusatz Lüfterprofil - Fan Profiles + Lüfterprofile - Fans and Power + Lüfter und Leistung - Fans + Power + Lüfter + Leistung + + + Dynamic Boost - Changing + Wechseln + + + Kernfrequenz Anpassung + + + Speicherfrequenz Anpassung - GPU Mode + GPU Modus - iGPU only + Nur iGPU iGPU + dGPU - dGPU exclusive + Nur dGPU + + + Maximale GPU Temperatur - Key Bindings + Tastenbelegung - Keyboard + Tastatur - Lower backlight brightness on battery and back when plugged + Tastaturbeleuchtung im Batteriebetrieb abdunkeln. - Keyboard Backlight + Tastaturbeleuchtung + + + Laptopbelechtung - Laptop Keyboard + Laptopstastatur - Laptop Screen + Laptopbildschirm Binary Banner - Bright + Hell - Clock + Uhr - Dim + Dunkel Rog Logo - Medium + Mittel - Off + Aus - Picture + Bild - Max refresh rate for lower latency + Maximale Wiederholrate für niedrigste Latenz - 60Hz refresh rate to save battery + 60Hz um Strom zu sparen - Multizone + Multi-Zone - Open G-Helper window + G-Helper Fenster öffnen - Optimized + Optimiert - Switch to Eco on battery and to Standard when plugged + Eco Modus im Batteriebetrieb, Standard wenn eingesteckt. + + + GPU beim USB-C Laden im Optimierten Modus deaktiviert lassen - Other + Sonstiges Overdrive - Performance Mode + Leistungsmodus - Picture / Gif + Bild / GIF Play / Pause - Power Limits (PPT) + Strombegrenzung (PPT) - Power Limits (PPT) is experimental feature. Use carefully and on your own risk! + Strombegrenzung (PPT) ist experimentell. Nutzung auf eigene Gefahr! - PrintScreen + Druck - Quit + Schließen - RPM + U/Min - Run on Startup + Beim Start ausführen - Shutdown + Herunterfahren - Silent + Leise - Sleep + Standby - Enables dGPU for standard use + dGPU aktivieren Standard - Startup Error + Startfehler - Toggle Aura + Aura umschalten Turbo - Turned off + Ausgeschaltet - Turn off on battery + Auf Batterie abschalten - Routes laptop screen to dGPU, maximizing FPS + Verbindet den Bildschirm mit der dGPU für maximale Leistung. Ultimate @@ -344,9 +368,9 @@ Version - Volume Mute + Stummschalten - Keep app window always on top + Fenster immer über allen anderen \ No newline at end of file diff --git a/app/Properties/Strings.resx b/app/Properties/Strings.resx index 6d47593a..03aec5f9 100644 --- a/app/Properties/Strings.resx +++ b/app/Properties/Strings.resx @@ -189,6 +189,9 @@ Awake + + Seconds to turn off backlight on battery + Balanced @@ -258,9 +261,18 @@ Fans + Power + + Dynamic Boost + Changing + + Core Clock Offset + + + Memory Clock Offset + GPU Mode @@ -276,6 +288,9 @@ GPU Settings + + Temperature Target + Key Bindings From 6a4aa4e1386cab8c1a100c1854071e698d5d6e48 Mon Sep 17 00:00:00 2001 From: Carsten Braun Date: Wed, 17 May 2023 10:47:41 +0200 Subject: [PATCH 2/3] Localize fan speed labels in the main window --- app/HardwareControl.cs | 4 ++-- app/Properties/Strings.Designer.cs | 9 +++++++++ app/Properties/Strings.de.resx | 5 ++++- app/Properties/Strings.resx | 3 +++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/app/HardwareControl.cs b/app/HardwareControl.cs index 99d2edd8..742f2f93 100644 --- a/app/HardwareControl.cs +++ b/app/HardwareControl.cs @@ -41,9 +41,9 @@ public static class HardwareControl if (fan > fanMax && fan < 110) SetFanMax(fan); if (Program.config.getConfig("fan_rpm") == 1) - return " Fan: " + (fan * 100).ToString() + "RPM"; + return GHelper.Properties.Strings.FanSpeed + (fan * 100).ToString() + GHelper.Properties.Strings.RPM; else - return " Fan: " + Math.Min(Math.Round((float)fan / fanMax * 100), 100).ToString() + "%"; // relatively to 6000 rpm + return GHelper.Properties.Strings.FanSpeed + Math.Min(Math.Round((float)fan / fanMax * 100), 100).ToString() + "%"; // relatively to 6000 rpm } private static int GetGpuUse() diff --git a/app/Properties/Strings.Designer.cs b/app/Properties/Strings.Designer.cs index 529f5f61..f407ae2a 100644 --- a/app/Properties/Strings.Designer.cs +++ b/app/Properties/Strings.Designer.cs @@ -483,6 +483,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Fan: . + /// + internal static string FanSpeed { + get { + return ResourceManager.GetString("FanSpeed", resourceCulture); + } + } + /// /// Looks up a localized string similar to Fans + Power. /// diff --git a/app/Properties/Strings.de.resx b/app/Properties/Strings.de.resx index 48f6e59c..d2afa524 100644 --- a/app/Properties/Strings.de.resx +++ b/app/Properties/Strings.de.resx @@ -199,6 +199,9 @@ Lüfter und Leistung + + Lüfter: + Lüfter + Leistung @@ -263,7 +266,7 @@ Dunkel - Rog Logo + ROG Logo Mittel diff --git a/app/Properties/Strings.resx b/app/Properties/Strings.resx index 08508c58..6c735d5d 100644 --- a/app/Properties/Strings.resx +++ b/app/Properties/Strings.resx @@ -258,6 +258,9 @@ Fans and Power + + Fan: + Fans + Power From 0456fa013ce182fac56937b64a2703f5d081d791 Mon Sep 17 00:00:00 2001 From: Carsten Braun Date: Wed, 17 May 2023 13:11:11 +0200 Subject: [PATCH 3/3] Improbed a few translations and fixed typos. --- app/Properties/Strings.de.resx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Properties/Strings.de.resx b/app/Properties/Strings.de.resx index d2afa524..7bb52970 100644 --- a/app/Properties/Strings.de.resx +++ b/app/Properties/Strings.de.resx @@ -59,10 +59,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Verbindung zur ASUS ACPI fehlgeschlagen. G-Helper kann nicht ausgeführt werden. Bitte installiere ASUS System Control Interface. + Verbindung zu ASUS ACPI fehlgeschlagen. G-Helper kann nicht ausgeführt werden. Bitte installiere ASUS System Control Interface. - Die GPU ist ausgelastet. Trotzdem deaktivieren? + Die GPU wird gerade verwendet. Trotzdem deaktivieren? Eco Modus @@ -86,13 +86,13 @@ Die Anwendung läuft bereits - G-Helper läuft bereits. Bitte prüfen sie den Systemtray. + G-Helper läuft bereits. Bitte prüfe den Systemtray. Lüfterkurve anweden - Leistungrenzen Anwenden + Leistunsgrenzen anwenden Windows Leistungsmodus automatisch anpassen @@ -104,7 +104,7 @@ Farbwechsel - Fast + Schnell Normal @@ -119,13 +119,13 @@ Statisch - Strobe + Stroboskop Auto - 60Hz auf Batterie, Maximal wenn eingesteckt. + 60Hz im Batteriebetrieb Maximal wenn eingesteckt. Im Betrieb @@ -167,7 +167,7 @@ Updates herunterladen - dGPU zum Batteriesparen abschalten + dGPU zum Stromsparen abschalten Eco @@ -191,7 +191,7 @@ GPU Lüfterprofil - Zusatz Lüfterprofil + Mittleres Lüfterprofil Lüfterprofile @@ -248,7 +248,7 @@ Laptopbelechtung - Laptopstastatur + Laptoptastatur Laptopbildschirm @@ -311,13 +311,13 @@ Bild / GIF - Play / Pause + Wiedergabe / Pause - Strombegrenzung (PPT) + Leistungsbegrenzung (PPT) - Strombegrenzung (PPT) ist experimentell. Nutzung auf eigene Gefahr! + Leistungsbegrenzung (PPT) ist experimentell. Nutzung erfolgt auf eigene Gefahr! Druck @@ -359,7 +359,7 @@ Ausgeschaltet - Auf Batterie abschalten + Im Batteriebetrieb abschalten Verbindet den Bildschirm mit der dGPU für maximale Leistung.