From 9b0a7dc4acf1625d5051b5c29cff6e1dc5bf3b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A8=98?= <61287199+moniang@users.noreply.github.com> Date: Wed, 30 Dec 2020 00:29:24 +0800 Subject: [PATCH] Translate missing Chinese strings (#205) * Translate the new phrase * Update src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js Co-authored-by: Matt (IPv4) Cowley --- src/nginxconfig/i18n/zh-cn/templates/app.js | 2 +- .../i18n/zh-cn/templates/domain_sections/routing.js | 4 ++-- .../i18n/zh-cn/templates/global_sections/docker.js | 8 ++++---- .../i18n/zh-cn/templates/setup_sections/go_live.js | 2 +- src/nginxconfig/i18n/zh-tw/templates/app.js | 2 +- .../i18n/zh-tw/templates/domain_sections/routing.js | 4 ++-- .../i18n/zh-tw/templates/global_sections/docker.js | 8 ++++---- .../i18n/zh-tw/templates/setup_sections/go_live.js | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/nginxconfig/i18n/zh-cn/templates/app.js b/src/nginxconfig/i18n/zh-cn/templates/app.js index 58f3e62..a823fc4 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/app.js +++ b/src/nginxconfig/i18n/zh-cn/templates/app.js @@ -32,7 +32,7 @@ export default { en: '英语', zhCN: '简体中文', zhTW: '繁体中文', - ptBR: 'Portuguese (brazilian)', // TODO: translate + ptBR: '葡萄牙语 (巴西)', singleColumnMode: '垂直模式', splitColumnMode: '水平模式', perWebsiteConfig: '站点配置', diff --git a/src/nginxconfig/i18n/zh-cn/templates/domain_sections/routing.js b/src/nginxconfig/i18n/zh-cn/templates/domain_sections/routing.js index 026926c..b2e90d5 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/domain_sections/routing.js +++ b/src/nginxconfig/i18n/zh-cn/templates/domain_sections/routing.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - fallbackRouting: '后备路由', - fallbackRoutingPhpPath: `后备路由${common.php}路径`, + fallbackRouting: '回调路由', + fallbackRoutingPhpPath: `回调路由${common.php}路径`, legacyPhpRouting: `传统${common.php}路由`, enableLegacyRouting: `${common.enable}传统路由`, routing: '路由设置', diff --git a/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js b/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js index d9cac35..fafa660 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js +++ b/src/nginxconfig/i18n/zh-cn/templates/global_sections/docker.js @@ -32,10 +32,10 @@ const dockerfile = 'Dockerfile'; export default { docker, dockerfile, - dockerCompose: `${docker} Compose`, // TODO: translate - applyDockerTweaks: `Apply ${docker} tweaks`, // TODO: translate - applyDockerTweaksForNginx: `Apply configuration tweaks for running ${common.nginx} with ${docker}`, // TODO: translate - applyDockerTweaksExplainer: `Updates the ${common.nginx} user to be nginx and the pid to /var/run/nginx.pid`, // TODO: translate + dockerCompose: `${docker} 编排服务`, + applyDockerTweaks: `应用${docker}调整`, + applyDockerTweaksForNginx: `为使用${docker}运行${common.nginx}进行配置调整。`, + applyDockerTweaksExplainer: `将${common.nginx}用户更新为nginx,将pid更新为/var/run/nginx.pid`, includeDockerfile: `生成${dockerfile}运行${common.nginx}与${docker}`, includeDockerCompose: `生成docker-compose.yaml来运行${common.nginx} docker-compose`, }; diff --git a/src/nginxconfig/i18n/zh-cn/templates/setup_sections/go_live.js b/src/nginxconfig/i18n/zh-cn/templates/setup_sections/go_live.js index 3407da8..433af61 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/setup_sections/go_live.js +++ b/src/nginxconfig/i18n/zh-cn/templates/setup_sections/go_live.js @@ -28,6 +28,6 @@ import common from '../../common'; export default { letsGoLive: '让我们开始吧!', - reloadNginxToLoadInYourNewConfiguration: `重新加载${common.nginx}以加载您的新配置:`, + reloadNginxToLoadInYourNewConfiguration: `重新加载${common.nginx}以载入新的配置:`, goLive: '上线!', }; diff --git a/src/nginxconfig/i18n/zh-tw/templates/app.js b/src/nginxconfig/i18n/zh-tw/templates/app.js index 346a15a..c244ec5 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/app.js +++ b/src/nginxconfig/i18n/zh-tw/templates/app.js @@ -32,7 +32,7 @@ export default { en: '英語', zhCN: '簡體中文', zhTW: '繁體中文', - ptBR: 'Portuguese (brazilian)', // TODO: translate + ptBR: '葡萄牙語(巴西)', singleColumnMode: '垂直模式', splitColumnMode: '水准模式', perWebsiteConfig: '網站配寘', diff --git a/src/nginxconfig/i18n/zh-tw/templates/domain_sections/routing.js b/src/nginxconfig/i18n/zh-tw/templates/domain_sections/routing.js index 1f31792..0b773e9 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/domain_sections/routing.js +++ b/src/nginxconfig/i18n/zh-tw/templates/domain_sections/routing.js @@ -27,8 +27,8 @@ THE SOFTWARE. import common from '../../common'; export default { - fallbackRouting: '後備路由', - fallbackRoutingPhpPath: `後備路由${common.php}路徑`, + fallbackRouting: '回調路由', + fallbackRoutingPhpPath: `回調路由${common.php}路徑`, legacyPhpRouting: `傳統${common.php}路由`, enableLegacyRouting: `${common.enable}傳統路由`, routing: '路由設定', diff --git a/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js b/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js index 92cc143..280f8aa 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js +++ b/src/nginxconfig/i18n/zh-tw/templates/global_sections/docker.js @@ -32,10 +32,10 @@ const dockerfile = 'Dockerfile'; export default { docker, dockerfile, - dockerCompose: `${docker} Compose`, // TODO: translate - applyDockerTweaks: `Apply ${docker} tweaks`, // TODO: translate - applyDockerTweaksForNginx: `Apply configuration tweaks for running ${common.nginx} with ${docker}`, // TODO: translate - applyDockerTweaksExplainer: `Updates the ${common.nginx} user to be nginx and the pid to /var/run/nginx.pid`, // TODO: translate + dockerCompose: `${docker} 編排服務`, + applyDockerTweaks: `應用${docker}調整`, + applyDockerTweaksForNginx: `為使用${docker}運行${common.nginx}進行配寘調整。`, + applyDockerTweaksExplainer: `將${common.nginx}用戶更新為nginx,將pid更新為/var/run/nginx.pid`, includeDockerfile: `生成${dockerfile}運行${common.nginx}與${docker}`, includeDockerCompose: `生成docker-compose.yaml來運行${common.nginx} docker-compose`, }; diff --git a/src/nginxconfig/i18n/zh-tw/templates/setup_sections/go_live.js b/src/nginxconfig/i18n/zh-tw/templates/setup_sections/go_live.js index 8a4f11b..52d1aff 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/setup_sections/go_live.js +++ b/src/nginxconfig/i18n/zh-tw/templates/setup_sections/go_live.js @@ -28,6 +28,6 @@ import common from '../../common'; export default { letsGoLive: '讓我們開始吧!', - reloadNginxToLoadInYourNewConfiguration: `重新加載${common.nginx}以加載您的新配寘:`, + reloadNginxToLoadInYourNewConfiguration: `重新加載${common.nginx}以載入新的配寘:`, goLive: '上線!', };