Translate some remnant partials for localization (#12239)
This commit is contained in:
parent
087a2884b3
commit
bef190960f
30
i18n/en.toml
30
i18n/en.toml
|
|
@ -1,5 +1,35 @@
|
|||
# i18n strings for the English (main) site.
|
||||
|
||||
[deprecation_warning]
|
||||
other = " documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see "
|
||||
|
||||
[objectives_heading]
|
||||
other = "Objectives"
|
||||
|
||||
[cleanup_heading]
|
||||
other = "Cleaning up"
|
||||
|
||||
[prerequisites_heading]
|
||||
other = "Before you begin"
|
||||
|
||||
[whatsnext_heading]
|
||||
other = "What's next"
|
||||
|
||||
[feedback_heading]
|
||||
other = "Feedback"
|
||||
|
||||
[feedback_question]
|
||||
other = "Was this page helpful?"
|
||||
|
||||
[feedback_yes]
|
||||
other = "Yes"
|
||||
|
||||
[feedback_no]
|
||||
other = "No"
|
||||
|
||||
[latest_version]
|
||||
other = "latest version."
|
||||
|
||||
[main_read_about]
|
||||
other = "Read about"
|
||||
|
||||
|
|
|
|||
30
i18n/zh.toml
30
i18n/zh.toml
|
|
@ -1,5 +1,35 @@
|
|||
# i18n strings for the Chinese version of the site (https://kubernetes.io/zh/)
|
||||
|
||||
[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 = "最新版本。"
|
||||
|
||||
[main_read_about]
|
||||
other = "Read about"
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@
|
|||
<main>
|
||||
<div class="content deprecation-warning">
|
||||
<h3>
|
||||
Documentation for Kubernetes {{ .Param "version" }} is no longer actively maintained. The version you are currently viewing is a static snapshot.
|
||||
For up-to-date documentation, see the <a href="{{ .Site.Params.currentUrl }}">latest</a> version.
|
||||
Kubernetes {{ .Param "version" }}
|
||||
{{ T "deprecation_warning" }}
|
||||
<a href="{{ .Site.Params.currentUrl }}">{{ T "latest_version" }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{{ if not .Params.hide_feedback }}
|
||||
<h2>Feedback</h2>
|
||||
<p class="feedback--prompt">Was this page helpful?</p>
|
||||
<button class="button feedback--yes">Yes</button>
|
||||
<button class="button feedback--no">No</button>
|
||||
<h2>{{ T "feedback_heading" }}</h2>
|
||||
<p class="feedback--prompt">{{ T "feedback_question" }} </p>
|
||||
<button class="button feedback--yes">{{ T "feedback_yes" }}</button>
|
||||
<button class="button feedback--no">{{ T "feedback_no" }}</button>
|
||||
<p class="feedback--response feedback--response__hidden">
|
||||
Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes,
|
||||
ask it on <a target="_blank" rel="noopener"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
{{ .ctx.Scratch.Set "blocks" slice }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "body" "purpose" "supplies the body of the page content.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" "What's next" "optional" true ) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" (i18n "whatsnext_heading") "optional" true ) }}
|
||||
|
||||
{{ partial "templates/blocks" . }}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "states, in one or two sentences, the purpose of this document") }}
|
||||
|
||||
{{ .ctx.Scratch.Set "blocks" slice }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "prerequisites" "heading" "Before you begin" "purpose" "lists action prerequisites and knowledge prerequisites.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "prerequisites" "heading" (i18n "prerequisites_heading") "purpose" "lists action prerequisites and knowledge prerequisites.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "steps" "purpose" "lists a sequence of numbered steps that accomplish the task.'") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "discussion" "optional" true ) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" "What's next" "optional" true ) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" (i18n "whatsnext_heading") "optional" true ) }}
|
||||
|
||||
{{ partial "templates/blocks" . }}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "states, in one or two sentences, the purpose of this document") }}
|
||||
|
||||
{{ .ctx.Scratch.Set "blocks" slice }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "objectives" "heading" "Objectives" "purpose" "lists the objectives for this tutorial.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "prerequisites" "heading" "Before you begin" "purpose" "lists action prerequisites and knowledge prerequisites.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "objectives" "heading" (i18n "objectives_heading") "purpose" "lists the objectives for this tutorial.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "prerequisites" "heading" (i18n "prerequisites_heading") "purpose" "lists action prerequisites and knowledge prerequisites.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "lessoncontent" "purpose" "provides the lesson content for this tutorial.") }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "content" .page.Content) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "cleanup" "heading" "Cleaning up" "optional" true ) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" "What's next" "optional" true ) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "cleanup" "heading" (i18n "cleanup_heading") "optional" true ) }}
|
||||
{{ .ctx.Scratch.Add "blocks" (dict "page" .page "block" "whatsnext" "heading" (i18n "whatsnext_heading") "optional" true ) }}
|
||||
|
||||
{{ partial "templates/blocks" . }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue