Просмотр исходного кода

docs: refine auth http i18n description

JimMoen 3 лет назад
Родитель
Сommit
5f75f6e3be

+ 15 - 15
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 <code>content-type</code>)."""
-      zh: """HTTP request headers(无 <code>content-type</code>)。"""
+      en: """List of HTTP headers (without <code>content-type</code>)."""
+      zh: """HTTP Headers 列表 (无 <code>content-type</code>) 。"""
     }
-    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: """请求超时时间"""
     }

+ 5 - 5
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 <code>content-type</code>)."""
+      zh: """HTTP Headers 列表(无 <code>content-type</code>)"""
     }
     label {
       en: """headers_no_content_type"""

+ 17 - 17
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 <code>content-type</code>)."""
+      zh: """HTTP Headers 列表 (无 <code>content-type</code>) 。"""
     }
     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: """请求超时时间"""
     }
   }