diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index dc7d82d34..f279a212a 100644 --- a/app/appearance/langs/en_US.json +++ b/app/appearance/langs/en_US.json @@ -1160,6 +1160,7 @@ "201": "Failed to purge data repo: %s", "202": "Cleaning data repo...", "203": "The data repo is purged, [%d] snapshots and [%d] data objects have been deleted, and a total of [%s] disk space has been released", - "204": "The doc in the user guide does not support sharing to the community" + "204": "The doc in the user guide does not support sharing to the community", + "205": "The plugin is not supported in the current environment" } } diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json index ff38493dd..7f4a12153 100644 --- a/app/appearance/langs/es_ES.json +++ b/app/appearance/langs/es_ES.json @@ -1160,6 +1160,7 @@ "201": "Error al purgar el repositorio de datos: %s", "202": "Limpiando repositorio de datos...", "203": "El repositorio de datos se purgó, [%d] instantáneas y [%d] objetos de datos se eliminaron y se liberó un total de [%s] espacio en disco", - "204": "La documentación en la guía del usuario no permite compartir con la comunidad" + "204": "La documentación en la guía del usuario no permite compartir con la comunidad", + "205": "El complemento no es compatible con el entorno actual" } } diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json index 46bb9a000..c3d862344 100644 --- a/app/appearance/langs/fr_FR.json +++ b/app/appearance/langs/fr_FR.json @@ -1160,6 +1160,7 @@ "201": "Échec de la purge du référentiel de données : %s", "202": "Nettoyage du référentiel de données...", "203": "Le référentiel de données est purgé, [%d] instantanés et [%d] objets de données ont été supprimés, et un total de [%s] espace disque a été libéré", - "204": "La documentation du guide de l'utilisateur ne prend pas en charge le partage avec la communauté" + "204": "La documentation du guide de l'utilisateur ne prend pas en charge le partage avec la communauté", + "205": "Le plugin n'est pas pris en charge dans l'environnement actuel" } } diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json index 13a3bbcca..ad7ad7c3c 100644 --- a/app/appearance/langs/zh_CHT.json +++ b/app/appearance/langs/zh_CHT.json @@ -1160,6 +1160,7 @@ "201": "清理數據倉庫失敗:%s", "202": "正在清理數據倉庫...", "203": "數據倉庫清理完畢,已刪除 [%d] 個快照和 [%d] 個數據對象,共釋放 [%s] 磁盤空間", - "204": "用戶指南中的文檔不支持分享到社區" + "204": "用戶指南中的文檔不支持分享到社區", + "205": "該插件不支持在當前環境下使用" } } diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index 0a1828a3f..aa56ef8be 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -1162,6 +1162,7 @@ "201": "清理数据仓库失败:%s", "202": "正在清理数据仓库...", "203": "数据仓库清理完毕,已删除 [%d] 个快照和 [%d] 个数据对象,共释放 [%s] 磁盘空间", - "204": "用户指南中的文档不支持分享到社区" + "204": "用户指南中的文档不支持分享到社区", + "205": "该插件不支持在当前环境下使用" } } diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go index 6467cc521..b6e3a4411 100644 --- a/kernel/model/plugin.go +++ b/kernel/model/plugin.go @@ -60,7 +60,7 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, er ret.Incompatible = incompatible if incompatible { - err = fmt.Errorf("plugin [%s] is incompatible", name) + err = fmt.Errorf(Conf.Language(205)) return }