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:
@@ -92,9 +92,11 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeDate
|
||||
|
||||
public string GetTranslatedPluginDescription()
|
||||
{
|
||||
string timeExample = DateTime.Now.ToString("T", CultureInfo.CurrentCulture);
|
||||
string dateExample = DateTime.Now.ToString("d", CultureInfo.CurrentCulture);
|
||||
return string.Format(CultureInfo.CurrentCulture, Resources.Microsoft_plugin_timedate_plugin_description, dateExample, timeExample);
|
||||
// The extra strings for the examples are required for correct translations.
|
||||
string timeExample = Resources.Microsoft_plugin_timedate_plugin_description_example_time + "::" + DateTime.Now.ToString("T", CultureInfo.CurrentCulture);
|
||||
string dayExample = Resources.Microsoft_plugin_timedate_plugin_description_example_day + "::" + DateTime.Now.ToString("d", CultureInfo.CurrentCulture);
|
||||
string calendarWeekExample = Resources.Microsoft_plugin_timedate_plugin_description_example_calendarWeek + "::" + DateTime.Now.ToString("d", CultureInfo.CurrentCulture);
|
||||
return string.Format(CultureInfo.CurrentCulture, Resources.Microsoft_plugin_timedate_plugin_description, Resources.Microsoft_plugin_timedate_plugin_description_example_day, dayExample, timeExample, calendarWeekExample);
|
||||
}
|
||||
|
||||
public string GetTranslatedPluginTitle()
|
||||
|
||||
Reference in New Issue
Block a user