Skip to content

Commit f0ccbff

Browse files
committed
[zh]Update other pages for links with '/zh/' prefix, using new prefix '/zh-cn/'
1 parent d16f4da commit f0ccbff

13 files changed

Lines changed: 40 additions & 40 deletions

File tree

content/en/blog/_posts/2019-04-26-latest-on-localization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2019-04-26
88

99
Last year we optimized the Kubernetes website for [hosting multilingual content](/blog/2018/11/08/kubernetes-docs-updates-international-edition/). Contributors responded by adding multiple new localizations: as of April 2019, Kubernetes docs are partially available in nine different languages, with six added in 2019 alone. You can see a list of available languages in the language selector at the top of each page.
1010

11-
By _partially available_, I mean that localizations are ongoing projects. They range from mostly complete ([Chinese docs for 1.12](https://v1-12.docs.kubernetes.io/zh/)) to brand new (1.14 docs in [Portuguese](https://kubernetes.io/pt/)). If you're interested in helping an existing localization, read on!
11+
By _partially available_, I mean that localizations are ongoing projects. They range from mostly complete ([Chinese docs for 1.12](https://v1-12.docs.kubernetes.io/zh-cn/)) to brand new (1.14 docs in [Portuguese](https://kubernetes.io/pt/)). If you're interested in helping an existing localization, read on!
1212

1313
## What is a localization?
1414

content/zh-cn/docs/home/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ overview:
6262
# title: K8s Release Notes
6363
# description: If you are installing Kubernetes or upgrading to the newest version, refer to the current release notes.
6464
# button: "Download Kubernetes"
65-
# button_path: "/zh/docs/setup/release/notes"
65+
# button_path: "/zh-cn/docs/setup/release/notes"
6666
# - name: about
6767
# title: About the documentation
6868
# description: This website contains documentation for the current and previous 4 versions of Kubernetes.
@@ -71,37 +71,37 @@ cards:
7171
title: "了解 Kubernetes"
7272
description: "了解 Kubernetes 和其基础概念。"
7373
button: "查看概念"
74-
button_path: "/zh/docs/concepts"
74+
button_path: "/zh-cn/docs/concepts"
7575
- name: tutorials
7676
title: "尝试 Kubernetes"
7777
description: "按照教程学习如何在 Kubernetes 上部署应用。"
7878
button: "查看教程"
79-
button_path: "/zh/docs/tutorials"
79+
button_path: "/zh-cn/docs/tutorials"
8080
- name: setup
8181
title: "设置 K8s 集群"
8282
description: "按照你的资源情况和需求运行 Kubernetes。"
8383
button: "设置 Kubernetes"
84-
button_path: "/zh/docs/setup"
84+
button_path: "/zh-cn/docs/setup"
8585
- name: tasks
8686
title: "了解如何使用 Kubernetes"
8787
description: "查看常见任务以及如何使用简单步骤执行它们。"
8888
button: "查看任务"
89-
button_path: "/zh/docs/tasks"
89+
button_path: "/zh-cn/docs/tasks"
9090
- name: training
9191
title: "培训"
9292
description: "通过 Kubernetes 认证,助你的云原生项目成功!"
9393
button: "查看培训"
94-
button_path: "/zh/training"
94+
button_path: "/zh-cn/training"
9595
- name: reference
9696
title: 查阅参考信息
9797
description: 浏览术语、命令行语法、API 资源类型和安装工具文档。
9898
button: 查看参考
99-
button_path: /zh/docs/reference
99+
button_path: /zh-cn/docs/reference
100100
- name: contribute
101101
title: 为文档作贡献
102102
description: 任何人,无论对该项目熟悉与否,都能贡献自己的力量。
103103
button: 为文档作贡献
104-
button_path: /zh/docs/contribute
104+
button_path: /zh-cn/docs/contribute
105105
- name: release-notes
106106
title: K8s 发布说明
107107
description: 如果你正在安装或升级 Kubernetes,最好参考最新的发布说明。

content/zh-cn/docs/home/supported-doc-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ which versions of Kubernetes are officially supported, and for how long.
3131
本网站包含当前版本和之前四个版本的 Kubernetes 文档。
3232

3333
Kubernetes 版本的文档可用性与当前是否支持该版本是分开的。
34-
阅读[支持期限](/zh/releases/patch-releases/#support-period),了解官方支持 Kubernetes 的哪些版本,以及支持多长时间。
34+
阅读[支持期限](/zh-cn/releases/patch-releases/#support-period),了解官方支持 Kubernetes 的哪些版本,以及支持多长时间。

content/zh-cn/docs/test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,10 @@ You can also use HTML, but it is not preferred.
503503

504504
- 指向 Kubernetes 文档的站内链接,需要在英文链接之前添加前缀 `/zh`
505505
例如,原链接目标为 `/docs/foo/bar` 时,译文中的链接目标应为
506-
`/zh/docs/foo/bar`。例如:
506+
`/zh-cn/docs/foo/bar`。例如:
507507

508508
- 英文版本链接 [Kubernetes Components](/docs/concepts/overview/components/)
509-
- 对应中文链接 [Kubernetes 组件](/zh/docs/concepts/overview/components/)
509+
- 对应中文链接 [Kubernetes 组件](/zh-cn/docs/concepts/overview/components/)
510510

511511
- 英文页面子标题会生成对应锚点(Anchor),例如子标题 `## Using object` 会生成
512512
对应标签 `#using-objects`。在翻译为中文之后,对应锚点可能会失效。对此,有

content/zh-cn/includes/default-storage-class-prereqs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
你需要有一个带有默认 [StorageClass](/zh/docs/concepts/storage/storage-classes/)
2-
[动态 PersistentVolume 供应程序](/zh/docs/concepts/storage/dynamic-provisioning/)
3-
或者自己[静态的提供 PersistentVolume](/zh/docs/concepts/storage/persistent-volumes/#provisioning)
4-
来满足这里使用的 [PersistentVolumeClaim](/zh/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)
1+
你需要有一个带有默认 [StorageClass](/zh-cn/docs/concepts/storage/storage-classes/)
2+
[动态 PersistentVolume 供应程序](/zh-cn/docs/concepts/storage/dynamic-provisioning/)
3+
或者自己[静态的提供 PersistentVolume](/zh-cn/docs/concepts/storage/persistent-volumes/#provisioning)
4+
来满足这里使用的 [PersistentVolumeClaim](/zh-cn/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)
55

66
<!--
77
You need to either have a [dynamic PersistentVolume provisioner](/docs/concepts/storage/dynamic-provisioning/) with a default

content/zh-cn/includes/user-guide-content-moved.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ The topics in the [User Guide](/docs/user-guide/) section of the Kubernetes docs
33
are being moved to the [Tasks](/docs/tasks/), [Tutorials](/docs/tutorials/), and
44
[Concepts](/docs/concepts) sections. The content in this topic has moved to:
55
-->
6-
Kubernetes文档中[用户指南](/zh/docs/user-guide/)部分中的主题被移动到
7-
[任务](/zh/docs/tasks/)[教程](/zh/docs/tutorials/)[概念](/zh/docs/concepts)节。
6+
Kubernetes文档中[用户指南](/zh-cn/docs/user-guide/)部分中的主题被移动到
7+
[任务](/zh-cn/docs/tasks/)[教程](/zh-cn/docs/tutorials/)[概念](/zh-cn/docs/concepts)节。
88
本主题内容已移至:

content/zh-cn/releases/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: docs
1616
The Kubernetes project maintains release branches for the most recent three minor releases ({{< skew currentVersion >}}, {{< skew currentVersionAddMinor -1 >}}, {{< skew currentVersionAddMinor -2 >}}). Kubernetes 1.19 and newer receive [approximately 1 year of patch support](/releases/patch-releases/#support-period). Kubernetes 1.18 and older received approximately 9 months of patch support.
1717
-->
1818
Kubernetes 项目维护最近三个次要版本({{< skew currentVersion >}}、{{< skew currentVersionAddMinor -1 >}}、{{< skew currentVersionAddMinor -2 >}})的发布分支。
19-
Kubernetes 1.19 和更新版本获得[大约 1 年的补丁支持](/zh/releases/patch-releases/#support-period)
19+
Kubernetes 1.19 和更新版本获得[大约 1 年的补丁支持](/zh-cn/releases/patch-releases/#support-period)
2020
Kubernetes 1.18 及更早版本获得了大约 9 个月的补丁支持周期。
2121

2222
<!--
@@ -28,7 +28,7 @@ More information in the [version skew policy](/releases/version-skew-policy/) do
2828
Kubernetes 版本表示为 **x.y.z**
2929
其中 **x** 是主要版本,**y** 是次要版本,**z** 是补丁版本,遵循[语义版本控制](https://semver.org/)术语。
3030

31-
更多信息在[版本偏差策略](/zh/releases/version-skew-policy/)文档中。
31+
更多信息在[版本偏差策略](/zh-cn/releases/version-skew-policy/)文档中。
3232

3333
<!-- body -->
3434

content/zh-cn/releases/download.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ To manually verify signed container images of Kubernetes core components, refer
119119
-->
120120
对于 Kubernetes v{{< skew currentVersion >}},唯一可以验证完整性的代码工件就是容器镜像,它使用实验性签名支持。
121121

122-
如需手动验证 Kubernetes 核心组件的签名容器镜像,请参考[验证签名容器镜像](/zh/docs/tasks/administer-cluster/verify-signed-images)
122+
如需手动验证 Kubernetes 核心组件的签名容器镜像,请参考[验证签名容器镜像](/zh-cn/docs/tasks/administer-cluster/verify-signed-images)
123123

124124
<!--
125125
## Binaries
@@ -146,11 +146,11 @@ You can use kubectl to deploy applications, inspect and manage cluster resources
146146
and view logs. For more information including a complete list of kubectl operations, see the
147147
[`kubectl` reference documentation](/docs/reference/kubectl/).
148148
-->
149-
Kubernetes 命令行工具 [kubectl](/zh/docs/reference/kubectl/kubectl/) 允许你对 Kubernetes 集群执行命令。
149+
Kubernetes 命令行工具 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 允许你对 Kubernetes 集群执行命令。
150150

151151
你可以使用 kubectl 部署应用程序、检查和管理集群资源以及查看日志。
152152
有关更多信息,包括 kubectl 操作的完整列表,请参阅
153-
[`kubectl` 参考文档](/zh/docs/reference/kubectl/)
153+
[`kubectl` 参考文档](/zh-cn/docs/reference/kubectl/)
154154

155155
<!--
156156
kubectl is installable on a variety of Linux platforms, macOS and Windows.
@@ -163,6 +163,6 @@ Find your preferred operating system below.
163163
kubectl 可安装在各种 Linux 平台、macOS 和 Windows 上。
164164
在下方找到你首选的操作系统。
165165

166-
- [在 Linux 上安装 kubectl](/zh/docs/tasks/tools/install-kubectl-linux)
167-
- [在 macOS 上安装 kubectl](/zh/docs/tasks/tools/install-kubectl-macos)
168-
- [在 Windows 上安装 kubectl](/zh/docs/tasks/tools/install-kubectl-windows)
166+
- [在 Linux 上安装 kubectl](/zh-cn/docs/tasks/tools/install-kubectl-linux)
167+
- [在 macOS 上安装 kubectl](/zh-cn/docs/tasks/tools/install-kubectl-macos)
168+
- [在 Windows 上安装 kubectl](/zh-cn/docs/tasks/tools/install-kubectl-windows)

content/zh-cn/releases/version-skew-policy.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ For more information, see the Kubernetes [patch releases](/releases/patch-releas
5858
适当的修复,包括安全问题修复,可能会被后沿三个发布分支,具体取决于问题的严重性和可行性。
5959
补丁版本按[常规节奏](https://kubernetes.io/releases/patch-releases/#cadence)从这些分支中删除,并在需要时增加额外的紧急版本。
6060

61-
[发布管理员](/zh/releases/release-managers/)小组拥有这件事的决定权。
61+
[发布管理员](/zh-cn/releases/release-managers/)小组拥有这件事的决定权。
6262

63-
有关更多信息,请参阅 Kubernetes [补丁发布](/zh/releases/patch-releases/)页面。
63+
有关更多信息,请参阅 Kubernetes [补丁发布](/zh-cn/releases/patch-releases/)页面。
6464

6565
<!--
6666
## Supported version skew
@@ -78,7 +78,7 @@ Example:
7878

7979
### kube-apiserver {#kube-apiserver}
8080

81-
[高可用性(HA)集群](/zh/docs/setup/production-environment/tools/kubeadm/high-availability/)中,
81+
[高可用性(HA)集群](/zh-cn/docs/setup/production-environment/tools/kubeadm/high-availability/)中,
8282
最新版和最老版的 `kube-apiserver` 实例版本偏差最多为一个次要版本。
8383

8484
例如:
@@ -255,7 +255,7 @@ Pre-requisites:
255255
* 已注册的 admission webhook 能够处理新的 `kube-apiserver` 实例将发送给他们的数据:
256256
* `ValidatingWebhookConfiguration``MutatingWebhookConfiguration`
257257
对象已更新以包含 **{{< skew currentVersion >}}** 中添加的任何新版本的 REST 资源
258-
(或使用 v1.15+ 中可用的 [`matchPolicy: Equivalent` 选项](/zh/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-matchpolicy)
258+
(或使用 v1.15+ 中可用的 [`matchPolicy: Equivalent` 选项](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-matchpolicy)
259259
* webhook 能够处理将发送给它们的任何新版本的 REST 资源,
260260
以及添加到 **{{< skew currentVersion >}}** 中现有版本的任何新字段
261261

@@ -270,7 +270,7 @@ Project policies for [API deprecation](/docs/reference/using-api/deprecation-pol
270270
[API change guidelines](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api_changes.md)
271271
require `kube-apiserver` to not skip minor versions when upgrading, even in single-instance clusters.
272272
-->
273-
[API 弃用](/zh/docs/reference/using-api/deprecation-policy/)
273+
[API 弃用](/zh-cn/docs/reference/using-api/deprecation-policy/)
274274
[API 变更指南](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api_changes.md)
275275
的项目策略要求 `kube-apiserver` 在升级时不跳过次要版本,即使在单实例集群中也是如此。
276276
{{< /note >}}
@@ -318,7 +318,7 @@ Optionally upgrade `kubelet` instances to **{{< skew currentVersion >}}** (or th
318318
Before performing a minor version `kubelet` upgrade, [drain](/docs/tasks/administer-cluster/safely-drain-node/) pods from that node.
319319
In-place minor version `kubelet` upgrades are not supported.
320320
-->
321-
在执行次要版本 `kubelet` 升级之前,[排空](/zh/docs/tasks/administer-cluster/safely-drain-node/)该节点的 Pod。
321+
在执行次要版本 `kubelet` 升级之前,[排空](/zh-cn/docs/tasks/administer-cluster/safely-drain-node/)该节点的 Pod。
322322
`kubelet` 不支持原地次要版本升级。
323323
{{</ note >}}
324324

data/i18n/zh-cn/zh-cn.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# i18n strings for the Chinese version of the site (https://kubernetes.io/zh/)
1+
# i18n strings for the Chinese version of the site (https://kubernetes.io/zh-cn/)
22
# 注意:修改此文件时请维持字符串名称的字母顺序并与英文版保持一致
33

44
[caution]
@@ -38,7 +38,7 @@ other = " 版本的文档已不再维护。您现在看到的版本来自于一
3838
other = "已过时"
3939

4040
[dockershim_message]
41-
other = """自 1.24 版起,Dockershim 已从 Kubernetes 项目中移除。阅读 <a href="/zh/dockershim">Dockershim 移除的常见问题</a>了解更多详情。"""
41+
other = """自 1.24 版起,Dockershim 已从 Kubernetes 项目中移除。阅读 <a href="/zh-cn/dockershim">Dockershim 移除的常见问题</a>了解更多详情。"""
4242

4343
[docs_label_browse]
4444
other = "浏览文档"
@@ -255,7 +255,7 @@ other="""第三方内容建议"""
255255
other = """&#128711; 本条目指向第三方项目或产品,而该项目(产品)不是 Kubernetes 的一部分。<a class="alert-more-info" href="#third-party-content-disclaimer">更多信息</a>"""
256256

257257
[thirdparty_message_disclaimer]
258-
other = """<p>本页面中的条目引用了第三方产品或项目,这些产品(项目)提供了 Kubernetes 所需的功能。Kubernetes 项目的开发人员不对这些第三方产品(项目)负责。请参阅<a href="https://github.com/cncf/foundation/blob/master/website-guidelines.md" target="_blank">CNCF 网站指南</a>了解更多细节。</p><p>在提交更改建议,向本页添加新的第三方链接之前,你应该先阅读<a href="/zh/docs/contribute/style/content-guide/#third-party-content">内容指南。</p>"""
258+
other = """<p>本页面中的条目引用了第三方产品或项目,这些产品(项目)提供了 Kubernetes 所需的功能。Kubernetes 项目的开发人员不对这些第三方产品(项目)负责。请参阅<a href="https://github.com/cncf/foundation/blob/master/website-guidelines.md" target="_blank">CNCF 网站指南</a>了解更多细节。</p><p>在提交更改建议,向本页添加新的第三方链接之前,你应该先阅读<a href="/zh-cn/docs/contribute/style/content-guide/#third-party-content">内容指南。</p>"""
259259

260260
[ui_search_placeholder]
261261
other = "搜索"

0 commit comments

Comments
 (0)