[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:
Heiko
2022-06-28 20:21:08 +02:00
committed by GitHub
parent a81bc2e7b5
commit 46cf9a2334
7 changed files with 54 additions and 12 deletions

View File

@@ -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,
},
};