diff --git a/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java b/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java index 8b132159dd..7f35b27083 100644 --- a/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java +++ b/system-setting/backend/src/main/java/io/metersphere/service/PlatformPluginService.java @@ -84,7 +84,7 @@ public class PlatformPluginService { if (pluginMapper.countByExample(example) > 0) { // 校验插件类型是否存在 unload(id); - MSException.throwException(pluginMetaInfo.getKey() + " plugin is already exist!"); + MSException.throwException(pluginMetaInfo.getKey() + Translator.get("platform_plugin_exit")); } PluginManagerUtil.uploadPlugin(id, file); diff --git a/system-setting/backend/src/main/resources/i18n/messages_en_US.properties b/system-setting/backend/src/main/resources/i18n/messages_en_US.properties index 5fbe8efd38..bbce8df8aa 100644 --- a/system-setting/backend/src/main/resources/i18n/messages_en_US.properties +++ b/system-setting/backend/src/main/resources/i18n/messages_en_US.properties @@ -1,4 +1,5 @@ error_lang_invalid=Invalid language parameter, new read_permission_file_fail=Failed to read permission file! platform_plugin_not_exit=Platform docking function has been plug-in, please download the corresponding version of the plug-in: -workspace_name_exceeds_length_limit=Workspace name exceeds length limit \ No newline at end of file +workspace_name_exceeds_length_limit=Workspace name exceeds length limit +platform_plugin_exit=plugin is already exist! \ No newline at end of file diff --git a/system-setting/backend/src/main/resources/i18n/messages_zh_CN.properties b/system-setting/backend/src/main/resources/i18n/messages_zh_CN.properties index f22d4f8993..ba6e80f19f 100644 --- a/system-setting/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/system-setting/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -1,4 +1,5 @@ error_lang_invalid=语言参数错误, 新 read_permission_file_fail=读取权限文件失败! platform_plugin_not_exit=平台对接功能已插件化,请下载对应版本的插件: -workspace_name_exceeds_length_limit=工作空间名称超出长度限制 \ No newline at end of file +workspace_name_exceeds_length_limit=工作空间名称超出长度限制 +platform_plugin_exit=插件已存在! \ No newline at end of file diff --git a/system-setting/backend/src/main/resources/i18n/messages_zh_TW.properties b/system-setting/backend/src/main/resources/i18n/messages_zh_TW.properties index d22fe908c7..782c4064b5 100644 --- a/system-setting/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/system-setting/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -1,4 +1,5 @@ error_lang_invalid=語言參數錯誤,新 read_permission_file_fail=讀取權限文件失敗! platform_plugin_not_exit=平臺對接功能已插件化,請下載對應版本的插件: -workspace_name_exceeds_length_limit=工作空間名稱超出長度限制 \ No newline at end of file +workspace_name_exceeds_length_limit=工作空間名稱超出長度限制 +platform_plugin_exit=插件已存在! \ No newline at end of file