diff --git a/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs b/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs index b460bfd4168..b8f724fb47d 100644 --- a/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs +++ b/src/modules/launcher/PowerLauncher/Properties/Resources.Designer.cs @@ -151,7 +151,7 @@ public static string FailedToInitializePluginsDescription { } /// - /// Looks up a localized string similar to Fail to initialize plugins. + /// Looks up a localized string similar to PowerToys Run - Plugin Initialization Error. /// public static string FailedToInitializePluginsTitle { get { @@ -195,6 +195,15 @@ public static string registerHotkeyFailed { } } + /// + /// Looks up a localized string similar to PowerToys Run - Hotkey Error. + /// + public static string RegisterHotkeyFailedTitle { + get { + return ResourceManager.GetString("RegisterHotkeyFailedTitle", resourceCulture); + } + } + /// /// Looks up a localized string similar to Please file a bug in the. /// diff --git a/src/modules/launcher/PowerLauncher/Properties/Resources.resx b/src/modules/launcher/PowerLauncher/Properties/Resources.resx index c2b859f6e31..62552c3d2d9 100644 --- a/src/modules/launcher/PowerLauncher/Properties/Resources.resx +++ b/src/modules/launcher/PowerLauncher/Properties/Resources.resx @@ -189,7 +189,8 @@ Plugins: {0} - fail to load and would be disabled, please contact plugins creator for help - Fail to initialize plugins + PowerToys Run - Plugin Initialization Error + Don't translate "PowerToys Run". This is a product name. Appended controls available @@ -197,4 +198,8 @@ Plugin keywords + + PowerToys Run - Hotkey Error + Don't translate "PowerToys Run". This is a product name. + \ No newline at end of file diff --git a/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs b/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs index 9be8219f9f5..609b56ca007 100644 --- a/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs +++ b/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs @@ -909,7 +909,7 @@ private void SetHotkey(IntPtr hwnd, HotkeyModel hotkeyModel, HotkeyCallback acti catch (Exception) { string errorMsg = string.Format(CultureInfo.InvariantCulture, RegisterHotkeyFailed, hotkeyStr); - MessageBox.Show(errorMsg); + MessageBox.Show(errorMsg, Properties.Resources.RegisterHotkeyFailedTitle); } }