From 475ea5339a7c53edde3237a23b2de3dfe044ab4f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 6 Aug 2026 08:42:58 +0200 Subject: [PATCH] Improved the error message when importing an unsupported plugin type --- app/MindWork AI Studio/Assistants/I18N/allTexts.lua | 10 +++++----- app/MindWork AI Studio/Pages/Plugins.razor.cs | 2 +- .../plugin.lua | 10 +++++----- .../plugin.lua | 10 +++++----- .../Tools/Services/AssistantPluginInstallService.cs | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua index 89bcbfc5..0a5880a3 100644 --- a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua +++ b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua @@ -8020,9 +8020,6 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3379469503"] = "Your organization ha -- Close UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3448155331"] = "Close" --- The assistant plugin could not be imported: {0} -UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3786117800"] = "The assistant plugin could not be imported: {0}" - -- Revise assistant plugin with AI UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3801095542"] = "Revise assistant plugin with AI" @@ -8056,6 +8053,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T659549952"] = "The plugin archive wa -- An error occurred while exporting the plugin. UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "An error occurred while exporting the plugin." +-- The plugin could not be imported: {0} +UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "The plugin could not be imported: {0}" + -- Settings UI_TEXT_CONTENT["AISTUDIO::PAGES::SETTINGS::T1258653480"] = "Settings" @@ -9589,8 +9589,8 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1288 -- The assistant cannot be deleted while background work is still running. UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1318944584"] = "The assistant cannot be deleted while background work is still running." --- The imported plugin is not an assistant plugin. Issue: {0} -UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1593813237"] = "The imported plugin is not an assistant plugin. Issue: {0}" +-- Currently, only assistant plugins can be imported. +UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T139615196"] = "Currently, only assistant plugins can be imported." -- Please select a plugin archive with the extension .mwplugin or .zip. UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1809137998"] = "Please select a plugin archive with the extension .mwplugin or .zip." diff --git a/app/MindWork AI Studio/Pages/Plugins.razor.cs b/app/MindWork AI Studio/Pages/Plugins.razor.cs index 56235176..d7e4c926 100644 --- a/app/MindWork AI Studio/Pages/Plugins.razor.cs +++ b/app/MindWork AI Studio/Pages/Plugins.razor.cs @@ -377,7 +377,7 @@ public partial class Plugins : MSGComponentBase { var dialogParameters = new DialogParameters { - { x => x.Message, string.Format(this.T("The assistant plugin could not be imported: {0}"), issue) }, + { x => x.Message, string.Format(this.T("The plugin could not be imported: {0}"), issue) }, { x => x.Icon, Icons.Material.Filled.ReportProblem }, { x => x.IconColor, Color.Error }, }; diff --git a/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua b/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua index d4efa75b..81478c9a 100644 --- a/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua +++ b/app/MindWork AI Studio/Plugins/languages/de-de-43065dbc-78d0-45b7-92be-f14c2926e2dc/plugin.lua @@ -8022,9 +8022,6 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3379469503"] = "Ihre Organisation ha -- Close UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3448155331"] = "Schließen" --- The assistant plugin could not be imported: {0} -UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3786117800"] = "Das Assistenten-Plugin konnte nicht importiert werden: {0}" - -- Revise assistant plugin with AI UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3801095542"] = "Assistenten-Plugin mit KI überarbeiten" @@ -8058,6 +8055,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T659549952"] = "Das Plugin-Archiv wur -- An error occurred while exporting the plugin. UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "Beim Exportieren des Plugins ist ein Fehler aufgetreten." +-- The plugin could not be imported: {0} +UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "Das Plugin konnte nicht importiert werden: {0}" + -- Settings UI_TEXT_CONTENT["AISTUDIO::PAGES::SETTINGS::T1258653480"] = "Einstellungen" @@ -9591,8 +9591,8 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1288 -- The assistant cannot be deleted while background work is still running. UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1318944584"] = "Der Assistent kann nicht gelöscht werden, solange noch Hintergrundaktivitäten ausgeführt werden." --- The imported plugin is not an assistant plugin. Issue: {0} -UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1593813237"] = "Das importierte Plugin ist kein Assistenten-Plugin. Problem: {0}" +-- Currently, only assistant plugins can be imported. +UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T139615196"] = "Derzeit können nur Assistenten-Plugins importiert werden." -- Please select a plugin archive with the extension .mwplugin or .zip. UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1809137998"] = "Bitte wählen Sie ein Plugin-Archiv mit der Dateiendung .mwplugin oder .zip aus." diff --git a/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua b/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua index a3f4b9fd..b59d655f 100644 --- a/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua +++ b/app/MindWork AI Studio/Plugins/languages/en-us-97dfb1ba-50c4-4440-8dfa-6575daf543c8/plugin.lua @@ -8022,9 +8022,6 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3379469503"] = "Your organization ha -- Close UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3448155331"] = "Close" --- The assistant plugin could not be imported: {0} -UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3786117800"] = "The assistant plugin could not be imported: {0}" - -- Revise assistant plugin with AI UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T3801095542"] = "Revise assistant plugin with AI" @@ -8058,6 +8055,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T659549952"] = "The plugin archive wa -- An error occurred while exporting the plugin. UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "An error occurred while exporting the plugin." +-- The plugin could not be imported: {0} +UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "The plugin could not be imported: {0}" + -- Settings UI_TEXT_CONTENT["AISTUDIO::PAGES::SETTINGS::T1258653480"] = "Settings" @@ -9591,8 +9591,8 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1288 -- The assistant cannot be deleted while background work is still running. UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1318944584"] = "The assistant cannot be deleted while background work is still running." --- The imported plugin is not an assistant plugin. Issue: {0} -UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1593813237"] = "The imported plugin is not an assistant plugin. Issue: {0}" +-- Currently, only assistant plugins can be imported. +UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T139615196"] = "Currently, only assistant plugins can be imported." -- Please select a plugin archive with the extension .mwplugin or .zip. UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGININSTALLSERVICE::T1809137998"] = "Please select a plugin archive with the extension .mwplugin or .zip." diff --git a/app/MindWork AI Studio/Tools/Services/AssistantPluginInstallService.cs b/app/MindWork AI Studio/Tools/Services/AssistantPluginInstallService.cs index 1cb12871..ec8a2b0e 100644 --- a/app/MindWork AI Studio/Tools/Services/AssistantPluginInstallService.cs +++ b/app/MindWork AI Studio/Tools/Services/AssistantPluginInstallService.cs @@ -180,7 +180,7 @@ public sealed class AssistantPluginInstallService var validation = await ValidateAssistantPluginCodeAsync( pluginDirectory, pluginCode.Trim(), - TB("The imported plugin is not an assistant plugin. Issue: {0}"), + TB("Currently, only assistant plugins can be imported."), TB("The imported assistant plugin is invalid. Issue: {0}"), TB("The imported assistant plugin uses the ID of an internal AI Studio plugin."), token);