Skip to content
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

Merged

Conversation

steven-my
Copy link
Contributor

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

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 23, 2021
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Aug 23, 2021
@howieyuen
Copy link
Member

oops, you need trigger the checks again by push -f

@steven-my
Copy link
Contributor Author

OK, i will try push -f

@steven-my steven-my force-pushed the 29329-translation-for-kubectl-install branch from e4c324a to 5e63f34 Compare August 23, 2021 06:51
<!--
If the check fails, `sha256` exits with nonzero status and prints output similar to:
-->
验证失败时,`sha256` 将以非零值退出,并打印如下输出:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

验证失败时,sha256 将以非零值退出,并打印输出类似于:

Copy link
Contributor Author

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}
Copy link
Member

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}

Copy link
Contributor Author

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 的可执行文件:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

基于校验和,验证 kubectl-convert 二进制文件:

Copy link
Contributor Author

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.
-->
下载相同版本的可执行文件与校验和文件。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下载相同版本的二进制文件和校验和。

Copy link
Contributor Author

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` 将以非零值退出,并打印如下输出:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

验证失败时,sha256 将以非零值退出,并打印输出类似于:

Copy link
Contributor Author

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.
-->
下载相同版本的可执行文件与校验和文件。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下载相同版本的二进制文件和校验和。

Copy link
Contributor Author

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 可执行文件提供执行权限
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 使 kubectl-convert 二进制文件可执行

Copy link
Contributor Author

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` 环境变量中的一个位置。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 将 kubectl-convert 二进制文件移动到系统 PATH 环境变量中的一个位置。

Copy link
Contributor Author

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` 环境变量。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 将二级制文件添加到你的 PATH 环境变量。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

保留了“可执行文件”

@tengqm
Copy link
Contributor

tengqm commented Aug 23, 2021

binary 是可以意译成“可执行文件”的,译为“二进制文件”反而生硬。

@howieyuen
Copy link
Member

binary 是可以意译成“可执行文件”的,译为“二进制文件”反而生硬。

我一开始也是这么认为的,直到看到这句“make binary executable”,“binary”是格式,“executable”是属性,二进制文件也可因为没有“+x”属性,而不可执行。那就让 @steven-my 自己斟酌吧。

@steven-my
Copy link
Contributor Author

binary 是可以意译成“可执行文件”的,译为“二进制文件”反而生硬。

我一开始也是这么认为的,直到看到这句“make binary executable”,“binary”是格式,“executable”是属性,二进制文件也可因为没有“+x”属性,而不可执行。那就让 @steven-my 自己斟酌吧。

我是看到其他已经翻译的部分是把 binary 翻译成“可执行文件”,所以为了保持一致我也译成了“可执行文件”

@steven-my steven-my force-pushed the 29329-translation-for-kubectl-install branch from 5e63f34 to 7284699 Compare August 24, 2021 02:47
@tengqm
Copy link
Contributor

tengqm commented Aug 24, 2021

我一开始也是这么认为的,直到看到这句“make binary executable”,“binary”是格式,“executable”是属性,二进制文件也可因为没有“+x”属性,而不可执行。那就让 @steven-my 自己斟酌吧。

了解了。同意根据上下文来斟酌。

-->
### 安装 `kubectl convert` 插件

{{< include "included/kubectl-convert-overview.md" >}}
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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" >}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here

Copy link
Contributor Author

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" >}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

拷贝并翻译了这个文件

@reylejano
Copy link
Member

/retitle [zh] translation for kubectl install section

@k8s-ci-robot k8s-ci-robot changed the title translation for kubectl install section [zh] translation for kubectl install section Aug 24, 2021
@steven-my steven-my force-pushed the 29329-translation-for-kubectl-install branch from 7284699 to 0c10077 Compare August 26, 2021 08:54
@netlify
Copy link

netlify bot commented Aug 26, 2021

✔️ 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 版本时,这个插件会特别有帮助。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在将清单迁移到具有较新 Kubernetes 版本的未弃用 API 版本时,这个插件特别有用。

Copy link
Contributor Author

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)
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经修改

@steven-my steven-my force-pushed the 29329-translation-for-kubectl-install branch from 0c10077 to 2678ee5 Compare August 26, 2021 15:08
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert.sha256"
```

<!--
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请考考虑将320和322行都缩进三个空格,避免缩进问题。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经修改320和322行,并且修改了本文件和其他几个文件中类似的行。

@steven-my steven-my force-pushed the 29329-translation-for-kubectl-install branch from 2678ee5 to e72db39 Compare August 30, 2021 02:15
@steven-my steven-my force-pushed the 29329-translation-for-kubectl-install branch from e72db39 to 6e61a2b Compare August 30, 2021 02:18
@howieyuen
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: cdd404f1982bd99a60cc7a6665af89a32d9efe6b

@tengqm
Copy link
Contributor

tengqm commented Aug 31, 2021

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 31, 2021
@k8s-ci-robot k8s-ci-robot merged commit 5c316c2 into kubernetes:main Aug 31, 2021
@tengqm tengqm mentioned this pull request Sep 26, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/zh Issues or PRs related to Chinese language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants