-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh] translation for kubectl install section #29509
[zh] translation for kubectl install section #29509
Conversation
oops, you need trigger the checks again by |
OK, i will try push -f |
e4c324a
to
5e63f34
Compare
<!-- | ||
If the check fails, `sha256` exits with nonzero status and prints output similar to: | ||
--> | ||
验证失败时,`sha256` 将以非零值退出,并打印如下输出: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
验证失败时,sha256
将以非零值退出,并打印输出类似于:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
|
||
### Enable shell autocompletion {#enable-shell-autocompletion} | ||
--> | ||
## 可选的 kubectl 配置 {#optional-kubectl-configurations} | ||
## 可选的 kubectl 配置和插件 {#optional-kubectl-configurations} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{#optional-kubectl-configurations-and-plugins}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
<!-- | ||
Validate the kubectl-convert binary against the checksum file: | ||
--> | ||
基于校验和文件,验证 kubectl-convert 的可执行文件: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基于校验和,验证 kubectl-convert 二进制文件:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改,但保留了“可执行文件”
<!-- | ||
Download the same version of the binary and checksum. | ||
--> | ||
下载相同版本的可执行文件与校验和文件。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下载相同版本的二进制文件和校验和。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改,但保留了“可执行文件”
<!-- | ||
If the check fails, `shasum` exits with nonzero status and prints output similar to: | ||
--> | ||
验证失败时,`sha256` 将以非零值退出,并打印如下输出: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
验证失败时,sha256
将以非零值退出,并打印输出类似于:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
<!-- | ||
Download the same version of the binary and checksum. | ||
--> | ||
下载相同版本的可执行文件与校验和文件。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下载相同版本的二进制文件和校验和。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改,但保留了“可执行文件”
<!-- | ||
1. Make kubectl-convert binary executable | ||
--> | ||
1. 给 kubectl-convert 可执行文件提供执行权限 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 使 kubectl-convert 二进制文件可执行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
<!-- | ||
1. Move the kubectl-convert binary to a file location on your system `PATH`. | ||
--> | ||
1. 将 kubectl-convert 可执行文件移动到系统 `PATH` 环境变量中的一个位置。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 将 kubectl-convert 二进制文件移动到系统
PATH
环境变量中的一个位置。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
保留了“可执行文件”
|
||
1. Verify plugin is successfully installed | ||
--> | ||
1. 将可执行文件添加到你的 `PATH` 环境变量。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 将二级制文件添加到你的
PATH
环境变量。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
保留了“可执行文件”
binary 是可以意译成“可执行文件”的,译为“二进制文件”反而生硬。 |
我一开始也是这么认为的,直到看到这句“make binary executable”,“binary”是格式,“executable”是属性,二进制文件也可因为没有“+x”属性,而不可执行。那就让 @steven-my 自己斟酌吧。 |
我是看到其他已经翻译的部分是把 binary 翻译成“可执行文件”,所以为了保持一致我也译成了“可执行文件” |
5e63f34
to
7284699
Compare
了解了。同意根据上下文来斟酌。 |
--> | ||
### 安装 `kubectl convert` 插件 | ||
|
||
{{< include "included/kubectl-convert-overview.md" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is blocking the CI. We don't have the file yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I remove this line from doc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. That file should be copied from the English upstream and translated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I copied this file from en to zh and translated it.
--> | ||
### 安装 `kubectl convert` 插件 | ||
|
||
{{< include "included/kubectl-convert-overview.md" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
拷贝并翻译了这个文件
--> | ||
### 安装 `kubectl convert` 插件 | ||
|
||
{{< include "included/kubectl-convert-overview.md" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
拷贝并翻译了这个文件
/retitle [zh] translation for kubectl install section |
7284699
to
0c10077
Compare
✔️ Deploy Preview for kubernetes-io-main-staging ready! 🔨 Explore the source changes: 6e61a2b 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/612c401060cff600077f1279 😎 Browse the preview: https://deploy-preview-29509--kubernetes-io-main-staging.netlify.app |
For more info, visit [migrate to non deprecated apis](/docs/reference/using-api/deprecation-guide/#migrate-to-non-deprecated-apis) | ||
--> | ||
一个 Kubernetes 命令行工具 `kubectl` 的插件,允许你将清单在不同 API 版本间转换。 | ||
在将清单迁移到一个更新的 Kubernetes 发布中的非弃用 api 版本时,这个插件会特别有帮助。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在将清单迁移到具有较新 Kubernetes 版本的未弃用 API 版本时,这个插件特别有用。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
--> | ||
一个 Kubernetes 命令行工具 `kubectl` 的插件,允许你将清单在不同 API 版本间转换。 | ||
在将清单迁移到一个更新的 Kubernetes 发布中的非弃用 api 版本时,这个插件会特别有帮助。 | ||
更多信息请访问 [迁移到非弃用 api](/docs/reference/using-api/deprecation-guide/#migrate-to-non-deprecated-apis) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api -> API
中文本地化,需要将链接加上"/zh"前缀:/zh/docs/xxxxxx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经修改
0c10077
to
2678ee5
Compare
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert.sha256" | ||
``` | ||
|
||
<!-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请考考虑将320和322行都缩进三个空格,避免缩进问题。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经修改320和322行,并且修改了本文件和其他几个文件中类似的行。
2678ee5
to
e72db39
Compare
e72db39
to
6e61a2b
Compare
/lgtm |
LGTM label has been added. Git tree hash: cdd404f1982bd99a60cc7a6665af89a32d9efe6b
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tengqm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
related: #29329
Translation for the 'kubectl install' section in issue 29329.
Modified:
content/zh/docs/tasks/tools/install-kubectl-linux.md
content/zh/docs/tasks/tools/install-kubectl-macos.md
content/zh/docs/tasks/tools/install-kubectl-windows.md