From 5f75f6e3beb7354d0ac2e96ce81e5cb70ba78ff8 Mon Sep 17 00:00:00 2001 From: JimMoen Date: Fri, 29 Apr 2022 12:46:56 +0800 Subject: [PATCH] docs: refine auth http i18n description --- .../emqx_authn/i18n/emqx_authn_http_i18n.conf | 30 ++++++++-------- .../i18n/emqx_authz_api_schema_i18n.conf | 10 +++--- .../i18n/emqx_authz_schema_i18n.conf | 34 +++++++++---------- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/apps/emqx_authn/i18n/emqx_authn_http_i18n.conf b/apps/emqx_authn/i18n/emqx_authn_http_i18n.conf index 35a5b4973..129db5054 100644 --- a/apps/emqx_authn/i18n/emqx_authn_http_i18n.conf +++ b/apps/emqx_authn/i18n/emqx_authn_http_i18n.conf @@ -18,7 +18,7 @@ emqx_authn_http { en: """HTTP request method.""" zh: """HTTP 请求方法。""" } - label: { + label { en: """Request Method""" zh: """请求方法""" } @@ -27,9 +27,9 @@ emqx_authn_http { url { desc { en: """URL of the HTTP server.""" - zh: """HTTP 服务器地址。""" + zh: """认证 HTTP 服务器地址。""" } - label: { + label { en: """URL""" zh: """URL""" } @@ -37,23 +37,23 @@ emqx_authn_http { headers { desc { - en: """HTTP request headers.""" - zh: """HTTP request headers。""" + en: """List of HTTP Headers.""" + zh: """HTTP Headers 列表""" } - label: { - en: """Request Headers""" - zh: """Request Headers""" + label { + en: """Headers""" + zh: """请求头""" } } headers_no_content_type { desc { - en: """HTTP request headers (without content-type).""" - zh: """HTTP request headers(无 content-type)。""" + en: """List of HTTP headers (without content-type).""" + zh: """HTTP Headers 列表 (无 content-type) 。""" } - label: { - en: """Request Headers""" - zh: """Request Headers""" + label { + en: """headers_no_content_type""" + zh: """请求头(无 content-type)""" } } @@ -62,7 +62,7 @@ emqx_authn_http { en: """HTTP request body.""" zh: """HTTP request body。""" } - label: { + label { en: """Request Body""" zh: """Request Body""" } @@ -73,7 +73,7 @@ emqx_authn_http { en: """HTTP request timeout.""" zh: """HTTP 请求超时时长。""" } - label: { + label { en: """Request Timeout""" zh: """请求超时时间""" } diff --git a/apps/emqx_authz/i18n/emqx_authz_api_schema_i18n.conf b/apps/emqx_authz/i18n/emqx_authz_api_schema_i18n.conf index d5c86ba59..6d2c66b79 100644 --- a/apps/emqx_authz/i18n/emqx_authz_api_schema_i18n.conf +++ b/apps/emqx_authz/i18n/emqx_authz_api_schema_i18n.conf @@ -60,19 +60,19 @@ emqx_authz_api_schema { headers { desc { - en: """List of HTTP headers.""" - zh: """""" + en: """List of HTTP Headers.""" + zh: """HTTP Headers 列表""" } label { - en: """headers""" + en: """Headers""" zh: """请求头""" } } headers_no_content_type { desc { - en: """List of HTTP headers (without `content_type`).""" - zh: """""" + en: """List of HTTP headers (without content-type).""" + zh: """HTTP Headers 列表(无 content-type)""" } label { en: """headers_no_content_type""" diff --git a/apps/emqx_authz/i18n/emqx_authz_schema_i18n.conf b/apps/emqx_authz/i18n/emqx_authz_schema_i18n.conf index 490d22fd8..027384c98 100644 --- a/apps/emqx_authz/i18n/emqx_authz_schema_i18n.conf +++ b/apps/emqx_authz/i18n/emqx_authz_schema_i18n.conf @@ -122,7 +122,7 @@ and the new rules will override all rules from the old config file. http_get { desc { en: """Authorization using an external HTTP server (via GET requests).""" - zh: """使用外部 HTTP 服务器鉴权(GET 请求).""" + zh: """使用外部 HTTP 服务器鉴权(GET 请求)。""" } label { en: """http_get""" @@ -133,7 +133,7 @@ and the new rules will override all rules from the old config file. http_post { desc { en: """Authorization using an external HTTP server (via POST requests).""" - zh: """使用外部 HTTP 服务器鉴权(POST 请求).""" + zh: """使用外部 HTTP 服务器鉴权(POST 请求)。""" } label { en: """http_post""" @@ -155,29 +155,29 @@ and the new rules will override all rules from the old config file. url { desc { en: """URL of the auth server.""" - zh: """认证服务器 URL""" + zh: """鉴权 HTTP 服务器地址。""" } label { - en: """url""" - zh: """url""" + en: """URL""" + zh: """URL""" } } headers { desc { - en: """List of HTTP headers.""" - zh: """""" + en: """List of HTTP Headers.""" + zh: """HTTP Headers 列表""" } label { - en: """headers""" + en: """Headers""" zh: """请求头""" } } headers_no_content_type { desc { - en: """List of HTTP headers (without `content_type`).""" - zh: """""" + en: """List of HTTP headers (without content-type).""" + zh: """HTTP Headers 列表 (无 content-type) 。""" } label { en: """headers_no_content_type""" @@ -188,22 +188,22 @@ and the new rules will override all rules from the old config file. body { desc { en: """HTTP request body.""" - zh: """HTTP 请求体""" + zh: """HTTP request body。""" } label { - en: """body""" - zh: """请求体""" + en: """Request Body""" + zh: """Request Body""" } } request_timeout { desc { - en: """Request timeout.""" - zh: """请求超时时间""" + en: """HTTP request timeout.""" + zh: """HTTP 请求超时时长。""" } label { - en: """request_timeout""" - zh: """请求超时""" + en: """Request Timeout""" + zh: """请求超时时间""" } }