mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[PT Run] Improve plugin loading error (#25095)
* Update message * update text
This commit is contained in:
@@ -67,10 +67,11 @@ namespace Wox.Plugin
|
||||
{
|
||||
Metadata.Disabled = false;
|
||||
InitializePlugin(api);
|
||||
|
||||
if (!IsPluginInitialized)
|
||||
{
|
||||
var title = string.Format(CultureInfo.CurrentCulture, Resources.FailedToLoadPluginTitle, Metadata.Name);
|
||||
api.ShowMsg(title, Resources.FailedToLoadPluginDescription, string.Empty, false);
|
||||
string description = $"{Resources.FailedToLoadPluginDescription} {Metadata.Name}\n\n{Resources.FailedToLoadPluginDescriptionPartTwo}";
|
||||
api.ShowMsg(Resources.FailedToLoadPluginTitle, description, string.Empty, false);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Wox.Plugin.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Please contact plugin creator for help.
|
||||
/// Looks up a localized string similar to Fail to load plugin:.
|
||||
/// </summary>
|
||||
public static string FailedToLoadPluginDescription {
|
||||
get {
|
||||
@@ -70,7 +70,16 @@ namespace Wox.Plugin.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Fail to Load {0} Plugin.
|
||||
/// Looks up a localized string similar to Please report the bug to https://aka.ms/powerToysReportBug. (For third-party plugins, please contact the plugin author.).
|
||||
/// </summary>
|
||||
public static string FailedToLoadPluginDescriptionPartTwo {
|
||||
get {
|
||||
return ResourceManager.GetString("FailedToLoadPluginDescriptionPartTwo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to PowerToys Run - Plugin Loading Error.
|
||||
/// </summary>
|
||||
public static string FailedToLoadPluginTitle {
|
||||
get {
|
||||
|
||||
@@ -118,11 +118,15 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="FailedToLoadPluginDescription" xml:space="preserve">
|
||||
<value>Please contact plugin creator for help</value>
|
||||
<value>Fail to load plugin:</value>
|
||||
</data>
|
||||
<data name="FailedToLoadPluginDescriptionPartTwo" xml:space="preserve">
|
||||
<value>Please report the bug to https://aka.ms/powerToysReportBug. (For third-party plugins, please contact the plugin author.)</value>
|
||||
<comment>"https://aka.ms/powerToysReportBug" is a web uri.</comment>
|
||||
</data>
|
||||
<data name="FailedToLoadPluginTitle" xml:space="preserve">
|
||||
<value>Fail to Load {0} Plugin</value>
|
||||
<comment>Do not translate '{0}' as this is a place holder and will be converted in code.</comment>
|
||||
<value>PowerToys Run - Plugin Loading Error</value>
|
||||
<comment>Don't translate "PowerToys Run". This is a product name.</comment>
|
||||
</data>
|
||||
<data name="VirtualDesktopHelper_AllDesktops" xml:space="preserve">
|
||||
<value>On all Desktops</value>
|
||||
|
||||
Reference in New Issue
Block a user