Skip to content

Commit

Permalink
Update Chinese translations (digitalocean#279)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sve1r authored May 31, 2021
1 parent 1565760 commit da6f8f6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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有效期',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
};
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ THE SOFTWARE.
import common from '../../common';

export default {
whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `当使用${common.wordPress}时,, <code class="slim">script-src 'self' 'unsafe-inline' 'unsafe-eval';</code>经常需要在内容安全策略中,以允许管理面板的功能正确。`,
whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `当使用${common.wordPress}时,<code class="slim">script-src 'self' 'unsafe-inline' 'unsafe-eval';</code> 通常需要置于内容安全策略中,以确保管理面板的正常运行。`,
security: '安全',
};
14 changes: 7 additions & 7 deletions src/nginxconfig/i18n/zh-tw/templates/domain_sections/https.js
Original file line number Diff line number Diff line change
Expand Up @@ -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連接`,
Expand All @@ -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 !',
};
Original file line number Diff line number Diff line change
Expand Up @@ -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有效期',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
};

0 comments on commit da6f8f6

Please sign in to comment.