mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02: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;
|
Metadata.Disabled = false;
|
||||||
InitializePlugin(api);
|
InitializePlugin(api);
|
||||||
|
|
||||||
if (!IsPluginInitialized)
|
if (!IsPluginInitialized)
|
||||||
{
|
{
|
||||||
var title = string.Format(CultureInfo.CurrentCulture, Resources.FailedToLoadPluginTitle, Metadata.Name);
|
string description = $"{Resources.FailedToLoadPluginDescription} {Metadata.Name}\n\n{Resources.FailedToLoadPluginDescriptionPartTwo}";
|
||||||
api.ShowMsg(title, Resources.FailedToLoadPluginDescription, string.Empty, false);
|
api.ShowMsg(Resources.FailedToLoadPluginTitle, description, string.Empty, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace Wox.Plugin.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public static string FailedToLoadPluginDescription {
|
public static string FailedToLoadPluginDescription {
|
||||||
get {
|
get {
|
||||||
@@ -70,7 +70,16 @@ namespace Wox.Plugin.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public static string FailedToLoadPluginTitle {
|
public static string FailedToLoadPluginTitle {
|
||||||
get {
|
get {
|
||||||
|
|||||||
@@ -118,11 +118,15 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="FailedToLoadPluginDescription" xml:space="preserve">
|
<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>
|
||||||
<data name="FailedToLoadPluginTitle" xml:space="preserve">
|
<data name="FailedToLoadPluginTitle" xml:space="preserve">
|
||||||
<value>Fail to Load {0} Plugin</value>
|
<value>PowerToys Run - Plugin Loading Error</value>
|
||||||
<comment>Do not translate '{0}' as this is a place holder and will be converted in code.</comment>
|
<comment>Don't translate "PowerToys Run". This is a product name.</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="VirtualDesktopHelper_AllDesktops" xml:space="preserve">
|
<data name="VirtualDesktopHelper_AllDesktops" xml:space="preserve">
|
||||||
<value>On all Desktops</value>
|
<value>On all Desktops</value>
|
||||||
|
|||||||
Reference in New Issue
Block a user