Localisations

This commit is contained in:
Serge
2024-03-13 11:56:32 +01:00
parent 4502433d36
commit 5f02596479
6 changed files with 152 additions and 6 deletions

View File

@@ -146,6 +146,7 @@ namespace GHelper
labelBacklightLogo.Text = Properties.Strings.Logo; labelBacklightLogo.Text = Properties.Strings.Logo;
checkGpuApps.Text = Properties.Strings.KillGpuApps; checkGpuApps.Text = Properties.Strings.KillGpuApps;
checkBWIcon.Text = Properties.Strings.BWTrayIcon;
labelHibernateAfter.Text = Properties.Strings.HibernateAfter; labelHibernateAfter.Text = Properties.Strings.HibernateAfter;
labelAPUMem.Text = Properties.Strings.APUMemory; labelAPUMem.Text = Properties.Strings.APUMemory;

View File

@@ -60,6 +60,7 @@ namespace GHelper
labelGPUMemoryTitle.Text = Properties.Strings.GPUMemoryClockOffset; labelGPUMemoryTitle.Text = Properties.Strings.GPUMemoryClockOffset;
labelGPUBoostTitle.Text = Properties.Strings.GPUBoost; labelGPUBoostTitle.Text = Properties.Strings.GPUBoost;
labelGPUTempTitle.Text = Properties.Strings.GPUTempTarget; labelGPUTempTitle.Text = Properties.Strings.GPUTempTarget;
labelGPUPowerTitle.Text = Properties.Strings.GPUPower;
labelRisky.Text = Properties.Strings.UndervoltingRisky; labelRisky.Text = Properties.Strings.UndervoltingRisky;
buttonApplyAdvanced.Text = Properties.Strings.Apply; buttonApplyAdvanced.Text = Properties.Strings.Apply;

View File

@@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly> <ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.159</AssemblyVersion> <AssemblyVersion>0.160</AssemblyVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -509,7 +509,7 @@ namespace GHelper.Input
break; break;
case "micmute": case "micmute":
bool muteStatus = Audio.ToggleMute(); bool muteStatus = Audio.ToggleMute();
Program.toast.RunToast(muteStatus ? "Muted" : "Unmuted", muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone); Program.toast.RunToast(muteStatus ? Properties.Strings.Muted : Properties.Strings.Unmuted, muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone);
if (AppConfig.IsVivoZenbook()) Program.acpi.DeviceSet(AsusACPI.MicMuteLed, muteStatus ? 1 : 0, "MicmuteLed"); if (AppConfig.IsVivoZenbook()) Program.acpi.DeviceSet(AsusACPI.MicMuteLed, muteStatus ? 1 : 0, "MicmuteLed");
break; break;
case "brightness_up": case "brightness_up":
@@ -551,7 +551,7 @@ namespace GHelper.Input
{ {
if (hotkey || !AppConfig.IsHardwareTouchpadToggle()) ToggleTouchpad(); if (hotkey || !AppConfig.IsHardwareTouchpadToggle()) ToggleTouchpad();
Thread.Sleep(200); Thread.Sleep(200);
Program.toast.RunToast(GetTouchpadState() ? "On" : "Off", ToastIcon.Touchpad); Program.toast.RunToast(GetTouchpadState() ? Properties.Strings.On : Properties.Strings.Off, ToastIcon.Touchpad);
} }
static void ToggleTouchpad() static void ToggleTouchpad()
@@ -570,7 +570,7 @@ namespace GHelper.Input
AppConfig.Set("arrow_lock", arLock); AppConfig.Set("arrow_lock", arLock);
Program.settingsForm.BeginInvoke(Program.inputDispatcher.RegisterKeys); Program.settingsForm.BeginInvoke(Program.inputDispatcher.RegisterKeys);
Program.toast.RunToast("Arrow-Lock " + (arLock == 1 ? "On" : "Off"), ToastIcon.FnLock); Program.toast.RunToast("Arrow-Lock " + (arLock == 1 ? Properties.Strings.On : Properties.Strings.Off), ToastIcon.FnLock);
} }
public static void ToggleFnLock() public static void ToggleFnLock()
@@ -585,7 +585,7 @@ namespace GHelper.Input
Program.settingsForm.BeginInvoke(Program.settingsForm.VisualiseFnLock); Program.settingsForm.BeginInvoke(Program.settingsForm.VisualiseFnLock);
Program.toast.RunToast("Fn-Lock " + (fnLock == 1 ? "On" : "Off"), ToastIcon.FnLock); Program.toast.RunToast(fnLock == 1 ? Properties.Strings.FnLockOn : Properties.Strings.FnLockOff, ToastIcon.FnLock);
} }
public static void TabletMode() public static void TabletMode()
@@ -801,7 +801,7 @@ namespace GHelper.Input
if (!OptimizationService.IsOSDRunning()) if (!OptimizationService.IsOSDRunning())
{ {
string[] backlightNames = new string[] { "Off", "Low", "Mid", "Max" }; string[] backlightNames = new string[] { Properties.Strings.BacklightOff, Properties.Strings.BacklightLow, Properties.Strings.BacklightMid, Properties.Strings.BacklightMax };
Program.toast.RunToast(backlightNames[backlight], delta > 0 ? ToastIcon.BacklightUp : ToastIcon.BacklightDown); Program.toast.RunToast(backlightNames[backlight], delta > 0 ? ToastIcon.BacklightUp : ToastIcon.BacklightDown);
} }

View File

@@ -456,6 +456,42 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to Low.
/// </summary>
internal static string BacklightLow {
get {
return ResourceManager.GetString("BacklightLow", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Max.
/// </summary>
internal static string BacklightMax {
get {
return ResourceManager.GetString("BacklightMax", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Mid.
/// </summary>
internal static string BacklightMid {
get {
return ResourceManager.GetString("BacklightMid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Off.
/// </summary>
internal static string BacklightOff {
get {
return ResourceManager.GetString("BacklightOff", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Timeout plugged / on battery (0 - ON). /// Looks up a localized string similar to Timeout plugged / on battery (0 - ON).
/// </summary> /// </summary>
@@ -609,6 +645,15 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to Black and white tray icon.
/// </summary>
internal static string BWTrayIcon {
get {
return ResourceManager.GetString("BWTrayIcon", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Calibrate. /// Looks up a localized string similar to Calibrate.
/// </summary> /// </summary>
@@ -935,6 +980,24 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to FN-Lock Off.
/// </summary>
internal static string FnLockOff {
get {
return ResourceManager.GetString("FnLockOff", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to FN-Lock On.
/// </summary>
internal static string FnLockOn {
get {
return ResourceManager.GetString("FnLockOn", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Dynamic Boost. /// Looks up a localized string similar to Dynamic Boost.
/// </summary> /// </summary>
@@ -1007,6 +1070,15 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to GPU Power.
/// </summary>
internal static string GPUPower {
get {
return ResourceManager.GetString("GPUPower", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to GPU Settings. /// Looks up a localized string similar to GPU Settings.
/// </summary> /// </summary>
@@ -1385,6 +1457,15 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to Muted.
/// </summary>
internal static string Muted {
get {
return ResourceManager.GetString("Muted", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Mute Mic. /// Looks up a localized string similar to Mute Mic.
/// </summary> /// </summary>
@@ -1430,6 +1511,24 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to Off.
/// </summary>
internal static string Off {
get {
return ResourceManager.GetString("Off", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to On.
/// </summary>
internal static string On {
get {
return ResourceManager.GetString("On", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to One Zone. /// Looks up a localized string similar to One Zone.
/// </summary> /// </summary>
@@ -1862,6 +1961,15 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to Unmuted.
/// </summary>
internal static string Unmuted {
get {
return ResourceManager.GetString("Unmuted", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Updates. /// Looks up a localized string similar to Updates.
/// </summary> /// </summary>

View File

@@ -249,6 +249,18 @@
<data name="Awake" xml:space="preserve"> <data name="Awake" xml:space="preserve">
<value>Awake</value> <value>Awake</value>
</data> </data>
<data name="BacklightLow" xml:space="preserve">
<value>Low</value>
</data>
<data name="BacklightMax" xml:space="preserve">
<value>Max</value>
</data>
<data name="BacklightMid" xml:space="preserve">
<value>Mid</value>
</data>
<data name="BacklightOff" xml:space="preserve">
<value>Off</value>
</data>
<data name="BacklightTimeout" xml:space="preserve"> <data name="BacklightTimeout" xml:space="preserve">
<value>Timeout plugged / on battery (0 - ON)</value> <value>Timeout plugged / on battery (0 - ON)</value>
</data> </data>
@@ -300,6 +312,9 @@
<data name="BrightnessUp" xml:space="preserve"> <data name="BrightnessUp" xml:space="preserve">
<value>Brightness Up</value> <value>Brightness Up</value>
</data> </data>
<data name="BWTrayIcon" xml:space="preserve">
<value>Black and white tray icon</value>
</data>
<data name="Calibrate" xml:space="preserve"> <data name="Calibrate" xml:space="preserve">
<value>Calibrate</value> <value>Calibrate</value>
</data> </data>
@@ -410,6 +425,12 @@ Do you still want to continue?</value>
<data name="FnLock" xml:space="preserve"> <data name="FnLock" xml:space="preserve">
<value>Process Fn+F hotkeys without Fn</value> <value>Process Fn+F hotkeys without Fn</value>
</data> </data>
<data name="FnLockOff" xml:space="preserve">
<value>FN-Lock Off</value>
</data>
<data name="FnLockOn" xml:space="preserve">
<value>FN-Lock On</value>
</data>
<data name="GPUBoost" xml:space="preserve"> <data name="GPUBoost" xml:space="preserve">
<value>Dynamic Boost</value> <value>Dynamic Boost</value>
</data> </data>
@@ -434,6 +455,9 @@ Do you still want to continue?</value>
<data name="GPUModeUltimate" xml:space="preserve"> <data name="GPUModeUltimate" xml:space="preserve">
<value>dGPU exclusive</value> <value>dGPU exclusive</value>
</data> </data>
<data name="GPUPower" xml:space="preserve">
<value>GPU Power</value>
</data>
<data name="GPUSettings" xml:space="preserve"> <data name="GPUSettings" xml:space="preserve">
<value>GPU Settings</value> <value>GPU Settings</value>
</data> </data>
@@ -560,6 +584,9 @@ Do you still want to continue?</value>
<data name="MultizoneStrong" xml:space="preserve"> <data name="MultizoneStrong" xml:space="preserve">
<value>Multi Zone Strong</value> <value>Multi Zone Strong</value>
</data> </data>
<data name="Muted" xml:space="preserve">
<value>Muted</value>
</data>
<data name="MuteMic" xml:space="preserve"> <data name="MuteMic" xml:space="preserve">
<value>Mute Mic</value> <value>Mute Mic</value>
</data> </data>
@@ -575,6 +602,12 @@ Do you still want to continue?</value>
<data name="NotConnected" xml:space="preserve"> <data name="NotConnected" xml:space="preserve">
<value>Not Connected</value> <value>Not Connected</value>
</data> </data>
<data name="Off" xml:space="preserve">
<value>Off</value>
</data>
<data name="On" xml:space="preserve">
<value>On</value>
</data>
<data name="OneZone" xml:space="preserve"> <data name="OneZone" xml:space="preserve">
<value>One Zone</value> <value>One Zone</value>
</data> </data>
@@ -719,6 +752,9 @@ Do you still want to continue?</value>
<data name="UndervoltingRisky" xml:space="preserve"> <data name="UndervoltingRisky" xml:space="preserve">
<value>Undervolting is an experimental and risky feature. If applied values are too low for your hardware, it can become unstable, shut down or cause data corruption. If you want to try - start from small values first, click Apply and test what works for you.</value> <value>Undervolting is an experimental and risky feature. If applied values are too low for your hardware, it can become unstable, shut down or cause data corruption. If you want to try - start from small values first, click Apply and test what works for you.</value>
</data> </data>
<data name="Unmuted" xml:space="preserve">
<value>Unmuted</value>
</data>
<data name="Updates" xml:space="preserve"> <data name="Updates" xml:space="preserve">
<value>Updates</value> <value>Updates</value>
</data> </data>