[spellcheck]Spelling cleanup (#17099)

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2022-03-17 13:19:16 -04:00
committed by GitHub
parent 41f4d971dd
commit bad435bb26
15 changed files with 47 additions and 69 deletions

View File

@@ -758,7 +758,7 @@ namespace Microsoft.Plugin.Program.Programs
return IndexPath(suffixes, indexLocation);
}
private static IEnumerable<string> RegisteryAppProgramPaths(IList<string> suffixes)
private static IEnumerable<string> RegistryAppProgramPaths(IList<string> suffixes)
{
// https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121
const string appPaths = @"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths";
@@ -788,9 +788,9 @@ namespace Microsoft.Plugin.Program.Programs
private static IEnumerable<string> GetPathsFromRegistry(RegistryKey root)
=> root
.GetSubKeyNames()
.Select(x => GetPathFromRegisterySubkey(root, x));
.Select(x => GetPathFromRegistrySubkey(root, x));
private static string GetPathFromRegisterySubkey(RegistryKey root, string subkey)
private static string GetPathFromRegistrySubkey(RegistryKey root, string subkey)
{
var path = string.Empty;
try
@@ -909,7 +909,7 @@ namespace Microsoft.Plugin.Program.Programs
(true, () => CustomProgramPaths(settings.ProgramSources, settings.ProgramSuffixes)),
(settings.EnableStartMenuSource, () => StartMenuProgramPaths(settings.ProgramSuffixes)),
(settings.EnableDesktopSource, () => DesktopProgramPaths(settings.ProgramSuffixes)),
(settings.EnableRegistrySource, () => RegisteryAppProgramPaths(settings.ProgramSuffixes)),
(settings.EnableRegistrySource, () => RegistryAppProgramPaths(settings.ProgramSuffixes)),
};
// Run commands are always set as AppType "RunCommand"

View File

@@ -108,18 +108,18 @@ namespace PowerLauncher.Properties {
/// <summary>
/// Looks up a localized string similar to Settings will be reset to default and program will continue to function..
/// </summary>
public static string deseralization_error_message {
public static string deserialization_error_message {
get {
return ResourceManager.GetString("deseralization_error_message", resourceCulture);
return ResourceManager.GetString("deserialization_error_message", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to PowerToys Run deserialization error.
/// </summary>
public static string deseralization_error_title {
public static string deserialization_error_title {
get {
return ResourceManager.GetString("deseralization_error_title", resourceCulture);
return ResourceManager.GetString("deserialization_error_title", resourceCulture);
}
}

View File

@@ -179,10 +179,10 @@
<data name="Title" xml:space="preserve">
<value>Title</value>
</data>
<data name="deseralization_error_title" xml:space="preserve">
<data name="deserialization_error_title" xml:space="preserve">
<value>PowerToys Run deserialization error</value>
</data>
<data name="deseralization_error_message" xml:space="preserve">
<data name="deserialization_error_message" xml:space="preserve">
<value>Settings will be reset to default and program will continue to function.</value>
</data>
<data name="FailedToInitializePluginsDescription" xml:space="preserve">

View File

@@ -159,7 +159,7 @@ namespace PowerLauncher
// current file and replace it with a correct json value.
_settingsUtils.DeleteSettings(PowerLauncherSettings.ModuleName);
CreateSettingsIfNotExists();
ErrorReporting.ShowMessageBox(Properties.Resources.deseralization_error_title, Properties.Resources.deseralization_error_message);
ErrorReporting.ShowMessageBox(Properties.Resources.deserialization_error_title, Properties.Resources.deserialization_error_message);
}
else
{