refactor: translate extension point descriptions to simplified chinese (#6190)

#### 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
```
pull/6201/head
Ryan Wang 2024-06-28 12:08:57 +08:00 committed by GitHub
parent f936e131c4
commit 2ed117042a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 29 additions and 25 deletions

View File

@ -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.
displayName: "Lucene 搜索引擎"
description: "Halo 自带的本地搜索引擎"
icon: /images/extension-points/lucene.png

View File

@ -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: "扩展内容搜索引擎"

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB