From b0e60d5d787eaaad522cb3071133c9f4a5cb2e69 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 4 Feb 2024 13:29:17 +0100 Subject: [PATCH] Translations Update --- app/Extra.cs | 3 +- app/Handheld.cs | 13 ++- app/Matrix.cs | 8 ++ app/Properties/Strings.Designer.cs | 153 +++++++++++++++++++++++++++++ app/Properties/Strings.resx | 51 ++++++++++ app/Settings.cs | 3 + 6 files changed, 229 insertions(+), 2 deletions(-) diff --git a/app/Extra.cs b/app/Extra.cs index 8784b7cd..eb58f84a 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -130,6 +130,7 @@ namespace GHelper labelBacklightTimeout.Text = Properties.Strings.BacklightTimeout; //labelBacklightTimeoutPlugged.Text = Properties.Strings.BacklightTimeoutPlugged; + checkGPUFix.Text = Properties.Strings.EnableGPUOnShutdown; checkNoOverdrive.Text = Properties.Strings.DisableOverdrive; checkTopmost.Text = Properties.Strings.WindowTop; checkUSBC.Text = Properties.Strings.OptimizedUSBC; @@ -217,7 +218,7 @@ namespace GHelper labelM2.Visible = comboM2.Visible = textM2.Visible = false; // Re-label M3 and M4 and FNF4 to match the front labels. - labelM3.Text = "Ctrl Center"; + labelM3.Text = "Cmd Center"; labelM4.Text = "ROG"; labelFNF4.Text = "Back Paddles"; diff --git a/app/Handheld.cs b/app/Handheld.cs index b12dc784..1e4e944d 100644 --- a/app/Handheld.cs +++ b/app/Handheld.cs @@ -14,6 +14,17 @@ namespace GHelper InitializeComponent(); InitTheme(true); + labelLSTitle.Text = Properties.Strings.LSDeadzones; + labelRSTitle.Text = Properties.Strings.RSDeadzones; + labelLTTitle.Text = Properties.Strings.LTDeadzones; + labelRTTitle.Text = Properties.Strings.RTDeadzones; + labelVibraTitle.Text = Properties.Strings.VibrationStrength; + checkController.Text = Properties.Strings.DisableController; + buttonReset.Text = Properties.Strings.Reset; + + labelPrimary.Text = Properties.Strings.BindingPrimary; + labelSecondary.Text = Properties.Strings.BindingSecondary; + Shown += Handheld_Shown; Init(); @@ -160,7 +171,7 @@ namespace GHelper activeButton = button; activeBinding = binding; - labelBinding.Text = "Binding: " + label; + labelBinding.Text = Properties.Strings.Binding + ": " + label; SetComboValue(comboPrimary, AppConfig.GetString("bind_" + binding, "")); SetComboValue(comboSecondary, AppConfig.GetString("bind2_" + binding, "")); diff --git a/app/Matrix.cs b/app/Matrix.cs index d62ef5d7..c87d61cc 100644 --- a/app/Matrix.cs +++ b/app/Matrix.cs @@ -25,6 +25,14 @@ namespace GHelper InitializeComponent(); InitTheme(true); + Text = Properties.Strings.AnimeMatrix; + labelZoomTitle.Text = Properties.Strings.Zoom; + labelScaling.Text = Properties.Strings.ScalingQuality; + labelRotation.Text = Properties.Strings.ImageRotation; + labelContrastTitle.Text = Properties.Strings.Contrast; + buttonPicture.Text = Properties.Strings.PictureGif; + buttonReset.Text = Properties.Strings.Reset; + Shown += Matrix_Shown; FormClosing += Matrix_FormClosed; diff --git a/app/Properties/Strings.Designer.cs b/app/Properties/Strings.Designer.cs index 4cf2299e..c556701a 100644 --- a/app/Properties/Strings.Designer.cs +++ b/app/Properties/Strings.Designer.cs @@ -141,6 +141,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Ally Controller. + /// + internal static string AllyController { + get { + return ResourceManager.GetString("AllyController", resourceCulture); + } + } + /// /// Looks up a localized string similar to Animation Speed. /// @@ -519,6 +528,33 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Binding. + /// + internal static string Binding { + get { + return ResourceManager.GetString("Binding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Primary. + /// + internal static string BindingPrimary { + get { + return ResourceManager.GetString("BindingPrimary", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Secondary. + /// + internal static string BindingSecondary { + get { + return ResourceManager.GetString("BindingSecondary", resourceCulture); + } + } + /// /// Looks up a localized string similar to BIOS and Driver Updates. /// @@ -600,6 +636,24 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Contrast. + /// + internal static string Contrast { + get { + return ResourceManager.GetString("Contrast", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Controller. + /// + internal static string Controller { + get { + return ResourceManager.GetString("Controller", resourceCulture); + } + } + /// /// Looks up a localized string similar to CPU Boost. /// @@ -636,6 +690,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Disable Controller. + /// + internal static string DisableController { + get { + return ResourceManager.GetString("DisableController", resourceCulture); + } + } + /// /// Looks up a localized string similar to Disable screen overdrive. /// @@ -690,6 +753,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Enable GPU on shutdown (prevents issue with Eco mode). + /// + internal static string EnableGPUOnShutdown { + get { + return ResourceManager.GetString("EnableGPUOnShutdown", resourceCulture); + } + } + /// /// Looks up a localized string similar to Disabling the dGPU by going into Eco mode while Display Mode in NVIDIA Control Panel is not set to Optimus might cause problems with brightness controls until after the next reboot. /// @@ -935,6 +1007,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Image Rotation. + /// + internal static string ImageRotation { + get { + return ResourceManager.GetString("ImageRotation", resourceCulture); + } + } + /// /// Looks up a localized string similar to Key Bindings. /// @@ -1034,6 +1115,24 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Left Stick Deadzones. + /// + internal static string LSDeadzones { + get { + return ResourceManager.GetString("LSDeadzones", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Left Trigger Deadzones. + /// + internal static string LTDeadzones { + get { + return ResourceManager.GetString("LTDeadzones", resourceCulture); + } + } + /// /// Looks up a localized string similar to Audio Visualizer. /// @@ -1430,6 +1529,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Reset. + /// + internal static string Reset { + get { + return ResourceManager.GetString("Reset", resourceCulture); + } + } + /// /// Looks up a localized string similar to Something is using dGPU and preventing Eco mode. Let G-Helper try to restart dGPU in device manager? (Please proceed at your own risk). /// @@ -1448,6 +1556,24 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Right Stick Deadzones. + /// + internal static string RSDeadzones { + get { + return ResourceManager.GetString("RSDeadzones", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Right Trigger Deadzones. + /// + internal static string RTDeadzones { + get { + return ResourceManager.GetString("RTDeadzones", resourceCulture); + } + } + /// /// Looks up a localized string similar to Run on Startup. /// @@ -1457,6 +1583,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Scaling Quality. + /// + internal static string ScalingQuality { + get { + return ResourceManager.GetString("ScalingQuality", resourceCulture); + } + } + /// /// Looks up a localized string similar to Screenpad Brightness Down. /// @@ -1691,6 +1826,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Vibration Strength. + /// + internal static string VibrationStrength { + get { + return ResourceManager.GetString("VibrationStrength", resourceCulture); + } + } + /// /// Looks up a localized string similar to Volume Down. /// @@ -1726,5 +1870,14 @@ namespace GHelper.Properties { return ResourceManager.GetString("WindowTop", resourceCulture); } } + + /// + /// Looks up a localized string similar to Zoom. + /// + internal static string Zoom { + get { + return ResourceManager.GetString("Zoom", resourceCulture); + } + } } } diff --git a/app/Properties/Strings.resx b/app/Properties/Strings.resx index 9c5ab07d..96eb864d 100644 --- a/app/Properties/Strings.resx +++ b/app/Properties/Strings.resx @@ -144,6 +144,9 @@ Reboot now? + + Ally Controller + Animation Speed @@ -270,6 +273,15 @@ One time charge to 100% + + Binding + + + Primary + + + Secondary + BIOS and Driver Updates @@ -297,6 +309,12 @@ Color + + Contrast + + + Controller + CPU Boost @@ -309,6 +327,9 @@ Default + + Disable Controller + Disable screen overdrive @@ -327,6 +348,9 @@ Eco + + Enable GPU on shutdown (prevents issue with Eco mode) + Disabling the dGPU by going into Eco mode while Display Mode in NVIDIA Control Panel is not set to Optimus might cause problems with brightness controls until after the next reboot. @@ -410,6 +434,9 @@ Do you still want to continue? High + + Image Rotation + Key Bindings @@ -443,6 +470,12 @@ Do you still want to continue? Low + + Left Stick Deadzones + + + Left Trigger Deadzones + Audio Visualizer @@ -575,15 +608,27 @@ Do you still want to continue? Quit + + Reset + Something is using dGPU and preventing Eco mode. Let G-Helper try to restart dGPU in device manager? (Please proceed at your own risk) RPM + + Right Stick Deadzones + + + Right Trigger Deadzones + Run on Startup + + Scaling Quality + Screenpad Brightness Down @@ -662,6 +707,9 @@ Do you still want to continue? Version + + Vibration Strength + Volume Down @@ -674,4 +722,7 @@ Do you still want to continue? Keep app window always on top + + Zoom + \ No newline at end of file diff --git a/app/Settings.cs b/app/Settings.cs index dfe5acc7..2723a759 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -91,6 +91,9 @@ namespace GHelper buttonQuit.Text = Properties.Strings.Quit; buttonUpdates.Text = Properties.Strings.Updates; + buttonController.Text = Properties.Strings.Controller; + labelAlly.Text = Properties.Strings.AllyController; + // Accessible Labels panelMatrix.AccessibleName = Properties.Strings.AnimeMatrix;