From 2ed117042a655e02d7024d3b8947f51401d67e07 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 28 Jun 2024 12:08:57 +0800 Subject: [PATCH] refactor: translate extension point descriptions to simplified chinese (#6190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area core /kind improvement /milestone 2.17.x #### What this PR does / why we need it: 将扩展点定义和扩展点的描述文件改为简体中文。 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../extensions/extension-definitions.yaml | 22 ++++++------ .../extensionpoint-definitions.yaml | 32 ++++++++++-------- .../static/images/extension-points/lucene.png | Bin 0 -> 10005 bytes 3 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 application/src/main/resources/static/images/extension-points/lucene.png diff --git a/application/src/main/resources/extensions/extension-definitions.yaml b/application/src/main/resources/extensions/extension-definitions.yaml index d7b418cfa8..410fe807e4 100644 --- a/application/src/main/resources/extensions/extension-definitions.yaml +++ b/application/src/main/resources/extensions/extension-definitions.yaml @@ -1,3 +1,6 @@ +## TODO: Currently, Halo does not support i18n for configuration file descriptions +## So Simplified Chinese is temporarily used as the default description language. + # TODO Remove the username-password-authenticator in the future. apiVersion: plugin.halo.run/v1alpha1 kind: ExtensionDefinition @@ -21,8 +24,8 @@ metadata: spec: className: run.halo.app.security.authentication.login.UsernamePasswordLogoutHandler extensionPointName: additional-webfilter - displayName: "UsernamePasswordLogoutHandler" - description: "Logout handler for username and password authentication." + displayName: "用户名密码注销处理器" + description: "用于用户名和密码认证的注销处理器" --- apiVersion: plugin.halo.run/v1alpha1 kind: ExtensionDefinition @@ -33,8 +36,8 @@ metadata: spec: className: run.halo.app.security.authentication.login.DelegatingLogoutPageGeneratingWebFilter extensionPointName: additional-webfilter - displayName: "DelegatingLogoutPageGeneratingWebFilter" - description: "Generates a default log out page." + displayName: "注销页面生成过滤器" + description: "用于生成默认的注销页面" --- apiVersion: plugin.halo.run/v1alpha1 @@ -44,8 +47,8 @@ metadata: spec: className: run.halo.app.notification.EmailNotifier extensionPointName: reactive-notifier - displayName: "EmailNotifier" - description: "Support sending notifications to users via email" + displayName: "邮件通知器" + description: "支持通过电子邮件向用户发送通知" --- apiVersion: plugin.halo.run/v1alpha1 @@ -55,7 +58,6 @@ metadata: spec: className: run.halo.app.search.lucene.LuceneSearchEngine extensionPointName: search-engine - displayName: Lucene Search Engine - description: | - Lucene is a high-performance, full-featured text search engine library written entirely in Java. - It is a technology suitable for nearly any application that requires full-text search, especially cross-platform. \ No newline at end of file + displayName: "Lucene 搜索引擎" + description: "Halo 自带的本地搜索引擎" + icon: /images/extension-points/lucene.png diff --git a/application/src/main/resources/extensions/extensionpoint-definitions.yaml b/application/src/main/resources/extensions/extensionpoint-definitions.yaml index ce5b838c29..98583bac8c 100644 --- a/application/src/main/resources/extensions/extensionpoint-definitions.yaml +++ b/application/src/main/resources/extensions/extensionpoint-definitions.yaml @@ -1,13 +1,15 @@ +## TODO: Currently, Halo does not support i18n for configuration file descriptions +## So Simplified Chinese is temporarily used as the default description language. + apiVersion: plugin.halo.run/v1alpha1 kind: ExtensionPointDefinition metadata: name: additional-webfilter spec: className: run.halo.app.security.AdditionalWebFilter - displayName: AdditionalWebFilter + displayName: "附加 Web 过滤器" type: MULTI_INSTANCE - description: "Contract for interception-style, chained processing of Web requests that may be used to - implement cross-cutting, application-agnostic requirements such as security, timeouts, and others." + description: "用于 Web 请求的链式处理,可以用来实现跨领域、与应用无关的需求,如安全性、超时等" --- apiVersion: plugin.halo.run/v1alpha1 @@ -16,9 +18,9 @@ metadata: name: reactive-post-content-handler spec: className: run.halo.app.theme.ReactivePostContentHandler - displayName: ReactivePostContentHandler + displayName: "文章内容处理器" type: MULTI_INSTANCE - description: "Provides a way to extend the post content to be displayed on the theme-side." + description: "扩展在主题侧显示的文章内容" --- apiVersion: plugin.halo.run/v1alpha1 @@ -27,9 +29,9 @@ metadata: name: reactive-singlepage-content-handler spec: className: run.halo.app.theme.ReactiveSinglePageContentHandler - displayName: ReactiveSinglePageContentHandler + displayName: "页面内容处理器" type: MULTI_INSTANCE - description: "Provides a way to extend the single page content to be displayed on the theme-side." + description: "扩展在主题侧显示的页面内容" --- apiVersion: plugin.halo.run/v1alpha1 @@ -38,9 +40,9 @@ metadata: name: comment-widget spec: className: run.halo.app.theme.dialect.CommentWidget - displayName: CommentWidget + displayName: "评论组件" type: SINGLETON - description: "Provides an extension point for the comment widget on the theme-side." + description: "扩展在文章页面中显示的评论组件" --- apiVersion: plugin.halo.run/v1alpha1 @@ -49,9 +51,9 @@ metadata: name: username-password-authentication-manager spec: className: run.halo.app.security.authentication.login.UsernamePasswordAuthenticationManager - displayName: Username password authentication manager + displayName: "用户名密码认证管理器" type: SINGLETON - description: "Provides a way to extend the username password authentication." + description: "扩展用户名密码认证" --- apiVersion: plugin.halo.run/v1alpha1 @@ -60,9 +62,9 @@ metadata: name: reactive-notifier spec: className: run.halo.app.notification.ReactiveNotifier - displayName: Notifier + displayName: "消息通知器" type: MULTI_INSTANCE - description: "Provides a way to extend the notifier to send notifications to users." + description: "扩展消息通知器,以向用户发送通知" --- apiVersion: plugin.halo.run/v1alpha1 @@ -71,6 +73,6 @@ metadata: name: search-engine spec: className: run.halo.app.search.SearchEngine - displayName: SearchEngine + displayName: "搜索引擎" type: SINGLETON - description: "Provides a way to extend the search engine." + description: "扩展内容搜索引擎" diff --git a/application/src/main/resources/static/images/extension-points/lucene.png b/application/src/main/resources/static/images/extension-points/lucene.png new file mode 100644 index 0000000000000000000000000000000000000000..718236e8587c5aee6a856647a1bdd9bceb8a3536 GIT binary patch literal 10005 zcmeHNc{mhm+aF6MN+D%8hGZMY7{-i!H};*BWj2g3ni=~RQMSqwS+f-)OCq}{*~(r> zmMB@WBti>)L!EOv-}`>=`-eXdj>_iReUd!viUPo_HYMm*4~d_>L~6olbb8 z$Q(ZD7mc7rc`7jvN7lCRgeaR-ob&SX`L+!?GRTgv6-ot#YJw6y?(eLvxbHl9IF|?) zc$eU+mmHFFX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