mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
[PTRun] Fix comments typos (#28986)
Fixes simple typo/grammar errors It's easier to understand if it is spelled correctly. This is especially important for those for whom english may not be their first language. Signed-off-by: brian teeman <brian@teeman.net>
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
// For debugging you can set the second parameter to true to see more informations.
|
// For debugging you can set the second parameter to true to see more information.
|
||||||
ToolTipData = GetToolTip(x.Result, false),
|
ToolTipData = GetToolTip(x.Result, false),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace Microsoft.Plugin.WindowWalker.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Folder windows doesn't run in separate processes. (Klick to open Explorer properties.).
|
/// Looks up a localized string similar to Folder windows doesn't run in separate processes. (Click to open Explorer properties.).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string wox_plugin_windowwalker_ExplorerInfoSubTitle {
|
public static string wox_plugin_windowwalker_ExplorerInfoSubTitle {
|
||||||
get {
|
get {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Registry.Helper
|
|||||||
/// Return a list with all context menu entries for the given <see cref="Result"/>
|
/// Return a list with all context menu entries for the given <see cref="Result"/>
|
||||||
/// <para>Symbols taken from <see href="https://learn.microsoft.com/windows/uwp/design/style/segoe-ui-symbol-font"/></para>
|
/// <para>Symbols taken from <see href="https://learn.microsoft.com/windows/uwp/design/style/segoe-ui-symbol-font"/></para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="result">The result for the context menu entires</param>
|
/// <param name="result">The result for the context menu entries</param>
|
||||||
/// <param name="assemblyName">The name of the this assembly</param>
|
/// <param name="assemblyName">The name of the this assembly</param>
|
||||||
/// <returns>A list with context menu entries</returns>
|
/// <returns>A list with context menu entries</returns>
|
||||||
internal static List<ContextMenuResult> GetContextMenu(Result result, string assemblyName)
|
internal static List<ContextMenuResult> GetContextMenu(Result result, string assemblyName)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ using Microsoft.PowerToys.Run.Plugin.System.Properties;
|
|||||||
namespace Microsoft.PowerToys.Run.Plugin.System.Components
|
namespace Microsoft.PowerToys.Run.Plugin.System.Components
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This class represents the informations for a network connection/interface
|
/// This class represents the information for a network connection/interface
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class NetworkConnectionProperties
|
internal sealed class NetworkConnectionProperties
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ namespace Microsoft.PowerToys.Run.Plugin.System
|
|||||||
// {
|
// {
|
||||||
// results.Add(new Result()
|
// results.Add(new Result()
|
||||||
// {
|
// {
|
||||||
// Title = "Getting network informations. Please wait ...",
|
// Title = "Getting network information. Please wait ...",
|
||||||
// IcoPath = $"Images\\networkAdapter.{IconTheme}.png",
|
// IcoPath = $"Images\\networkAdapter.{IconTheme}.png",
|
||||||
// Score = StringMatcher.FuzzySearch("address", "ip address").Score,
|
// Score = StringMatcher.FuzzySearch("address", "ip address").Score,
|
||||||
// });
|
// });
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeDate.Components
|
|||||||
|
|
||||||
if (isKeywordSearch || !TimeDateSettings.Instance.OnlyDateTimeNowGlobal)
|
if (isKeywordSearch || !TimeDateSettings.Instance.OnlyDateTimeNowGlobal)
|
||||||
{
|
{
|
||||||
// We use long instead of int for unix time stamp because int ist to small after 03:14:07 UTC 2038-01-19
|
// We use long instead of int for unix time stamp because int is too small after 03:14:07 UTC 2038-01-19
|
||||||
long unixTimestamp = (long)dateTimeNowUtc.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
|
long unixTimestamp = (long)dateTimeNowUtc.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
|
||||||
int weekOfYear = calendar.GetWeekOfYear(dateTimeNow, DateTimeFormatInfo.CurrentInfo.CalendarWeekRule, DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek);
|
int weekOfYear = calendar.GetWeekOfYear(dateTimeNow, DateTimeFormatInfo.CurrentInfo.CalendarWeekRule, DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek);
|
||||||
string era = DateTimeFormatInfo.CurrentInfo.GetEraName(calendar.GetEra(dateTimeNow));
|
string era = DateTimeFormatInfo.CurrentInfo.GetEraName(calendar.GetEra(dateTimeNow));
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeDate.Components
|
|||||||
else if (Regex.IsMatch(input, @"^u\d+") && input.Length <= 12 && long.TryParse(input.TrimStart('u'), out long secondsInt))
|
else if (Regex.IsMatch(input, @"^u\d+") && input.Length <= 12 && long.TryParse(input.TrimStart('u'), out long secondsInt))
|
||||||
{
|
{
|
||||||
// unix time stamp
|
// unix time stamp
|
||||||
// we use long instead of int because int ist to small after 03:14:07 UTC 2038-01-19
|
// we use long instead of int because int is too small after 03:14:07 UTC 2038-01-19
|
||||||
timestamp = new DateTime(1970, 1, 1).AddSeconds(secondsInt).ToLocalTime();
|
timestamp = new DateTime(1970, 1, 1).AddSeconds(secondsInt).ToLocalTime();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper
|
|||||||
/// Return a list with all context menu entries for the given <see cref="Result"/>
|
/// Return a list with all context menu entries for the given <see cref="Result"/>
|
||||||
/// <para>Symbols taken from <see href="https://learn.microsoft.com/windows/uwp/design/style/segoe-ui-symbol-font"/></para>
|
/// <para>Symbols taken from <see href="https://learn.microsoft.com/windows/uwp/design/style/segoe-ui-symbol-font"/></para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="result">The result for the context menu entires</param>
|
/// <param name="result">The result for the context menu entries</param>
|
||||||
/// <param name="assemblyName">The name of the this assembly</param>
|
/// <param name="assemblyName">The name of the this assembly</param>
|
||||||
/// <returns>A list with context menu entries</returns>
|
/// <returns>A list with context menu entries</returns>
|
||||||
internal static List<ContextMenuResult> GetContextMenu(in Result result, in string assemblyName)
|
internal static List<ContextMenuResult> GetContextMenu(in Result result, in string assemblyName)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a tool-tip to the given <see cref="Result"/>, based o the given <see cref="IWindowsSetting"/>.
|
/// Add a tool-tip to the given <see cref="Result"/>, based o the given <see cref="IWindowsSetting"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entry">The <see cref="WindowsSetting"/> that contain informations for the tool-tip.</param>
|
/// <param name="entry">The <see cref="WindowsSetting"/> that contains information for the tool-tip.</param>
|
||||||
/// <param name="result">The <see cref="Result"/> that need a tool-tip.</param>
|
/// <param name="result">The <see cref="Result"/> that need a tool-tip.</param>
|
||||||
private static void AddOptionalToolTip(WindowsSetting entry, Result result)
|
private static void AddOptionalToolTip(WindowsSetting entry, Result result)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ namespace PowerLauncher.Helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the variables for the specified target. Errors that occurs will be catched and logged.
|
/// Returns the variables for the specified target. Errors that occurs will be caught and logged.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="target">The target variable source of the type <see cref="EnvironmentVariableTarget"/> </param>
|
/// <param name="target">The target variable source of the type <see cref="EnvironmentVariableTarget"/> </param>
|
||||||
/// <returns>A dictionary with the variable or an empty dictionary on errors.</returns>
|
/// <returns>A dictionary with the variable or an empty dictionary on errors.</returns>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace PowerLauncher.Plugin
|
|||||||
|
|
||||||
private static void ParsePluginConfigs(IEnumerable<string> directories)
|
private static void ParsePluginConfigs(IEnumerable<string> directories)
|
||||||
{
|
{
|
||||||
// todo use linq when diable plugin is implemented since parallel.foreach + list is not thread saft
|
// todo use linq when disable plugin is implemented since parallel.foreach + list is not thread saft
|
||||||
foreach (var directory in directories)
|
foreach (var directory in directories)
|
||||||
{
|
{
|
||||||
if (File.Exists(Path.Combine(directory, "NeedDelete.txt")))
|
if (File.Exists(Path.Combine(directory, "NeedDelete.txt")))
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Wox.Plugin.Common.VirtualDesktop.Helper
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper class to work with Virtual Desktops.
|
/// Helper class to work with Virtual Desktops.
|
||||||
/// This helper uses only public available and documented COM-Interfaces or informations from registry.
|
/// This helper uses only public available and documented COM-Interfaces or information from registry.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// To use this helper you have to create an instance of it and access the method via the helper instance.
|
/// To use this helper you have to create an instance of it and access the method via the helper instance.
|
||||||
|
|||||||
@@ -1077,7 +1077,7 @@ namespace Wox.Plugin.Common.Win32
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The window itself contains child windows that should take part in dialog box, navigation. If this
|
/// The window itself contains child windows that should take part in dialog box, navigation. If this
|
||||||
/// style is specified, the dialog manager recurses into children of this window when performing
|
/// style is specified, the dialog manager recurses into children of this window when performing
|
||||||
/// navigation operations such as handling tha TAB key, an arrow key, or a keyboard mnemonic.
|
/// navigation operations such as handling the TAB key, an arrow key, or a keyboard mnemonic.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
WS_EX_CONTROLPARENT = 0x10000,
|
WS_EX_CONTROLPARENT = 0x10000,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user