From da6f8f6be1d4a5ee680f8cf5687d793f7cea9345 Mon Sep 17 00:00:00 2001 From: SVE1R Date: Tue, 1 Jun 2021 07:03:43 +0800 Subject: [PATCH] Update Chinese translations (#279) * Add performance translation for Simplified Chinese * Add reverse_proxy translation for Simplified Chinese * Add security translation for Simplified Chinese * Add https translation for Traditionnal Chinese * Add performance translation for Traditionnal Chinese * Add reverse_proxy translation for Traditionnal Chinese * Add security translation for Simplified Chinese --- .../zh-cn/templates/global_sections/performance.js | 8 ++++---- .../templates/global_sections/reverse_proxy.js | 6 +++--- .../zh-cn/templates/global_sections/security.js | 2 +- .../i18n/zh-tw/templates/domain_sections/https.js | 14 +++++++------- .../zh-tw/templates/global_sections/performance.js | 6 +++--- .../templates/global_sections/reverse_proxy.js | 6 +++--- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js b/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js index 52d21cb..4fcb828 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/zh-cn/templates/global_sections/performance.js @@ -30,10 +30,10 @@ export default { gzipCompression: 'Gzip 压缩', enableGzipCompression: `${common.enable}Gzip压缩`, brotliCompression: 'Brotli 压缩', - enableBrotliCompression: `${common.enable}brotli压缩`, - brotliIsANonStandardModule: 'Brotli isn\'t a standard NGINX module, check the ', // TODO: translate - brotliGoogleNgxBrotliProject: 'Google ngx_brotli project', // TODO: translate - brotliForBuildingNginxWithBrotli: ' for how to build NGINX with Brotli!', // TODO: translate + enableBrotliCompression: `${common.enable} Brotli 压缩`, + brotliIsANonStandardModule: 'Brotli 并不是一个 standard NGINX 模块, 请查看 ', + brotliGoogleNgxBrotliProject: 'Google ngx_brotli 项目', + brotliForBuildingNginxWithBrotli: ' 以构建支持 Brotli 的 NGINX!', expirationForAssets: '资源有效期', expirationForMedia: '媒体资源有效期', expirationForSvgs: 'SVGs有效期', diff --git a/src/nginxconfig/i18n/zh-cn/templates/global_sections/reverse_proxy.js b/src/nginxconfig/i18n/zh-cn/templates/global_sections/reverse_proxy.js index da4967a..23491c0 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/global_sections/reverse_proxy.js +++ b/src/nginxconfig/i18n/zh-cn/templates/global_sections/reverse_proxy.js @@ -26,11 +26,11 @@ THE SOFTWARE. import common from '../../common'; -const legacyXForwarded = 'Legacy X-Forwarded-* headers'; // TODO: translate +const legacyXForwarded = '传统 X-Forwarded-* 请求头'; export default { reverseProxyMustBeEnabledOnOneSite: `必须在至少一个站点上启用${common.reverseProxy}才能配置全局${common.reverseProxy}设置。`, seconds: '秒', - passOn: `${legacyXForwarded} passed on`, // TODO: translate - remove: `${legacyXForwarded} actively removed`, // TODO: translate + passOn: `转发 ${legacyXForwarded}`, + remove: `自动删除 ${legacyXForwarded}`, }; diff --git a/src/nginxconfig/i18n/zh-cn/templates/global_sections/security.js b/src/nginxconfig/i18n/zh-cn/templates/global_sections/security.js index 6147f2c..4b2844d 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/global_sections/security.js +++ b/src/nginxconfig/i18n/zh-cn/templates/global_sections/security.js @@ -27,6 +27,6 @@ THE SOFTWARE. import common from '../../common'; export default { - whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `当使用${common.wordPress}时,, script-src 'self' 'unsafe-inline' 'unsafe-eval';经常需要在内容安全策略中,以允许管理面板的功能正确。`, + whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `当使用${common.wordPress}时,script-src 'self' 'unsafe-inline' 'unsafe-eval'; 通常需要置于内容安全策略中,以确保管理面板的正常运行。`, security: '安全', }; diff --git a/src/nginxconfig/i18n/zh-tw/templates/domain_sections/https.js b/src/nginxconfig/i18n/zh-tw/templates/domain_sections/https.js index 4c949f6..8b47140 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/domain_sections/https.js +++ b/src/nginxconfig/i18n/zh-tw/templates/domain_sections/https.js @@ -32,8 +32,8 @@ export default { enableHttp2Connections: `${common.enable} ${common.http}/2 連接`, http3: `${common.http}/3`, enableHttp3Connections: `${common.enable} ${common.http}/3 連接`, - portReuse: 'Reuseport', // TODO: translate - enableReuseOfPort: `${common.enable} reuseport to generate a listening socket per worker`, // TODO: translate + portReuse: '端口複用', + enableReuseOfPort: `${common.enable} 端口複用來為每個worker生成監聽套接字`, forceHttps: `強制 ${common.https}`, hsts: 'HSTS', enableStrictTransportSecurity: `${common.enable}HSTS(強制用戶端、瀏覽器等使用HTTPS與服務器創建連結),需要HTTPS連接`, @@ -42,9 +42,9 @@ export default { certificationType: '證書類型', customCertificate: '本地證書', letsEncryptEmail: `${common.letsEncrypt} 郵箱`, - http3IsANonStandardModule: 'HTTP/3 isn\'t a standard NGINX module, check the ', // TODO: translate - http3NginxQuicReadme: 'NGINX QUIC readme', // TODO: translate - http3OrThe: ' or the ', // TODO: translate - http3CloudflareQuicheProject: 'Cloudflare quiche project', // TODO: translate - http3ForBuildingNginxWithHttp3: ' for how to build NGINX with HTTP/3!', // TODO: translate + http3IsANonStandardModule: 'HTTP/3 並不是標準的 NGINX 模塊, 請查看 ', + http3NginxQuicReadme: 'NGINX QUIC 文檔', + http3OrThe: ' 或者 ', + http3CloudflareQuicheProject: 'Cloudflare quiche 項目', + http3ForBuildingNginxWithHttp3: ' 來構建支持 HTTP/3 的 NGINX !', }; diff --git a/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js b/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js index 94e38d7..d20f34b 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js +++ b/src/nginxconfig/i18n/zh-tw/templates/global_sections/performance.js @@ -31,9 +31,9 @@ export default { enableGzipCompression: `${common.enable}Gzip壓縮`, brotliCompression: 'Brotli 壓縮', enableBrotliCompression: `${common.enable}brotli壓縮`, - brotliIsANonStandardModule: 'Brotli isn\'t a standard NGINX module, check the ', // TODO: translate - brotliGoogleNgxBrotliProject: 'Google ngx_brotli project', // TODO: translate - brotliForBuildingNginxWithBrotli: ' for how to build NGINX with Brotli!', // TODO: translate + brotliIsANonStandardModule: 'Brotli 不是標準的 NGINX 模塊, 前往 ', + brotliGoogleNgxBrotliProject: 'Google ngx_brotli 項目', + brotliForBuildingNginxWithBrotli: ' 構建支持 Brotli 的 NGINX!', expirationForAssets: '資源有效期', expirationForMedia: '媒體資源有效期', expirationForSvgs: 'SVGs有效期', diff --git a/src/nginxconfig/i18n/zh-tw/templates/global_sections/reverse_proxy.js b/src/nginxconfig/i18n/zh-tw/templates/global_sections/reverse_proxy.js index b7954c5..ac1f4d7 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/global_sections/reverse_proxy.js +++ b/src/nginxconfig/i18n/zh-tw/templates/global_sections/reverse_proxy.js @@ -26,11 +26,11 @@ THE SOFTWARE. import common from '../../common'; -const legacyXForwarded = 'Legacy X-Forwarded-* headers'; // TODO: translate +const legacyXForwarded = '傳統 X-Forwarded-* 標頭'; export default { reverseProxyMustBeEnabledOnOneSite: `必須在至少一個網站上啟用${common.reverseProxy}才能配寘全域${common.reverseProxy}設定。`, seconds: '秒', - passOn: `${legacyXForwarded} passed on`, // TODO: translate - remove: `${legacyXForwarded} actively removed`, // TODO: translate + passOn: `轉發 ${legacyXForwarded} `, + remove: `主動刪除 ${legacyXForwarded}`, };