From bdd953f0d3d98ad814de7ea4e073fe1e43441d29 Mon Sep 17 00:00:00 2001 From: Seokho Date: Fri, 15 Feb 2019 10:32:53 +0900 Subject: [PATCH] Substitute en.toml for pedefined english shortcodes (#12418) Rev Substitute en.toml for pedefined english shortcodes Remove prefix Substitute en.toml for pedefined english shortcodes Rev minor Substitute en.toml for pedefined english shortcodes --- i18n/en.toml | 18 ++++++++ i18n/ko.toml | 48 ++++++++++++++++++++++ layouts/shortcodes/caution.html | 4 +- layouts/shortcodes/deprecationwarning.html | 5 ++- layouts/shortcodes/note.html | 2 +- layouts/shortcodes/version-check.html | 6 +-- layouts/shortcodes/warning.html | 2 +- 7 files changed, 76 insertions(+), 9 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index af47e8cb97..63f7cb7d1f 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -30,6 +30,24 @@ other = "No" [latest_version] other = "latest version." +[version_check_mustbe] +other = "Your Kubernetes server must be version " + +[version_check_mustbeorlater] +other = "Your Kubernetes server must be at or later than version " + +[version_check_tocheck] +other = "To check the version, enter " + +[caution] +other = "Caution:" + +[note] +other = "Note:" + +[warning] +other = "Warning:" + [main_read_about] other = "Read about" diff --git a/i18n/ko.toml b/i18n/ko.toml index 8a4c73197a..556256fab5 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -1,5 +1,53 @@ # i18n strings for the Korean translation. +[deprecation_warning] +other = " 문서는 더 이상 적극적으로 관리되지 않음. 현재 보고있는 문서는 정적 스냅샷임. 최신 문서를 위해서는, 다음을 참고. " + +[objectives_heading] +other = "목적" + +[cleanup_heading] +other = "정리하기" + +[prerequisites_heading] +other = "시작하기 전에" + +[whatsnext_heading] +other = "다음 내용" + +[feedback_heading] +other = "피드백" + +[feedback_question] +other = "이 페이지가 도움이 되었나요?" + +[feedback_yes] +other = "네" + +[feedback_no] +other = "아니요" + +[latest_version] +other = "최신 버전." + +[version_check_mustbe] +other = "쿠버네티스 서버의 버전은 다음과 같아야 함. 버전: " + +[version_check_mustbeorlater] +other = "쿠버네티스 서버의 버전은 다음과 같거나 더 높아야 함. 버전: " + +[version_check_tocheck] +other = "버전 확인을 위해서, 다음 커맨드를 실행 " + +[caution] +other = "주의:" + +[note] +other = "참고:" + +[warning] +other = "경고:" + [main_read_about] other = "Read about" diff --git a/layouts/shortcodes/caution.html b/layouts/shortcodes/caution.html index f31d09a273..c23c1d9f19 100644 --- a/layouts/shortcodes/caution.html +++ b/layouts/shortcodes/caution.html @@ -1,3 +1,3 @@
-
Caution: {{ .Inner | markdownify }}
-
\ No newline at end of file +
{{ T "caution" }} {{ .Inner | markdownify }}
+ diff --git a/layouts/shortcodes/deprecationwarning.html b/layouts/shortcodes/deprecationwarning.html index 2a9d2e083e..e7812ec916 100644 --- a/layouts/shortcodes/deprecationwarning.html +++ b/layouts/shortcodes/deprecationwarning.html @@ -3,8 +3,9 @@

- Documentation for Kubernetes {{ .Page.Param "version" }} is no longer actively maintained. The version you are currently viewing is a static snapshot. - For up-to-date documentation, see the latest version. + Kubernetes {{ .Param "version" }} + {{ T "deprecation_warning" }} + {{ T "latest_version" }}

diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 745ef5e6b3..c156e8489d 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,3 +1,3 @@
-
Note: {{ .Inner | markdownify }}
+
{{ T "note" }} {{ .Inner | markdownify }}
diff --git a/layouts/shortcodes/version-check.html b/layouts/shortcodes/version-check.html index 979268bf57..55f6754c11 100644 --- a/layouts/shortcodes/version-check.html +++ b/layouts/shortcodes/version-check.html @@ -1,6 +1,6 @@ {{ $minVersion := .Page.Param "min-kubernetes-server-version" }} {{ if eq $minVersion (.Page.Param "version") }} -Your Kubernetes server must be version {{ $minVersion }}. +{{ T "version_check_mustbe" }}{{ $minVersion }}. {{ else if $minVersion}} -Your Kubernetes server must be version {{ $minVersion }} or later. -{{ end }} To check the version, enter kubectl version. +{{ T "version_check_mustbeorlater" }}{{ $minVersion }}. +{{ end }} {{ T "version_check_tocheck" }}kubectl version. diff --git a/layouts/shortcodes/warning.html b/layouts/shortcodes/warning.html index b90f76d49c..d91f429646 100644 --- a/layouts/shortcodes/warning.html +++ b/layouts/shortcodes/warning.html @@ -1,3 +1,3 @@
-
Warning: {{ .Inner | markdownify }}
+
{{ T "warning" }} {{ .Inner | markdownify }}