mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[PTRun][Plugins]Translation fixes and improvements (#19037)
* add resx comment to sys plugin (#18843) * number examples calc plugin (#18934) * TD description fix (#17377) * small fixes * add comments * make spell checker happy
This commit is contained in:
@@ -34,18 +34,19 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator
|
||||
|
||||
public IEnumerable<PluginAdditionalOption> AdditionalOptions => new List<PluginAdditionalOption>()
|
||||
{
|
||||
// The number examples has to be created at runtime to prevent translation.
|
||||
new PluginAdditionalOption()
|
||||
{
|
||||
Key = "InputUseEnglishFormat",
|
||||
DisplayLabel = Resources.wox_plugin_calculator_in_en_format,
|
||||
DisplayDescription = Resources.wox_plugin_calculator_in_en_format_description,
|
||||
DisplayDescription = string.Format(CultureInfo.CurrentCulture, Resources.wox_plugin_calculator_in_en_format_description, 1000.55.ToString("N2", new CultureInfo("en-us"))),
|
||||
Value = false,
|
||||
},
|
||||
new PluginAdditionalOption()
|
||||
{
|
||||
Key = "OutputUseEnglishFormat",
|
||||
DisplayLabel = Resources.wox_plugin_calculator_out_en_format,
|
||||
DisplayDescription = Resources.wox_plugin_calculator_out_en_format_description,
|
||||
DisplayDescription = string.Format(CultureInfo.CurrentCulture, Resources.wox_plugin_calculator_out_en_format_description, 1000.55.ToString("G", new CultureInfo("en-us"))),
|
||||
Value = false,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Ignores your system setting and expects numbers in the format '1,000.50'.
|
||||
/// Looks up a localized string similar to Ignores your system setting and expects numbers in the format '{0}'..
|
||||
/// </summary>
|
||||
public static string wox_plugin_calculator_in_en_format_description {
|
||||
get {
|
||||
@@ -151,7 +151,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Ignores your system setting and returns numbers in the format '1000.50'.
|
||||
/// Looks up a localized string similar to Ignores your system setting and returns numbers in the format '{0}'..
|
||||
/// </summary>
|
||||
public static string wox_plugin_calculator_out_en_format_description {
|
||||
get {
|
||||
|
||||
@@ -148,12 +148,14 @@
|
||||
<value>Use English (United States) number format for input</value>
|
||||
</data>
|
||||
<data name="wox_plugin_calculator_in_en_format_description" xml:space="preserve">
|
||||
<value>Ignores your system setting and expects numbers in the format '1,000.50'</value>
|
||||
<value>Ignores your system setting and expects numbers in the format '{0}'.</value>
|
||||
<comment>{0} is a placeholder and will be replaced in code.</comment>
|
||||
</data>
|
||||
<data name="wox_plugin_calculator_out_en_format" xml:space="preserve">
|
||||
<value>Use English (United States) number format for output</value>
|
||||
</data>
|
||||
<data name="wox_plugin_calculator_out_en_format_description" xml:space="preserve">
|
||||
<value>Ignores your system setting and returns numbers in the format '1000.50'</value>
|
||||
<value>Ignores your system setting and returns numbers in the format '{0}'.</value>
|
||||
<comment>{0} is a placeholder and will be replaced in code.</comment>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user