Localize fan speed labels in the main window

This commit is contained in:
Carsten Braun
2023-05-17 10:47:41 +02:00
parent d75067b40c
commit 6a4aa4e138
4 changed files with 18 additions and 3 deletions

View File

@@ -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()

View File

@@ -483,6 +483,15 @@ namespace GHelper.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Fan: .
/// </summary>
internal static string FanSpeed {
get {
return ResourceManager.GetString("FanSpeed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Fans + Power.
/// </summary>

View File

@@ -199,6 +199,9 @@
<data name="FansAndPower" xml:space="preserve">
<value>Lüfter und Leistung</value>
</data>
<data name="FanSpeed" xml:space="preserve">
<value> Lüfter: </value>
</data>
<data name="FansPower" xml:space="preserve">
<value>Lüfter + Leistung</value>
</data>
@@ -263,7 +266,7 @@
<value>Dunkel</value>
</data>
<data name="MatrixLogo" xml:space="preserve">
<value>Rog Logo</value>
<value>ROG Logo</value>
</data>
<data name="MatrixMedium" xml:space="preserve">
<value>Mittel</value>

View File

@@ -258,6 +258,9 @@
<data name="FansAndPower" xml:space="preserve">
<value>Fans and Power</value>
</data>
<data name="FanSpeed" xml:space="preserve">
<value> Fan: </value>
</data>
<data name="FansPower" xml:space="preserve">
<value>Fans + Power</value>
</data>