From 6d3ba969ab9d8bcb2002c50052688ebd40e0890f Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Thu, 30 May 2024 13:31:14 +0800 Subject: [PATCH] refactor: refine i18n prompts for themes (#6020) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement /area core /milestone 2.16.x #### What this PR does / why we need it: 优化主题安装时的中文提示 image #### Does this PR introduce a user-facing change? ```release-note None ``` --- application/src/main/resources/config/i18n/messages.properties | 1 + .../src/main/resources/config/i18n/messages_zh.properties | 2 ++ 2 files changed, 3 insertions(+) diff --git a/application/src/main/resources/config/i18n/messages.properties b/application/src/main/resources/config/i18n/messages.properties index 704cc9707..feceb7e14 100644 --- a/application/src/main/resources/config/i18n/messages.properties +++ b/application/src/main/resources/config/i18n/messages.properties @@ -15,6 +15,7 @@ problemDetail.title.run.halo.app.infra.exception.AccessDeniedException=Access De problemDetail.title.reactor.core.Exceptions.RetryExhaustedException=Retry Exhausted problemDetail.title.run.halo.app.infra.exception.ThemeInstallationException=Theme Install Error problemDetail.title.run.halo.app.infra.exception.ThemeUpgradeException=Theme Upgrade Error +problemDetail.title.run.halo.app.infra.exception.ThemeAlreadyExistsException=Theme Already Exists Error problemDetail.title.run.halo.app.infra.exception.PluginInstallationException=Plugin Install Error problemDetail.title.run.halo.app.infra.exception.PluginAlreadyExistsException=Plugin Already Exists Error problemDetail.title.run.halo.app.infra.exception.DuplicateNameException=Duplicate Name Error diff --git a/application/src/main/resources/config/i18n/messages_zh.properties b/application/src/main/resources/config/i18n/messages_zh.properties index 675d54180..853c56fce 100644 --- a/application/src/main/resources/config/i18n/messages_zh.properties +++ b/application/src/main/resources/config/i18n/messages_zh.properties @@ -6,6 +6,7 @@ problemDetail.title.run.halo.app.infra.exception.AttachmentAlreadyExistsExceptio problemDetail.title.run.halo.app.infra.exception.DuplicateNameException=名称重复 problemDetail.title.run.halo.app.infra.exception.PluginAlreadyExistsException=插件已存在 problemDetail.title.run.halo.app.infra.exception.ThemeInstallationException=主题安装失败 +problemDetail.title.run.halo.app.infra.exception.ThemeAlreadyExistsException=主题已存在 problemDetail.title.run.halo.app.infra.exception.RateLimitExceededException=请求限制 problemDetail.title.run.halo.app.infra.exception.NotFoundException=资源不存在 problemDetail.title.run.halo.app.infra.exception.EmailVerificationFailed=邮箱验证失败 @@ -40,6 +41,7 @@ problemDetail.plugin.version.unsatisfied.requires=插件要求一个最小的系 problemDetail.plugin.missingManifest=缺少 plugin.yaml 配置文件或配置文件不符合规范。 problemDetail.theme.version.unsatisfied.requires=主题要求一个最小的系统版本为 {0}, 但当前版本为 {1}。 problemDetail.theme.install.missingManifest=缺少 theme.yaml 配置文件或配置文件不符合规范。 +problemDetail.theme.install.alreadyExists=主题 {0} 已存在。 problemDetail.internalServerError=服务器内部发生错误,请稍候再试。 problemDetail.migration.backup.notFound=备份文件不存在或已删除。