mirror of https://github.com/halo-dev/halo
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
parent
f936e131c4
commit
2ed117042a
|
@ -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.
|
# TODO Remove the username-password-authenticator in the future.
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
kind: ExtensionDefinition
|
kind: ExtensionDefinition
|
||||||
|
@ -21,8 +24,8 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.security.authentication.login.UsernamePasswordLogoutHandler
|
className: run.halo.app.security.authentication.login.UsernamePasswordLogoutHandler
|
||||||
extensionPointName: additional-webfilter
|
extensionPointName: additional-webfilter
|
||||||
displayName: "UsernamePasswordLogoutHandler"
|
displayName: "用户名密码注销处理器"
|
||||||
description: "Logout handler for username and password authentication."
|
description: "用于用户名和密码认证的注销处理器"
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
kind: ExtensionDefinition
|
kind: ExtensionDefinition
|
||||||
|
@ -33,8 +36,8 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.security.authentication.login.DelegatingLogoutPageGeneratingWebFilter
|
className: run.halo.app.security.authentication.login.DelegatingLogoutPageGeneratingWebFilter
|
||||||
extensionPointName: additional-webfilter
|
extensionPointName: additional-webfilter
|
||||||
displayName: "DelegatingLogoutPageGeneratingWebFilter"
|
displayName: "注销页面生成过滤器"
|
||||||
description: "Generates a default log out page."
|
description: "用于生成默认的注销页面"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -44,8 +47,8 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.notification.EmailNotifier
|
className: run.halo.app.notification.EmailNotifier
|
||||||
extensionPointName: reactive-notifier
|
extensionPointName: reactive-notifier
|
||||||
displayName: "EmailNotifier"
|
displayName: "邮件通知器"
|
||||||
description: "Support sending notifications to users via email"
|
description: "支持通过电子邮件向用户发送通知"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -55,7 +58,6 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.search.lucene.LuceneSearchEngine
|
className: run.halo.app.search.lucene.LuceneSearchEngine
|
||||||
extensionPointName: search-engine
|
extensionPointName: search-engine
|
||||||
displayName: Lucene Search Engine
|
displayName: "Lucene 搜索引擎"
|
||||||
description: |
|
description: "Halo 自带的本地搜索引擎"
|
||||||
Lucene is a high-performance, full-featured text search engine library written entirely in Java.
|
icon: /images/extension-points/lucene.png
|
||||||
It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
|
|
||||||
|
|
|
@ -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
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
kind: ExtensionPointDefinition
|
kind: ExtensionPointDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: additional-webfilter
|
name: additional-webfilter
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.security.AdditionalWebFilter
|
className: run.halo.app.security.AdditionalWebFilter
|
||||||
displayName: AdditionalWebFilter
|
displayName: "附加 Web 过滤器"
|
||||||
type: MULTI_INSTANCE
|
type: MULTI_INSTANCE
|
||||||
description: "Contract for interception-style, chained processing of Web requests that may be used to
|
description: "用于 Web 请求的链式处理,可以用来实现跨领域、与应用无关的需求,如安全性、超时等"
|
||||||
implement cross-cutting, application-agnostic requirements such as security, timeouts, and others."
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -16,9 +18,9 @@ metadata:
|
||||||
name: reactive-post-content-handler
|
name: reactive-post-content-handler
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.theme.ReactivePostContentHandler
|
className: run.halo.app.theme.ReactivePostContentHandler
|
||||||
displayName: ReactivePostContentHandler
|
displayName: "文章内容处理器"
|
||||||
type: MULTI_INSTANCE
|
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
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -27,9 +29,9 @@ metadata:
|
||||||
name: reactive-singlepage-content-handler
|
name: reactive-singlepage-content-handler
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.theme.ReactiveSinglePageContentHandler
|
className: run.halo.app.theme.ReactiveSinglePageContentHandler
|
||||||
displayName: ReactiveSinglePageContentHandler
|
displayName: "页面内容处理器"
|
||||||
type: MULTI_INSTANCE
|
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
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -38,9 +40,9 @@ metadata:
|
||||||
name: comment-widget
|
name: comment-widget
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.theme.dialect.CommentWidget
|
className: run.halo.app.theme.dialect.CommentWidget
|
||||||
displayName: CommentWidget
|
displayName: "评论组件"
|
||||||
type: SINGLETON
|
type: SINGLETON
|
||||||
description: "Provides an extension point for the comment widget on the theme-side."
|
description: "扩展在文章页面中显示的评论组件"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -49,9 +51,9 @@ metadata:
|
||||||
name: username-password-authentication-manager
|
name: username-password-authentication-manager
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.security.authentication.login.UsernamePasswordAuthenticationManager
|
className: run.halo.app.security.authentication.login.UsernamePasswordAuthenticationManager
|
||||||
displayName: Username password authentication manager
|
displayName: "用户名密码认证管理器"
|
||||||
type: SINGLETON
|
type: SINGLETON
|
||||||
description: "Provides a way to extend the username password authentication."
|
description: "扩展用户名密码认证"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -60,9 +62,9 @@ metadata:
|
||||||
name: reactive-notifier
|
name: reactive-notifier
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.notification.ReactiveNotifier
|
className: run.halo.app.notification.ReactiveNotifier
|
||||||
displayName: Notifier
|
displayName: "消息通知器"
|
||||||
type: MULTI_INSTANCE
|
type: MULTI_INSTANCE
|
||||||
description: "Provides a way to extend the notifier to send notifications to users."
|
description: "扩展消息通知器,以向用户发送通知"
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: plugin.halo.run/v1alpha1
|
apiVersion: plugin.halo.run/v1alpha1
|
||||||
|
@ -71,6 +73,6 @@ metadata:
|
||||||
name: search-engine
|
name: search-engine
|
||||||
spec:
|
spec:
|
||||||
className: run.halo.app.search.SearchEngine
|
className: run.halo.app.search.SearchEngine
|
||||||
displayName: SearchEngine
|
displayName: "搜索引擎"
|
||||||
type: SINGLETON
|
type: SINGLETON
|
||||||
description: "Provides a way to extend the search engine."
|
description: "扩展内容搜索引擎"
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 9.8 KiB |
Loading…
Reference in New Issue