From b2a01a8bdccf5a24864c8bfe575873e3843f59d3 Mon Sep 17 00:00:00 2001 From: seerge Date: Tue, 11 Apr 2023 01:25:39 +0200 Subject: [PATCH] Translations --- app/ASUSWmi.cs | 2 +- app/Aura.cs | 32 +- app/Fans.Designer.cs | 53 +- app/Fans.cs | 14 +- app/GHelper.csproj | 21 +- app/Keyboard.Designer.cs | 30 +- app/Keyboard.cs | 27 +- app/Program.cs | 16 +- app/Properties/Resources.Designer.cs | 9 + app/Properties/Strings.Designer.cs | 927 +++++++++++++++++++++++++++ app/Properties/Strings.resx | 408 ++++++++++++ app/Properties/Strings.tr.resx | 408 ++++++++++++ app/Properties/Strings.uk.resx | 408 ++++++++++++ app/Properties/Strings.zh.resx | 408 ++++++++++++ app/Settings.Designer.cs | 48 +- app/Settings.cs | 64 +- 16 files changed, 2733 insertions(+), 142 deletions(-) create mode 100644 app/Properties/Strings.Designer.cs create mode 100644 app/Properties/Strings.resx create mode 100644 app/Properties/Strings.tr.resx create mode 100644 app/Properties/Strings.uk.resx create mode 100644 app/Properties/Strings.zh.resx diff --git a/app/ASUSWmi.cs b/app/ASUSWmi.cs index f8ae770d..760bd166 100644 --- a/app/ASUSWmi.cs +++ b/app/ASUSWmi.cs @@ -60,7 +60,7 @@ public class ASUSWmi public const int GPUModeUltimate = 2; - public const int MaxTotal = 200; + public const int MaxTotal = 250; public const int MinTotal = 5; public const int DefaultTotal = 125; diff --git a/app/Aura.cs b/app/Aura.cs index b5902905..3dca693e 100644 --- a/app/Aura.cs +++ b/app/Aura.cs @@ -1,9 +1,5 @@ using HidLibrary; -using System.Data; using System.Diagnostics; -using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox; -using System.Security.Policy; -using HidSharp.Utility; namespace GHelper { @@ -70,33 +66,33 @@ namespace GHelper { return new Dictionary { - { 0, "Slow" }, - { 1, "Normal" }, - { 2, "Fast" } + { 0, Properties.Strings.AuraSlow }, + { 1, Properties.Strings.AuraNormal }, + { 2, Properties.Strings.AuraFast } }; } - static Dictionary _modes = new Dictionary + static Dictionary _modes = new Dictionary { - { 0, "Static" }, - { 1, "Breathe" }, - { 2, "Color Cycle" }, - { 3, "Rainbow" }, - { 10, "Strobe" }, + { 0, Properties.Strings.AuraStatic }, + { 1, Properties.Strings.AuraBreathe }, + { 2, Properties.Strings.AuraColorCycle }, + { 3, Properties.Strings.AuraRainbow }, + { 10, Properties.Strings.AuraStrobe }, }; static Dictionary _modesStrix = new Dictionary { - { 0, "Static" }, - { 1, "Breathe" }, - { 2, "Color Cycle" }, - { 3, "Rainbow" }, + { 0, Properties.Strings.AuraStatic }, + { 1, Properties.Strings.AuraBreathe }, + { 2, Properties.Strings.AuraColorCycle }, + { 3, Properties.Strings.AuraRainbow }, { 4, "Star" }, { 5, "Rain" }, { 6, "Highlight" }, { 7, "Laser" }, { 8, "Ripple" }, - { 10, "Strobe" }, + { 10, Properties.Strings.AuraStrobe}, { 11, "Comet" }, { 12, "Flash" }, }; diff --git a/app/Fans.Designer.cs b/app/Fans.Designer.cs index 7b426973..1edc24e7 100644 --- a/app/Fans.Designer.cs +++ b/app/Fans.Designer.cs @@ -31,12 +31,12 @@ namespace GHelper /// private void InitializeComponent() { - ChartArea chartArea4 = new ChartArea(); - Title title4 = new Title(); - ChartArea chartArea5 = new ChartArea(); - Title title5 = new Title(); - ChartArea chartArea6 = new ChartArea(); - Title title6 = new Title(); + ChartArea chartArea1 = new ChartArea(); + Title title1 = new Title(); + ChartArea chartArea2 = new ChartArea(); + Title title2 = new Title(); + ChartArea chartArea3 = new ChartArea(); + Title title3 = new Title(); panelFans = new Panel(); labelTip = new Label(); labelBoost = new Label(); @@ -100,7 +100,7 @@ namespace GHelper // labelTip.AutoSize = true; labelTip.BackColor = SystemColors.ControlLightLight; - labelTip.Location = new Point(271, 13); + labelTip.Location = new Point(155, 9); labelTip.Name = "labelTip"; labelTip.Padding = new Padding(5); labelTip.Size = new Size(107, 42); @@ -109,12 +109,15 @@ namespace GHelper // // labelBoost // + labelBoost.Anchor = AnchorStyles.Top | AnchorStyles.Right; labelBoost.AutoSize = true; - labelBoost.Location = new Point(397, 19); + labelBoost.Location = new Point(375, 17); labelBoost.Name = "labelBoost"; labelBoost.Size = new Size(125, 32); labelBoost.TabIndex = 39; - labelBoost.Text = "CPU Boost"; + labelBoost.Text = Properties.Strings.CPUBoost; + labelBoost.TextAlign = ContentAlignment.MiddleRight; + // // comboBoost // @@ -161,8 +164,8 @@ namespace GHelper // // chartGPU // - chartArea4.Name = "ChartArea1"; - chartGPU.ChartAreas.Add(chartArea4); + chartArea1.Name = "ChartArea1"; + chartGPU.ChartAreas.Add(chartArea1); chartGPU.Dock = DockStyle.Fill; chartGPU.Location = new Point(2, 340); chartGPU.Margin = new Padding(2, 10, 2, 10); @@ -170,13 +173,13 @@ namespace GHelper chartGPU.Size = new Size(760, 310); chartGPU.TabIndex = 17; chartGPU.Text = "chartGPU"; - title4.Name = "Title1"; - chartGPU.Titles.Add(title4); + title1.Name = "Title1"; + chartGPU.Titles.Add(title1); // // chartCPU // - chartArea5.Name = "ChartArea1"; - chartCPU.ChartAreas.Add(chartArea5); + chartArea2.Name = "ChartArea1"; + chartCPU.ChartAreas.Add(chartArea2); chartCPU.Dock = DockStyle.Fill; chartCPU.Location = new Point(2, 10); chartCPU.Margin = new Padding(2, 10, 2, 10); @@ -184,13 +187,13 @@ namespace GHelper chartCPU.Size = new Size(760, 310); chartCPU.TabIndex = 14; chartCPU.Text = "chartCPU"; - title5.Name = "Title1"; - chartCPU.Titles.Add(title5); + title2.Name = "Title1"; + chartCPU.Titles.Add(title2); // // chartMid // - chartArea6.Name = "ChartArea3"; - chartMid.ChartAreas.Add(chartArea6); + chartArea3.Name = "ChartArea3"; + chartMid.ChartAreas.Add(chartArea3); chartMid.Dock = DockStyle.Fill; chartMid.Location = new Point(2, 670); chartMid.Margin = new Padding(2, 10, 2, 10); @@ -198,8 +201,8 @@ namespace GHelper chartMid.Size = new Size(760, 312); chartMid.TabIndex = 14; chartMid.Text = "chartMid"; - title6.Name = "Title3"; - chartMid.Titles.Add(title6); + title3.Name = "Title3"; + chartMid.Titles.Add(title3); chartMid.Visible = false; // // labelFans @@ -224,7 +227,7 @@ namespace GHelper checkApplyFans.Padding = new Padding(15, 5, 15, 5); checkApplyFans.Size = new Size(339, 46); checkApplyFans.TabIndex = 17; - checkApplyFans.Text = "Apply Custom Fan Curve"; + checkApplyFans.Text = Properties.Strings.ApplyFanCurve; checkApplyFans.UseVisualStyleBackColor = false; // // buttonReset @@ -241,7 +244,7 @@ namespace GHelper buttonReset.Secondary = true; buttonReset.Size = new Size(232, 50); buttonReset.TabIndex = 15; - buttonReset.Text = "Factory Defaults"; + buttonReset.Text = Properties.Strings.FactoryDefaults; buttonReset.UseVisualStyleBackColor = false; // // panelPower @@ -282,7 +285,7 @@ namespace GHelper labelPowerLimits.Name = "labelPowerLimits"; labelPowerLimits.Size = new Size(229, 32); labelPowerLimits.TabIndex = 26; - labelPowerLimits.Text = "Power Limits (PPT)"; + labelPowerLimits.Text = Properties.Strings.PowerLimits; // // checkApplyPower // @@ -295,7 +298,7 @@ namespace GHelper checkApplyPower.Padding = new Padding(15, 5, 15, 5); checkApplyPower.Size = new Size(277, 46); checkApplyPower.TabIndex = 25; - checkApplyPower.Text = "Apply Power Limits"; + checkApplyPower.Text = Properties.Strings.ApplyPowerLimits; checkApplyPower.UseVisualStyleBackColor = false; // // panelCPU diff --git a/app/Fans.cs b/app/Fans.cs index 047a354a..ebb70a52 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -64,7 +64,7 @@ namespace GHelper checkApplyPower.Click += CheckApplyPower_Click; //labelInfo.MaximumSize = new Size(280, 0); - labelInfo.Text = "Power Limits (PPT) is\nexperimental feature.\n\nUse carefully and\non your own risk!"; + labelInfo.Text = Properties.Strings.PPTExperimental; InitFans(); InitPower(); @@ -89,14 +89,14 @@ namespace GHelper string title; if (device == 1) - title = "GPU Fan Profile"; + title = Properties.Strings.FanProfileGPU; else if (device == 2) - title = "Middle Fan Profile"; + title = Properties.Strings.FanProfileMid; else - title = "CPU Fan Profile"; + title = Properties.Strings.FanProfileCPU; if (Program.settingsForm.perfName.Length > 0) - labelFans.Text = "Fan Profiles: " + Program.settingsForm.perfName; + labelFans.Text = Properties.Strings.FanProfiles + ": " + Program.settingsForm.perfName; chart.Titles[0].Text = title; @@ -117,7 +117,7 @@ namespace GHelper for (int i = 0; i <= 90; i += 10) chart.ChartAreas[0].AxisY.CustomLabels.Add(i - 2, i + 2, ChartPercToRPM(i)); - chart.ChartAreas[0].AxisY.CustomLabels.Add(98, 102, "RPM"); + chart.ChartAreas[0].AxisY.CustomLabels.Add(98, 102, Properties.Strings.RPM); chart.ChartAreas[0].AxisY.Interval = 10; @@ -429,7 +429,7 @@ namespace GHelper curPoint.YValues[0] = dy; labelTip.Visible = true; - labelTip.Text = Math.Round(dx) + "C, " + ChartPercToRPM((int)dy, " RPM"); + labelTip.Text = Math.Round(dx) + "C, " + ChartPercToRPM((int)dy, " " + Properties.Strings.RPM); labelTip.Top = e.Y + ((Control)sender).Top; labelTip.Left = e.X; diff --git a/app/GHelper.csproj b/app/GHelper.csproj index d7913c70..eb360499 100644 --- a/app/GHelper.csproj +++ b/app/GHelper.csproj @@ -16,7 +16,7 @@ x64 False True - 0.49 + 0.50 @@ -94,6 +94,11 @@ True Resources.resx + + True + True + Strings.resx + True True @@ -102,6 +107,20 @@ + + ResXFileCodeGenerator + + + ResXFileCodeGenerator + + + Strings.uk.Designer.cs + ResXFileCodeGenerator + + + ResXFileCodeGenerator + Strings.Designer.cs + ResXFileCodeGenerator Resources.Designer.cs diff --git a/app/Keyboard.Designer.cs b/app/Keyboard.Designer.cs index a0bdb733..9f3bdaef 100644 --- a/app/Keyboard.Designer.cs +++ b/app/Keyboard.Designer.cs @@ -73,7 +73,7 @@ namespace GHelper groupBox1.Size = new Size(756, 242); groupBox1.TabIndex = 0; groupBox1.TabStop = false; - groupBox1.Text = "Key Bindings"; + groupBox1.Text = Properties.Strings.KeyBindings; // // textFNF4 // @@ -119,7 +119,7 @@ namespace GHelper // comboM4 // comboM4.FormattingEnabled = true; - comboM4.Items.AddRange(new object[] { "Performance Mode", "Open G-Helper window", "Custom" }); + comboM4.Items.AddRange(new object[] { Properties.Strings.PerformanceMode, Properties.Strings.OpenGHelper, Properties.Strings.Custom }); comboM4.Location = new Point(93, 112); comboM4.Name = "comboM4"; comboM4.Size = new Size(312, 40); @@ -137,7 +137,7 @@ namespace GHelper // comboM3 // comboM3.FormattingEnabled = true; - comboM3.Items.AddRange(new object[] { "Default", "Volume Mute", "Play / Pause", "PrintScreen", "Toggle Aura", "Custom" }); + comboM3.Items.AddRange(new object[] { Properties.Strings.Default, Properties.Strings.VolumeMute, Properties.Strings.PlayPause, Properties.Strings.PrintScreen, Properties.Strings.ToggleAura, Properties.Strings.Custom }); comboM3.Location = new Point(93, 54); comboM3.Name = "comboM3"; comboM3.Size = new Size(312, 40); @@ -166,7 +166,7 @@ namespace GHelper groupLight.Size = new Size(756, 304); groupLight.TabIndex = 1; groupLight.TabStop = false; - groupLight.Text = "Keyboard Backlight"; + groupLight.Text = Properties.Strings.KeyboardBacklight; // // labelSpeed // @@ -175,7 +175,7 @@ namespace GHelper labelSpeed.Name = "labelSpeed"; labelSpeed.Size = new Size(198, 32); labelSpeed.TabIndex = 40; - labelSpeed.Text = "Animation Speed"; + labelSpeed.Text = Properties.Strings.AnimationSpeed; // // comboKeyboardSpeed // @@ -200,7 +200,7 @@ namespace GHelper checkShutdown.Name = "checkShutdown"; checkShutdown.Size = new Size(154, 36); checkShutdown.TabIndex = 3; - checkShutdown.Text = "Shutdown"; + checkShutdown.Text = Properties.Strings.Shutdown; checkShutdown.UseVisualStyleBackColor = true; // // checkSleep @@ -210,7 +210,7 @@ namespace GHelper checkSleep.Name = "checkSleep"; checkSleep.Size = new Size(105, 36); checkSleep.TabIndex = 2; - checkSleep.Text = "Sleep"; + checkSleep.Text = Properties.Strings.Sleep; checkSleep.UseVisualStyleBackColor = true; // // checkBoot @@ -220,7 +220,7 @@ namespace GHelper checkBoot.Name = "checkBoot"; checkBoot.Size = new Size(96, 36); checkBoot.TabIndex = 1; - checkBoot.Text = "Boot"; + checkBoot.Text = Properties.Strings.Boot; checkBoot.UseVisualStyleBackColor = true; // // checkAwake @@ -230,7 +230,7 @@ namespace GHelper checkAwake.Name = "checkAwake"; checkAwake.Size = new Size(115, 36); checkAwake.TabIndex = 0; - checkAwake.Text = "Awake"; + checkAwake.Text = Properties.Strings.Awake; checkAwake.UseVisualStyleBackColor = true; // // groupOther @@ -244,7 +244,7 @@ namespace GHelper groupOther.Size = new Size(756, 225); groupOther.TabIndex = 2; groupOther.TabStop = false; - groupOther.Text = "Other"; + groupOther.Text = Properties.Strings.Other; // // checkKeyboardAuto // @@ -253,7 +253,7 @@ namespace GHelper checkKeyboardAuto.Name = "checkKeyboardAuto"; checkKeyboardAuto.Size = new Size(712, 36); checkKeyboardAuto.TabIndex = 2; - checkKeyboardAuto.Text = "Lower backlight brightness on battery and back when plugged"; + checkKeyboardAuto.Text = Properties.Strings.KeyboardAuto; checkKeyboardAuto.UseVisualStyleBackColor = true; // // checkTopmost @@ -263,7 +263,7 @@ namespace GHelper checkTopmost.Name = "checkTopmost"; checkTopmost.Size = new Size(390, 36); checkTopmost.TabIndex = 1; - checkTopmost.Text = "Keep app window always on top"; + checkTopmost.Text = Properties.Strings.WindowTop; checkTopmost.UseVisualStyleBackColor = true; // // checkNoOverdrive @@ -273,7 +273,7 @@ namespace GHelper checkNoOverdrive.Name = "checkNoOverdrive"; checkNoOverdrive.Size = new Size(307, 36); checkNoOverdrive.TabIndex = 3; - checkNoOverdrive.Text = "Disable screen overdrive"; + checkNoOverdrive.Text = Properties.Strings.DisableOverdrive; checkNoOverdrive.UseVisualStyleBackColor = true; // // Keyboard @@ -288,11 +288,11 @@ namespace GHelper MaximizeBox = false; MdiChildrenMinimizedAnchorBottom = false; MinimizeBox = false; - Name = "Keyboard"; + Name = Properties.Strings.Keyboard; Padding = new Padding(10); ShowIcon = false; ShowInTaskbar = false; - Text = "Extra Settings"; + Text = Properties.Strings.ExtraSettings; groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); groupLight.ResumeLayout(false); diff --git a/app/Keyboard.cs b/app/Keyboard.cs index c520c5f5..9f51163c 100644 --- a/app/Keyboard.cs +++ b/app/Keyboard.cs @@ -1,5 +1,4 @@ using CustomControls; -using Microsoft.Win32; namespace GHelper { @@ -9,22 +8,22 @@ namespace GHelper Dictionary customActions = new Dictionary { {"","--------------" }, - {"mute", "Volume Mute"}, - {"screenshot", "Screenshot"}, - {"play", "Play/Pause"}, - {"aura", "Aura"}, - {"ghelper", "Open GHelper"}, - {"custom", "Custom"} + {"mute", Properties.Strings.VolumeMute}, + {"screenshot", Properties.Strings.PrintScreen}, + {"play", Properties.Strings.PlayPause}, + {"aura", Properties.Strings.ToggleAura}, + {"ghelper", Properties.Strings.OpenGHelper}, + {"custom", Properties.Strings.Custom} }; private void SetKeyCombo(ComboBox combo, TextBox txbox, string name) { if (name == "m4") - customActions[""] = "Performance"; + customActions[""] = Properties.Strings.PerformanceMode; if (name == "fnf4") { - customActions[""] = "Aura"; + customActions[""] = Properties.Strings.ToggleAura; customActions.Remove("aura"); } @@ -99,16 +98,6 @@ namespace GHelper private void CheckKeyboardAuto_CheckedChanged(object? sender, EventArgs e) { Program.config.setConfig("keyboard_auto", (checkKeyboardAuto.Checked ? 1 : 0)); - - /* - RegistryKey myKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\ASUS\\ASUS System Control Interface\\AsusOptimization\\ASUS Keyboard Hotkeys", true); - if (myKey != null) - { - myKey.SetValue("TurnOffKeybdLight", 30, RegistryValueKind.DWord); - myKey.Close(); - } - */ - } private void CheckTopmost_CheckedChanged(object? sender, EventArgs e) diff --git a/app/Program.cs b/app/Program.cs index 4248dd33..b54cde0a 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -1,5 +1,6 @@ using Microsoft.Win32; using System.Diagnostics; +using System.Globalization; using System.Management; using Tools; @@ -30,9 +31,16 @@ namespace GHelper public static void Main() { + Thread.CurrentThread.CurrentCulture = CultureInfo.CurrentCulture; + Thread.CurrentThread.CurrentUICulture = CultureInfo.CurrentUICulture; + + //Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("zh"); + //Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("zh"); + + if (Process.GetProcesses().Count(p => p.ProcessName == "GHelper") > 1) { - MessageBox.Show("G-Helper is already running. Check system tray for an icon.", "App already running", MessageBoxButtons.OK); + MessageBox.Show(Properties.Strings.AppAlreadyRunningText, Properties.Strings.AppAlreadyRunning, MessageBoxButtons.OK); Application.Exit(); return; } @@ -44,7 +52,7 @@ namespace GHelper } catch { - DialogResult dialogResult = MessageBox.Show("Can't connect to ASUS ACPI. Application can't function without it. Try to install Asus System Controll Interface", "Startup Error", MessageBoxButtons.YesNo); + DialogResult dialogResult = MessageBox.Show(Properties.Strings.ACPIError, Properties.Strings.StartupError, MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Process.Start(new ProcessStartInfo("https://www.asus.com/support/FAQ/1047338/") { UseShellExecute = true }); @@ -55,6 +63,8 @@ namespace GHelper } + + Logger.WriteLine("------------"); Logger.WriteLine("App launched: " + config.GetModel()); @@ -92,6 +102,8 @@ namespace GHelper SettingsToggle(); } + + Application.Run(); diff --git a/app/Properties/Resources.Designer.cs b/app/Properties/Resources.Designer.cs index 2b9dfe3d..c5ea501c 100644 --- a/app/Properties/Resources.Designer.cs +++ b/app/Properties/Resources.Designer.cs @@ -350,6 +350,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Test. + /// + internal static string String1 { + get { + return ResourceManager.GetString("String1", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// diff --git a/app/Properties/Strings.Designer.cs b/app/Properties/Strings.Designer.cs new file mode 100644 index 00000000..8eb6f7f7 --- /dev/null +++ b/app/Properties/Strings.Designer.cs @@ -0,0 +1,927 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GHelper.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Strings { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Strings() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GHelper.Properties.Strings", typeof(Strings).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Can't connect to ASUS ACPI. Application can't function without it. Try to install Asus System Control Interface. + /// + internal static string ACPIError { + get { + return ResourceManager.GetString("ACPIError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Looks like GPU is in heavy use, disable it?. + /// + internal static string AlertDGPU { + get { + return ResourceManager.GetString("AlertDGPU", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Eco Mode. + /// + internal static string AlertDGPUTitle { + get { + return ResourceManager.GetString("AlertDGPUTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Switching off Ultimate Mode requires restart. + /// + internal static string AlertUltimateOff { + get { + return ResourceManager.GetString("AlertUltimateOff", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ultimate Mode requires restart. + /// + internal static string AlertUltimateOn { + get { + return ResourceManager.GetString("AlertUltimateOn", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reboot now?. + /// + internal static string AlertUltimateTitle { + get { + return ResourceManager.GetString("AlertUltimateTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Animation Speed. + /// + internal static string AnimationSpeed { + get { + return ResourceManager.GetString("AnimationSpeed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Anime Matrix. + /// + internal static string AnimeMatrix { + get { + return ResourceManager.GetString("AnimeMatrix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to App already running. + /// + internal static string AppAlreadyRunning { + get { + return ResourceManager.GetString("AppAlreadyRunning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to G-Helper is already running. Check system tray for an icon.. + /// + internal static string AppAlreadyRunningText { + get { + return ResourceManager.GetString("AppAlreadyRunningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Apply Custom Fan Curve. + /// + internal static string ApplyFanCurve { + get { + return ResourceManager.GetString("ApplyFanCurve", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Apply Power Limits. + /// + internal static string ApplyPowerLimits { + get { + return ResourceManager.GetString("ApplyPowerLimits", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Breathe. + /// + internal static string AuraBreathe { + get { + return ResourceManager.GetString("AuraBreathe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Color Cycle. + /// + internal static string AuraColorCycle { + get { + return ResourceManager.GetString("AuraColorCycle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fast. + /// + internal static string AuraFast { + get { + return ResourceManager.GetString("AuraFast", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Normal. + /// + internal static string AuraNormal { + get { + return ResourceManager.GetString("AuraNormal", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rainbow. + /// + internal static string AuraRainbow { + get { + return ResourceManager.GetString("AuraRainbow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Slow. + /// + internal static string AuraSlow { + get { + return ResourceManager.GetString("AuraSlow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Static. + /// + internal static string AuraStatic { + get { + return ResourceManager.GetString("AuraStatic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Strobe. + /// + internal static string AuraStrobe { + get { + return ResourceManager.GetString("AuraStrobe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Auto. + /// + internal static string AutoMode { + get { + return ResourceManager.GetString("AutoMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sets 60Hz to save battery, and back when plugged. + /// + internal static string AutoRefreshTooltip { + get { + return ResourceManager.GetString("AutoRefreshTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Awake. + /// + internal static string Awake { + get { + return ResourceManager.GetString("Awake", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Balanced. + /// + internal static string Balanced { + get { + return ResourceManager.GetString("Balanced", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Battery Charge Limit. + /// + internal static string BatteryChargeLimit { + get { + return ResourceManager.GetString("BatteryChargeLimit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Boot. + /// + internal static string Boot { + get { + return ResourceManager.GetString("Boot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Color. + /// + internal static string Color { + get { + return ResourceManager.GetString("Color", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CPU Boost. + /// + internal static string CPUBoost { + get { + return ResourceManager.GetString("CPUBoost", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Custom. + /// + internal static string Custom { + get { + return ResourceManager.GetString("Custom", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Default. + /// + internal static string Default { + get { + return ResourceManager.GetString("Default", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disable screen overdrive. + /// + internal static string DisableOverdrive { + get { + return ResourceManager.GetString("DisableOverdrive", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Discharging. + /// + internal static string Discharging { + get { + return ResourceManager.GetString("Discharging", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Download Update. + /// + internal static string DownloadUpdate { + get { + return ResourceManager.GetString("DownloadUpdate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disables dGPU for battery savings. + /// + internal static string EcoGPUTooltip { + get { + return ResourceManager.GetString("EcoGPUTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Eco. + /// + internal static string EcoMode { + get { + return ResourceManager.GetString("EcoMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Extra. + /// + internal static string Extra { + get { + return ResourceManager.GetString("Extra", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Extra Settings. + /// + internal static string ExtraSettings { + get { + return ResourceManager.GetString("ExtraSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Factory Defaults. + /// + internal static string FactoryDefaults { + get { + return ResourceManager.GetString("FactoryDefaults", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fan Curves. + /// + internal static string FanCurves { + get { + return ResourceManager.GetString("FanCurves", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CPU Fan Profile. + /// + internal static string FanProfileCPU { + get { + return ResourceManager.GetString("FanProfileCPU", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GPU Fan Profile. + /// + internal static string FanProfileGPU { + get { + return ResourceManager.GetString("FanProfileGPU", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Mid Fan Profile. + /// + internal static string FanProfileMid { + get { + return ResourceManager.GetString("FanProfileMid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fan Profiles. + /// + internal static string FanProfiles { + get { + return ResourceManager.GetString("FanProfiles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fans and Power. + /// + internal static string FansAndPower { + get { + return ResourceManager.GetString("FansAndPower", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Fans + Power. + /// + internal static string FansPower { + get { + return ResourceManager.GetString("FansPower", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Changing. + /// + internal static string GPUChanging { + get { + return ResourceManager.GetString("GPUChanging", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GPU Mode. + /// + internal static string GPUMode { + get { + return ResourceManager.GetString("GPUMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iGPU only. + /// + internal static string GPUModeEco { + get { + return ResourceManager.GetString("GPUModeEco", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iGPU + dGPU. + /// + internal static string GPUModeStandard { + get { + return ResourceManager.GetString("GPUModeStandard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to dGPU exclusive. + /// + internal static string GPUModeUltimate { + get { + return ResourceManager.GetString("GPUModeUltimate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Key Bindings. + /// + internal static string KeyBindings { + get { + return ResourceManager.GetString("KeyBindings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Keyboard. + /// + internal static string Keyboard { + get { + return ResourceManager.GetString("Keyboard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Lower backlight brightness on battery and back when plugged. + /// + internal static string KeyboardAuto { + get { + return ResourceManager.GetString("KeyboardAuto", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Keyboard Backlight. + /// + internal static string KeyboardBacklight { + get { + return ResourceManager.GetString("KeyboardBacklight", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Laptop Keyboard. + /// + internal static string LaptopKeyboard { + get { + return ResourceManager.GetString("LaptopKeyboard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Laptop Screen. + /// + internal static string LaptopScreen { + get { + return ResourceManager.GetString("LaptopScreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Binary Banner. + /// + internal static string MatrixBanner { + get { + return ResourceManager.GetString("MatrixBanner", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Bright. + /// + internal static string MatrixBright { + get { + return ResourceManager.GetString("MatrixBright", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Clock. + /// + internal static string MatrixClock { + get { + return ResourceManager.GetString("MatrixClock", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Dim. + /// + internal static string MatrixDim { + get { + return ResourceManager.GetString("MatrixDim", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Rog Logo. + /// + internal static string MatrixLogo { + get { + return ResourceManager.GetString("MatrixLogo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Medium. + /// + internal static string MatrixMedium { + get { + return ResourceManager.GetString("MatrixMedium", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Off. + /// + internal static string MatrixOff { + get { + return ResourceManager.GetString("MatrixOff", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Picture. + /// + internal static string MatrixPicture { + get { + return ResourceManager.GetString("MatrixPicture", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Max refresh rate for lower latency. + /// + internal static string MaxRefreshTooltip { + get { + return ResourceManager.GetString("MaxRefreshTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 60Hz refresh rate to save battery. + /// + internal static string MinRefreshTooltip { + get { + return ResourceManager.GetString("MinRefreshTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Multizone. + /// + internal static string Multizone { + get { + return ResourceManager.GetString("Multizone", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open G-Helper window. + /// + internal static string OpenGHelper { + get { + return ResourceManager.GetString("OpenGHelper", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Optimized. + /// + internal static string Optimized { + get { + return ResourceManager.GetString("Optimized", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Switch to Eco on battery and to Standard when plugged. + /// + internal static string OptimizedGPUTooltip { + get { + return ResourceManager.GetString("OptimizedGPUTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Other. + /// + internal static string Other { + get { + return ResourceManager.GetString("Other", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Overdrive. + /// + internal static string Overdrive { + get { + return ResourceManager.GetString("Overdrive", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Performance Mode. + /// + internal static string PerformanceMode { + get { + return ResourceManager.GetString("PerformanceMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Picture / Gif. + /// + internal static string PictureGif { + get { + return ResourceManager.GetString("PictureGif", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Play / Pause. + /// + internal static string PlayPause { + get { + return ResourceManager.GetString("PlayPause", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Power Limits (PPT). + /// + internal static string PowerLimits { + get { + return ResourceManager.GetString("PowerLimits", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Power Limits (PPT) is experimental feature. Use carefully and on your own risk!. + /// + internal static string PPTExperimental { + get { + return ResourceManager.GetString("PPTExperimental", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to PrintScreen. + /// + internal static string PrintScreen { + get { + return ResourceManager.GetString("PrintScreen", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Quit. + /// + internal static string Quit { + get { + return ResourceManager.GetString("Quit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RPM. + /// + internal static string RPM { + get { + return ResourceManager.GetString("RPM", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Run on Startup. + /// + internal static string RunOnStartup { + get { + return ResourceManager.GetString("RunOnStartup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Shutdown. + /// + internal static string Shutdown { + get { + return ResourceManager.GetString("Shutdown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Silent. + /// + internal static string Silent { + get { + return ResourceManager.GetString("Silent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sleep. + /// + internal static string Sleep { + get { + return ResourceManager.GetString("Sleep", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enables dGPU for standard use. + /// + internal static string StandardGPUTooltip { + get { + return ResourceManager.GetString("StandardGPUTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Standard. + /// + internal static string StandardMode { + get { + return ResourceManager.GetString("StandardMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Startup Error. + /// + internal static string StartupError { + get { + return ResourceManager.GetString("StartupError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Toggle Aura. + /// + internal static string ToggleAura { + get { + return ResourceManager.GetString("ToggleAura", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Turbo. + /// + internal static string Turbo { + get { + return ResourceManager.GetString("Turbo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Turned off. + /// + internal static string TurnedOff { + get { + return ResourceManager.GetString("TurnedOff", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Turn off on battery. + /// + internal static string TurnOffOnBattery { + get { + return ResourceManager.GetString("TurnOffOnBattery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Routes laptop screen to dGPU, maximizing FPS. + /// + internal static string UltimateGPUTooltip { + get { + return ResourceManager.GetString("UltimateGPUTooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ultimate. + /// + internal static string UltimateMode { + get { + return ResourceManager.GetString("UltimateMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Version. + /// + internal static string VersionLabel { + get { + return ResourceManager.GetString("VersionLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Volume Mute. + /// + internal static string VolumeMute { + get { + return ResourceManager.GetString("VolumeMute", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Keep app window always on top. + /// + internal static string WindowTop { + get { + return ResourceManager.GetString("WindowTop", resourceCulture); + } + } + } +} diff --git a/app/Properties/Strings.resx b/app/Properties/Strings.resx new file mode 100644 index 00000000..564bf0cc --- /dev/null +++ b/app/Properties/Strings.resx @@ -0,0 +1,408 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Can't connect to ASUS ACPI. Application can't function without it. Try to install Asus System Control Interface + + + Looks like GPU is in heavy use, disable it? + + + Eco Mode + + + Switching off Ultimate Mode requires restart + + + Ultimate Mode requires restart + + + Reboot now? + + + Animation Speed + + + Anime Matrix + + + App already running + + + G-Helper is already running. Check system tray for an icon. + + + Apply Custom Fan Curve + + + Apply Power Limits + + + Breathe + + + Color Cycle + + + Fast + + + Normal + + + Rainbow + + + Slow + + + Static + + + Strobe + + + Auto + + + Sets 60Hz to save battery, and back when plugged + + + Awake + + + Balanced + + + Battery Charge Limit + + + Boot + + + Color + + + CPU Boost + + + Custom + + + Default + + + Disable screen overdrive + + + Discharging + + + Download Update + + + Disables dGPU for battery savings + + + Eco + + + Extra + + + Extra Settings + + + Factory Defaults + + + Fan Curves + + + CPU Fan Profile + + + GPU Fan Profile + + + Mid Fan Profile + + + Fan Profiles + + + Fans and Power + + + Fans + Power + + + Changing + + + GPU Mode + + + iGPU only + + + iGPU + dGPU + + + dGPU exclusive + + + Key Bindings + + + Keyboard + + + Lower backlight brightness on battery and back when plugged + + + Keyboard Backlight + + + Laptop Keyboard + + + Laptop Screen + + + Binary Banner + + + Bright + + + Clock + + + Dim + + + Rog Logo + + + Medium + + + Off + + + Picture + + + Max refresh rate for lower latency + + + 60Hz refresh rate to save battery + + + Multizone + + + Open G-Helper window + + + Optimized + + + Switch to Eco on battery and to Standard when plugged + + + Other + + + Overdrive + + + Performance Mode + + + Picture / Gif + + + Play / Pause + + + Power Limits (PPT) + + + Power Limits (PPT) is experimental feature. Use carefully and on your own risk! + + + PrintScreen + + + Quit + + + RPM + + + Run on Startup + + + Shutdown + + + Silent + + + Sleep + + + Enables dGPU for standard use + + + Standard + + + Startup Error + + + Toggle Aura + + + Turbo + + + Turned off + + + Turn off on battery + + + Routes laptop screen to dGPU, maximizing FPS + + + Ultimate + + + Version + + + Volume Mute + + + Keep app window always on top + + \ No newline at end of file diff --git a/app/Properties/Strings.tr.resx b/app/Properties/Strings.tr.resx new file mode 100644 index 00000000..2484ac1f --- /dev/null +++ b/app/Properties/Strings.tr.resx @@ -0,0 +1,408 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + ASUS ACPI'ye bağlanılamıyor. Uygulama onun olmadan çalışamaz. Asus Sistem Kontrol Arayüzü'nü yüklemeyi deneyin. + + + Görünüşe göre GPU yoğun bir şekilde kullanılıyor, devre dışı bırakılsın mı? + + + Eko Modu + + + Ultimate Modu kapatmak yeniden başlatmayı gerektirir + + + Ultimate Modu etkinleştirmek yeniden başlatmayı gerektirir + + + Şimdi yeniden başlatılsın mı? + + + Animasyon Hızı + + + Anime Matrisi + + + Uygulama zaten çalışıyor + + + G-Helper zaten çalışıyor. Görev çubuğu simgesi için kontrol edin. + + + Özel Fan Eğrisini Uygula + + + Güç Sınırlarını Uygula + + + Nefes Al + + + Renk Döngüsü + + + Hızlı + + + Normal + + + Gökkuşağı + + + Yavaş + + + Sabit + + + Strobe + + + Otomatik + + + Pil tasarrufu için 60Hz ayarlar, takılı olduğunda geri ayarlar + + + Uyanık + + + Dengeli + + + Pil Şarj Sınırı + + + Önyükleme + + + Renk + + + CPU Boost + + + Özel + + + Varsayılan + + + Ekran overdrive'ı devre dışı bırak + + + Deşarj + + + Güncelleştirmeyi İndir + + + Pil tasarrufu için dGPU'yu devre dışı bırakır + + + Eko + + + Ekstra + + + Ekstra Ayarlar + + + Fabrika Ayarları + + + Fan Eğrileri + + + CPU Fan Profili + + + GPU Fan Profili + + + Orta Fan Profili + + + Fan Profilleri + + + Fanlar ve Güç + + + Fanlar + Güç + + + Değiştiriliyor + + + GPU Modu + + + sadece iGPU + + + iGPU + dGPU + + + sadece dGPU + + + Tuş Bağlantıları + + + Klavye + + + Pil ile çalışırken daha az aydınlatma, takılıyken daha fazla + + + Klavye Aydınlatması + + + Laptop Klavyesi + + + Laptop Ekranı + + + İkili Banner + + + Parlak + + + Saat + + + Mat + + + Rog Logosu + + + Orta + + + Kapalı + + + Resim + + + Daha düşük gecikme için maksimum yenileme hızı + + + Pil tasarrufu için 60Hz yenileme hızı + + + Çoklu Bölge + + + G-Helper penceresini aç + + + Optimize edilmiş + + + Pil ile Eco'ya ve Şarj ile Standart'a geçiş yapın + + + Diğer + + + Overdrive + + + Performans Modu + + + Resim / Gif + + + Oynat / Duraklat + + + Güç Sınırları (PPT) + + + Güç Sınırları (PPT) deneysel bir özelliktir. Dikkatli kullanın ve kendi riskinizde! + + + Ekran Görüntüsü Al + + + Çıkış Yap + + + RPM + + + Başlangıçta Çalıştır + + + Kapat + + + Sessiz + + + Uyku + + + Standart kullanım için dGPU'yu etkinleştirir + + + Standart + + + Başlatma Hatası + + + Aura'yı Değiştir + + + Turbo + + + Kapatıldı + + + Pil üzerinde kapat + + + Dizüstü bilgisayar ekranını dGPU'ya yönlendirerek FPS'yi maksimize eder + + + Nihai + + + Sürüm + + + Ses Kısma + + + Uygulama penceresini her zaman en üstte tut + + \ No newline at end of file diff --git a/app/Properties/Strings.uk.resx b/app/Properties/Strings.uk.resx new file mode 100644 index 00000000..ee3465f3 --- /dev/null +++ b/app/Properties/Strings.uk.resx @@ -0,0 +1,408 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Не вдається підключитися до ASUS ACPI. Програма не може працювати без нього. Спробуйте встановити Asus System Control Interface + + + Здається, що GPU використовується, вимкнути її? + + + Еко Режим + + + Вимкнення ультимативного режиму потребує перезавантаження + + + Ультимативний режим потребує перезавантаження + + + Перезавантажитися зараз? + + + Анімаця + + + Аніме Матриця + + + Програма вже запущена + + + G-Helper вже запущено. Перевірте значок у системному лотку. + + + Застосувати профілі кулерів + + + Застосувати потужність + + + Дихання + + + Зміна Кольорів + + + Швидка + + + Нормальна + + + Веселка + + + Повільна + + + Статичний + + + Стробоскоп + + + Авто + + + Частота 60Гц на батареї та максимальна на зарядці + + + Робота + + + Баланс + + + Ліміт заряду батареї + + + Старт + + + Колір + + + CPU Boost + + + Своє + + + За замовчуванням + + + Вимкнути овердрайв дісплею + + + Розрядка + + + Завантажити + + + Вимикає dGPU, щоб зберегти заряд + + + Еко + + + Додатково + + + Додаткові Налаштування + + + Скинути + + + Криві кулерів + + + Профіль кулеру CPU + + + Профіль кулеру GPU + + + Профіль додаткового кулеру + + + Профілі кулерів + + + Кулери та Потужність + + + Кулери та Потужність + + + Зміна + + + Режим Графіки + + + Тільки iGPU + + + iGPU + dGPU + + + Ексклюзивний dGPU + + + Прив'язки клавіш + + + Клавіатура + + + Вимкнути підсвітку на батареї та увімкнути на зарядці + + + Підсвітка клавіатури + + + Клавіатура + + + Дісплей + + + Бінарний банер + + + Яскрава + + + Годинник + + + Слабка + + + Логотип Rog + + + Середня + + + Вимкнена + + + Картинка + + + Максимальна частота оновлення для мінімізації затримок + + + Частота 60Гц, щоб зберегти заряд батареї + + + Мультизони + + + Відкрити вікно G-Helper + + + Авто + + + Вмикає Еко на батареї та Стандартний на зарядці + + + Інше + + + Овердрайв + + + Режим Роботи + + + Картинка / GIF + + + Відтворення / Пауза + + + Потужність (PPT) + + + Налаштування потужності (PPT) є експериментальною функцією. Використовуйте обережно та на свій страх і ризик! + + + Зображення екрана + + + Вихід + + + Оберти + + + Запускати на старті + + + Вимикання + + + Тихий + + + Сон + + + Вмикає dGPU для нормального використання + + + Стандартний + + + Помилка запуску + + + Аура + + + Турбо + + + Вимкнений + + + Вимикати на батареї + + + Підключає екран лептопу до dGPU, щоб підвищити FPS + + + Ультімейт + + + Версія + + + Вимкнення звуку + + + Тримати вікно завжди зверху + + \ No newline at end of file diff --git a/app/Properties/Strings.zh.resx b/app/Properties/Strings.zh.resx new file mode 100644 index 00000000..4e7a73c8 --- /dev/null +++ b/app/Properties/Strings.zh.resx @@ -0,0 +1,408 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 无法连接到华硕 ACPI。 没有它,应用程序将无法运行。 尝试安装华硕系统控制界面 + + + 看起来 GPU 正在大量使用,是否禁用它? + + + 环保模式 + + + 关闭终极模式需要重新启动 + + + 终极模式需要重启 + + + 现在重新启动吗? + + + 动画速度 + + + 动漫矩阵 + + + 应用已在运行 + + + G-Helper 已经在运行。 检查系统托盘中的图标。 + + + 应用自定义扇形曲线 + + + 应用功率限制 + + + 呼吸 + + + 颜色循环 + + + 快速 + + + 正常 + + + 彩虹 + + + + + + 静态 + + + 频闪 + + + 自动 + + + 设置 60Hz 以节省电池电量,并在插入时恢复 + + + 清醒 + + + 平衡 + + + 电池充电限制 + + + 启动 + + + 颜色 + + + CPU 提升 + + + 自定义 + + + 默认 + + + 禁用屏幕超速 + + + 正在放电 + + + 下载更新 + + + 禁用 dGPU 以节省电池电量 + + + 环保 + + + 额外 + + + 额外设置 + + + 出厂默认值 + + + 扇形曲线 + + + CPU 风扇配置文件 + + + GPU 风扇配置文件 + + + 中等粉丝资料 + + + 粉丝资料 + + + 粉丝和权力 + + + 粉丝 + 权力 + + + 改变 + + + GPU 模式 + + + 仅限 iGPU + + + 核显 + 独显 + + + 独显 + + + 键绑定 + + + 键盘 + + + 插入时降低电池和背面的背光亮度 + + + 键盘背光 + + + 笔记本电脑键盘 + + + 笔记本电脑屏幕 + + + 二进制横幅 + + + 明亮 + + + 时钟 + + + 变暗 + + + 罗格徽标 + + + + + + 关闭 + + + 图片 + + + 降低延迟的最大刷新率 + + + 60Hz 刷新率以节省电量 + + + 多区域 + + + 打开 G-Helper 窗口 + + + 优化 + + + 使用电池切换到 Eco,插入电源时切换到 Standard + + + 其他 + + + 超速 + + + 性能模式 + + + 图片/动图 + + + 播放/暂停 + + + 功率限制 (PPT) + + + 功率限制 (PPT) 是实验性功能。 谨慎使用,风险自负! + + + 打印屏幕 + + + 退出 + + + 每分钟转数 + + + 在启动时运行 + + + 关机 + + + 静默 + + + 睡眠 + + + 启用独立 GPU 以供标准使用 + + + 标准 + + + 启动错误 + + + 切换光环 + + + 加速 + + + 已关闭 + + + 关闭电池 + + + 将笔记本电脑屏幕路由到 dGPU,最大化 FPS + + + 终极版 + + + 版本 + + + 音量静音 + + + 使应用程序窗口始终位于顶部 + + \ No newline at end of file diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index e17d88de..401c4fe3 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -136,7 +136,7 @@ namespace GHelper checkMatrix.Name = "checkMatrix"; checkMatrix.Size = new Size(249, 36); checkMatrix.TabIndex = 44; - checkMatrix.Text = "Turn off on battery"; + checkMatrix.Text = Properties.Strings.TurnOffOnBattery; checkMatrix.UseVisualStyleBackColor = true; // // tableLayoutMatrix @@ -168,7 +168,7 @@ namespace GHelper comboMatrix.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point); comboMatrix.FormattingEnabled = true; comboMatrix.ItemHeight = 32; - comboMatrix.Items.AddRange(new object[] { "Off", "Dim", "Medium", "Bright" }); + comboMatrix.Items.AddRange(new object[] { Properties.Strings.MatrixOff, Properties.Strings.MatrixDim, Properties.Strings.MatrixMedium, Properties.Strings.MatrixBright }); comboMatrix.Location = new Point(4, 10); comboMatrix.Margin = new Padding(4, 10, 4, 8); comboMatrix.Name = "comboMatrix"; @@ -184,7 +184,7 @@ namespace GHelper comboMatrixRunning.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point); comboMatrixRunning.FormattingEnabled = true; comboMatrixRunning.ItemHeight = 32; - comboMatrixRunning.Items.AddRange(new object[] { "Binary Banner", "Rog Logo", "Picture", "Clock" }); + comboMatrixRunning.Items.AddRange(new object[] { Properties.Strings.MatrixBanner, Properties.Strings.MatrixLogo, Properties.Strings.MatrixPicture, Properties.Strings.MatrixClock }); comboMatrixRunning.Location = new Point(261, 10); comboMatrixRunning.Margin = new Padding(4, 10, 4, 8); comboMatrixRunning.Name = "comboMatrixRunning"; @@ -207,7 +207,7 @@ namespace GHelper buttonMatrix.Secondary = true; buttonMatrix.Size = new Size(249, 44); buttonMatrix.TabIndex = 43; - buttonMatrix.Text = "Picture / Gif"; + buttonMatrix.Text = Properties.Strings.PictureGif; buttonMatrix.UseVisualStyleBackColor = false; // // pictureMatrix @@ -230,7 +230,7 @@ namespace GHelper labelMatrix.Name = "labelMatrix"; labelMatrix.Size = new Size(170, 32); labelMatrix.TabIndex = 38; - labelMatrix.Text = "Anime Matrix"; + labelMatrix.Text = Properties.Strings.AnimeMatrix; // // panelBattery // @@ -315,7 +315,7 @@ namespace GHelper labelBatteryTitle.Name = "labelBatteryTitle"; labelBatteryTitle.Size = new Size(393, 36); labelBatteryTitle.TabIndex = 34; - labelBatteryTitle.Text = "Battery Charge Limit"; + labelBatteryTitle.Text = Properties.Strings.BatteryChargeLimit; // // panelFooter // @@ -345,7 +345,7 @@ namespace GHelper buttonQuit.Secondary = true; buttonQuit.Size = new Size(185, 44); buttonQuit.TabIndex = 18; - buttonQuit.Text = "Quit"; + buttonQuit.Text = Properties.Strings.Quit; buttonQuit.UseVisualStyleBackColor = false; // // checkStartup @@ -356,7 +356,7 @@ namespace GHelper checkStartup.Name = "checkStartup"; checkStartup.Size = new Size(206, 36); checkStartup.TabIndex = 17; - checkStartup.Text = "Run on Startup"; + checkStartup.Text = Properties.Strings.RunOnStartup; checkStartup.UseVisualStyleBackColor = true; // // panelPerformance @@ -396,7 +396,7 @@ namespace GHelper labelPerf.Name = "labelPerf"; labelPerf.Size = new Size(234, 32); labelPerf.TabIndex = 31; - labelPerf.Text = "Performance Mode"; + labelPerf.Text = Properties.Strings.PerformanceMode; // // labelCPUFan // @@ -452,7 +452,7 @@ namespace GHelper buttonSilent.Secondary = false; buttonSilent.Size = new Size(185, 120); buttonSilent.TabIndex = 0; - buttonSilent.Text = "Silent"; + buttonSilent.Text = Properties.Strings.Silent; buttonSilent.TextImageRelation = TextImageRelation.ImageAboveText; buttonSilent.UseVisualStyleBackColor = false; // @@ -474,7 +474,7 @@ namespace GHelper buttonBalanced.Secondary = false; buttonBalanced.Size = new Size(185, 120); buttonBalanced.TabIndex = 1; - buttonBalanced.Text = "Balanced"; + buttonBalanced.Text = Properties.Strings.Balanced; buttonBalanced.TextImageRelation = TextImageRelation.ImageAboveText; buttonBalanced.UseVisualStyleBackColor = false; // @@ -496,7 +496,7 @@ namespace GHelper buttonTurbo.Secondary = false; buttonTurbo.Size = new Size(185, 120); buttonTurbo.TabIndex = 2; - buttonTurbo.Text = "Turbo"; + buttonTurbo.Text = Properties.Strings.Turbo; buttonTurbo.TextImageRelation = TextImageRelation.ImageAboveText; buttonTurbo.UseVisualStyleBackColor = false; // @@ -517,7 +517,7 @@ namespace GHelper buttonFans.Secondary = true; buttonFans.Size = new Size(185, 120); buttonFans.TabIndex = 35; - buttonFans.Text = "Fans + Power"; + buttonFans.Text = Properties.Strings.FansPower; buttonFans.TextImageRelation = TextImageRelation.ImageAboveText; buttonFans.UseVisualStyleBackColor = false; // @@ -568,7 +568,7 @@ namespace GHelper labelGPU.Name = "labelGPU"; labelGPU.Size = new Size(136, 32); labelGPU.TabIndex = 18; - labelGPU.Text = "GPU Mode"; + labelGPU.Text = Properties.Strings.GPUMode; // // labelGPUFan // @@ -622,7 +622,7 @@ namespace GHelper buttonEco.Secondary = false; buttonEco.Size = new Size(185, 120); buttonEco.TabIndex = 0; - buttonEco.Text = "Eco"; + buttonEco.Text = Properties.Strings.EcoMode; buttonEco.TextImageRelation = TextImageRelation.ImageAboveText; buttonEco.UseVisualStyleBackColor = false; // @@ -644,7 +644,7 @@ namespace GHelper buttonStandard.Secondary = false; buttonStandard.Size = new Size(185, 120); buttonStandard.TabIndex = 1; - buttonStandard.Text = "Standard"; + buttonStandard.Text = Properties.Strings.StandardMode; buttonStandard.TextImageRelation = TextImageRelation.ImageAboveText; buttonStandard.UseVisualStyleBackColor = false; // @@ -666,7 +666,7 @@ namespace GHelper buttonOptimized.Secondary = false; buttonOptimized.Size = new Size(185, 120); buttonOptimized.TabIndex = 3; - buttonOptimized.Text = "Optimized"; + buttonOptimized.Text = Properties.Strings.Optimized; buttonOptimized.TextImageRelation = TextImageRelation.ImageAboveText; buttonOptimized.UseVisualStyleBackColor = false; // @@ -688,7 +688,7 @@ namespace GHelper buttonUltimate.Secondary = false; buttonUltimate.Size = new Size(185, 120); buttonUltimate.TabIndex = 2; - buttonUltimate.Text = "Ultimate"; + buttonUltimate.Text = Properties.Strings.UltimateMode; buttonUltimate.TextImageRelation = TextImageRelation.ImageAboveText; buttonUltimate.UseVisualStyleBackColor = false; // @@ -767,7 +767,7 @@ namespace GHelper buttonScreenAuto.Secondary = false; buttonScreenAuto.Size = new Size(185, 72); buttonScreenAuto.TabIndex = 0; - buttonScreenAuto.Text = "Auto"; + buttonScreenAuto.Text = Properties.Strings.AutoMode; buttonScreenAuto.UseVisualStyleBackColor = false; // // button60Hz @@ -826,7 +826,7 @@ namespace GHelper buttonMiniled.Secondary = false; buttonMiniled.Size = new Size(185, 72); buttonMiniled.TabIndex = 3; - buttonMiniled.Text = "Multizone"; + buttonMiniled.Text = Properties.Strings.Multizone; buttonMiniled.UseVisualStyleBackColor = false; // // pictureScreen @@ -849,7 +849,7 @@ namespace GHelper labelSreen.Name = "labelSreen"; labelSreen.Size = new Size(176, 32); labelSreen.TabIndex = 21; - labelSreen.Text = "Laptop Screen"; + labelSreen.Text = Properties.Strings.LaptopScreen; // // panelKeyboard // @@ -952,7 +952,7 @@ namespace GHelper buttonKeyboardColor.Secondary = false; buttonKeyboardColor.Size = new Size(249, 44); buttonKeyboardColor.TabIndex = 39; - buttonKeyboardColor.Text = "Color"; + buttonKeyboardColor.Text = Properties.Strings.Color; buttonKeyboardColor.UseVisualStyleBackColor = false; // // buttonKeyboard @@ -970,7 +970,7 @@ namespace GHelper buttonKeyboard.Secondary = true; buttonKeyboard.Size = new Size(249, 44); buttonKeyboard.TabIndex = 37; - buttonKeyboard.Text = "Extra"; + buttonKeyboard.Text = Properties.Strings.Extra; buttonKeyboard.UseVisualStyleBackColor = false; // // pictureKeyboard @@ -993,7 +993,7 @@ namespace GHelper labelKeyboard.Name = "labelKeyboard"; labelKeyboard.Size = new Size(210, 32); labelKeyboard.TabIndex = 32; - labelKeyboard.Text = "Laptop Keyboard"; + labelKeyboard.Text = Properties.Strings.LaptopKeyboard; // // SettingsForm // diff --git a/app/Settings.cs b/app/Settings.cs index 4241a378..5d5c5c67 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -2,8 +2,10 @@ using Starlight.AnimeMatrix; using System.Diagnostics; using System.Drawing.Imaging; +using System.Globalization; using System.Reflection; using System.Text.Json; +using System.Threading; using System.Timers; using Tools; @@ -33,6 +35,8 @@ namespace GHelper public SettingsForm() { + + InitializeComponent(); InitTheme(true); @@ -123,7 +127,7 @@ namespace GHelper aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += OnTimedEvent; - SetVersionLabel("Version: " + Assembly.GetExecutingAssembly().GetName().Version); + SetVersionLabel(Properties.Strings.VersionLabel + ": " + Assembly.GetExecutingAssembly().GetName().Version); string model = Program.config.GetModel(); int trim = model.LastIndexOf("_"); @@ -169,7 +173,7 @@ namespace GHelper { BeginInvoke(delegate { - SetVersionLabel("Download Update: " + tag, url); + SetVersionLabel(Properties.Strings.DownloadUpdate + ": " + tag, url); }); } else @@ -200,12 +204,12 @@ namespace GHelper private void Button120Hz_MouseHover(object? sender, EventArgs e) { - labelTipScreen.Text = "Max refresh rate for lower latency"; + labelTipScreen.Text = Properties.Strings.MaxRefreshTooltip; } private void Button60Hz_MouseHover(object? sender, EventArgs e) { - labelTipScreen.Text = "60Hz refresh rate to save battery"; + labelTipScreen.Text = Properties.Strings.MinRefreshTooltip; } private void ButtonScreen_MouseLeave(object? sender, EventArgs e) @@ -215,27 +219,27 @@ namespace GHelper private void ButtonScreenAuto_MouseHover(object? sender, EventArgs e) { - labelTipScreen.Text = "Sets 60Hz to save battery, and back when plugged"; + labelTipScreen.Text = Properties.Strings.AutoRefreshTooltip; } private void ButtonUltimate_MouseHover(object? sender, EventArgs e) { - labelTipGPU.Text = "Routes laptop screen to dGPU, maximizing FPS"; + labelTipGPU.Text = Properties.Strings.UltimateGPUTooltip; } private void ButtonStandard_MouseHover(object? sender, EventArgs e) { - labelTipGPU.Text = "Enables dGPU for standard use"; + labelTipGPU.Text = Properties.Strings.StandardGPUTooltip; } private void ButtonEco_MouseHover(object? sender, EventArgs e) { - labelTipGPU.Text = "Disables dGPU for battery savings"; + labelTipGPU.Text = Properties.Strings.EcoGPUTooltip; } private void ButtonOptimized_MouseHover(object? sender, EventArgs e) { - labelTipGPU.Text = "Switch to Eco on battery and to Standard when plugged"; + labelTipGPU.Text = Properties.Strings.OptimizedGPUTooltip; } private void ButtonGPU_MouseLeave(object? sender, EventArgs e) @@ -731,8 +735,8 @@ namespace GHelper ButtonEnabled(buttonMiniled, screenEnabled); labelSreen.Text = screenEnabled - ? "Laptop Screen: " + frequency + "Hz" + ((overdrive == 1) ? " + Overdrive" : "") - : "Laptop Screen: Turned off"; + ? Properties.Strings.LaptopScreen + ": " + frequency + "Hz" + ((overdrive == 1) ? " + " + Properties.Strings.Overdrive : "") + : Properties.Strings.LaptopScreen + ": " + Properties.Strings.TurnedOff; button60Hz.Activated = false; button120Hz.Activated = false; @@ -818,7 +822,7 @@ namespace GHelper cpuTemp = ": " + Math.Round((decimal)HardwareMonitor.cpuTemp).ToString() + "°C "; if (HardwareMonitor.batteryDischarge > 0) - battery = "Discharging: " + Math.Round((decimal)HardwareMonitor.batteryDischarge, 1).ToString() + "W"; + battery = Properties.Strings.Discharging +": " + Math.Round((decimal)HardwareMonitor.batteryDischarge, 1).ToString() + "W"; if (HardwareMonitor.gpuTemp > 0) { @@ -864,7 +868,7 @@ namespace GHelper private void SetPerformanceLabel() { - labelPerf.Text = "Performance Mode" + (customFans?"+":"") + ((customPower > 0) ? " "+customPower+"W" : ""); + labelPerf.Text = Properties.Strings.PerformanceMode + (customFans?"+":"") + ((customPower > 0) ? " "+customPower+"W" : ""); } public void SetPower() @@ -880,13 +884,14 @@ namespace GHelper if (Program.wmi.DeviceGet(ASUSWmi.PPT_TotalA0) >= 0) { - Program.wmi.DeviceSet(ASUSWmi.PPT_TotalA0, limit_total, "PowerLimit A"); + Program.wmi.DeviceSet(ASUSWmi.PPT_TotalA0, limit_total, "PowerLimit A0"); + Program.wmi.DeviceSet(ASUSWmi.PPT_APUA3, limit_total, "PowerLimit A3"); customPower = limit_total; } if (Program.wmi.DeviceGet(ASUSWmi.PPT_CPUB0) >= 0) { - Program.wmi.DeviceSet(ASUSWmi.PPT_CPUB0, limit_cpu, "PowerLimit B"); + Program.wmi.DeviceSet(ASUSWmi.PPT_CPUB0, limit_cpu, "PowerLimit B0"); customPower = limit_cpu; } @@ -917,12 +922,13 @@ namespace GHelper else customFans = true; // fix for misbehaving bios on intell based TUF 2022 - if (Program.config.ContainsModel("FX507") && Program.config.getConfigPerf("auto_apply_power") != 1) + if ((Program.config.ContainsModel("FX507") || Program.config.ContainsModel("FX517")) && Program.config.getConfigPerf("auto_apply_power") != 1) { Task.Run(async () => { await Task.Delay(TimeSpan.FromSeconds(1)); - Program.wmi.DeviceSet(ASUSWmi.PPT_TotalA0, 80, "PowerLimit Fix"); + Program.wmi.DeviceSet(ASUSWmi.PPT_TotalA0, 80, "PowerLimit Fix A0"); + Program.wmi.DeviceSet(ASUSWmi.PPT_APUA3, 80, "PowerLimit Fix A3"); }); } @@ -974,16 +980,16 @@ namespace GHelper { case ASUSWmi.PerformanceSilent: buttonSilent.Activated = true; - perfName = "Silent"; + perfName = Properties.Strings.Silent; break; case ASUSWmi.PerformanceTurbo: buttonTurbo.Activated = true; - perfName = "Turbo"; + perfName = Properties.Strings.Turbo; break; default: buttonBalanced.Activated = true; PerformanceMode = ASUSWmi.PerformanceBalanced; - perfName = "Balanced"; + perfName = Properties.Strings.Balanced; break; } @@ -1048,10 +1054,8 @@ namespace GHelper if (SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online) Aura.ApplyBrightness(3); - //Program.wmi.DeviceSet(ASUSWmi.UniversalControl, ASUSWmi.KB_Light_Up); else Aura.ApplyBrightness(0); - //Program.wmi.DeviceSet(ASUSWmi.UniversalControl, ASUSWmi.KB_Light_Down); } @@ -1111,7 +1115,7 @@ namespace GHelper if (HardwareMonitor.IsUsedGPU()) { - DialogResult dialogResult = MessageBox.Show("Your dGPU seem to be in heavy use, disable it?", "Eco Mode", MessageBoxButtons.YesNo); + DialogResult dialogResult = MessageBox.Show(Properties.Strings.AlertDGPU, Properties.Strings.AlertDGPUTitle, MessageBoxButtons.YesNo); if (dialogResult == DialogResult.No) return false; } @@ -1186,7 +1190,7 @@ namespace GHelper ButtonEnabled(buttonStandard, false); ButtonEnabled(buttonUltimate, false); - labelGPU.Text = "GPU Mode: Changing ..."; + labelGPU.Text = Properties.Strings.GPUMode + ": "+ Properties.Strings.GPUChanging + " ..."; Thread t = new Thread(() => { @@ -1230,7 +1234,7 @@ namespace GHelper if (CurrentGPU == ASUSWmi.GPUModeUltimate) { - DialogResult dialogResult = MessageBox.Show("Switching off Ultimate Mode requires restart", "Reboot now?", MessageBoxButtons.YesNo); + DialogResult dialogResult = MessageBox.Show(Properties.Strings.AlertUltimateOff, Properties.Strings.AlertUltimateTitle, MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Program.wmi.DeviceSet(ASUSWmi.GPUMux, 1, "GPUMux"); @@ -1240,7 +1244,7 @@ namespace GHelper } else if (GPUMode == ASUSWmi.GPUModeUltimate) { - DialogResult dialogResult = MessageBox.Show("Ultimate Mode requires restart", "Reboot now?", MessageBoxButtons.YesNo); + DialogResult dialogResult = MessageBox.Show(Properties.Strings.AlertUltimateOn, Properties.Strings.AlertUltimateTitle, MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { Program.wmi.DeviceSet(ASUSWmi.GPUMux, 0, "GPUMux"); @@ -1295,19 +1299,19 @@ namespace GHelper buttonOptimized.BorderColor = colorEco; buttonEco.Activated = !GPUAuto; buttonOptimized.Activated = GPUAuto; - labelGPU.Text = "GPU Mode: iGPU only"; + labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeEco; Program.trayIcon.Icon = Properties.Resources.eco; break; case ASUSWmi.GPUModeUltimate: buttonUltimate.Activated = true; - labelGPU.Text = "GPU Mode: dGPU exclusive"; + labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeUltimate; Program.trayIcon.Icon = Properties.Resources.ultimate; break; default: buttonOptimized.BorderColor = colorStandard; buttonStandard.Activated = !GPUAuto; buttonOptimized.Activated = GPUAuto; - labelGPU.Text = "GPU Mode: iGPU + dGPU"; + labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeStandard; Program.trayIcon.Icon = Properties.Resources.standard; break; } @@ -1356,7 +1360,7 @@ namespace GHelper //Debug.WriteLine(limit); - labelBatteryTitle.Text = "Battery Charge Limit: " + limit.ToString() + "%"; + labelBatteryTitle.Text = Properties.Strings.BatteryChargeLimit + ": " + limit.ToString() + "%"; sliderBattery.Value = limit; Program.wmi.DeviceSet(ASUSWmi.BatteryLimit, limit, "BatteryLimit");