Skip to content

Commit 0f76a55

Browse files
docubotrsese
andauthored
New translation batch for cn (github#26214)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * Run script/i18n/lint-translation-files.js --check parsing * Run script/i18n/lint-translation-files.js --check rendering * run script/i18n/reset-files-with-broken-liquid-tags.js --language=cn * run script/i18n/reset-known-broken-translation-files.js * Check in cn CSV report Co-authored-by: Robert Sese <[email protected]>
1 parent a7bf113 commit 0f76a55

File tree

107 files changed

+1325
-501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1325
-501
lines changed

translations/log/cn-resets.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ translations/zh-CN/content/codespaces/developing-in-codespaces/developing-in-a-c
136136
translations/zh-CN/content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md,broken liquid tags
137137
translations/zh-CN/content/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code.md,broken liquid tags
138138
translations/zh-CN/content/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization.md,broken liquid tags
139+
translations/zh-CN/content/codespaces/the-githubdev-web-based-editor.md,broken liquid tags
139140
translations/zh-CN/content/codespaces/troubleshooting/troubleshooting-your-connection-to-codespaces.md,broken liquid tags
140141
translations/zh-CN/content/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam.md,broken liquid tags
141142
translations/zh-CN/content/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/adding-an-existing-project-to-github-using-github-desktop.md,broken liquid tags
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Managing your tab size rendering preference
3-
intro: You can manage the number of spaces a tab is equal to for your user account.
2+
title: 管理选项卡大小呈现首选项
3+
intro: 您可以管理选项卡占用户帐户多少空间。
44
versions:
55
fpt: '*'
66
ghae: issue-5083
77
ghes: '>=3.4'
88
ghec: '*'
99
topics:
1010
- Accounts
11-
shortTitle: Managing your tab size
11+
shortTitle: 管理选项卡大小
1212
---
1313

14-
If you feel that tabbed indentation in code rendered on {% data variables.product.product_name %} takes up too much, or too little space, you can change this in your settings.
14+
如果您觉得在 {% data variables.product.product_name %} 上呈现的选项卡式代码缩进占用了太多或太少的空间,可以在设置中更改。
1515

1616
{% data reusables.user-settings.access_settings %}
17-
1. In the left sidebar, click **{% octicon "paintbrush" aria-label="The paintbrush icon" %} Appearance**.
18-
2. Under "Tab size preference", select the drop-down menu and choose your preference. ![Tab size preference button](/assets/images/help/settings/tab-size-preference.png)
17+
1. 在左侧边栏中,单击 **{% octicon "paintbrush" aria-label="The paintbrush icon" %} 外观**
18+
2. 在“Tab size preference(选项卡大小首选项)”下,选择下拉菜单,然后选择您的首选项。 ![选项卡大小首选项按钮](/assets/images/help/settings/tab-size-preference.png)

translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-nodejs-or-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 构建并测试 Node.js 或 Python
3-
shortTitle: Build & test Node.js or Python
4-
intro: You can create a continuous integration (CI) workflow to build and test your project. Use the language selector to show examples for your language of choice.
3+
shortTitle: 构建和测试 Node.js Python
4+
intro: 您可以创建持续集成 (CI) 工作流程来构建和测试您的项目。 使用语言选择器显示所选语言的示例。
55
redirect_from:
66
- /actions/guides/building-and-testing-nodejs-or-python
77
versions:

translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
6666
## 指定 Ruby 版本
6767
68-
指定 Ruby 版本的最简单方法是使用 Ruby 组织在 GitHub 上提供的 `ruby/setup-ruby` 操作。 该操作将任何受支持的 Ruby 版本添加到工作流程中运行的每个作业的 `PATH`。 For more information and available Ruby versions, see [`ruby/setup-ruby`](https://github.com/ruby/setup-ruby).
68+
指定 Ruby 版本的最简单方法是使用 Ruby 组织在 GitHub 上提供的 `ruby/setup-ruby` 操作。 该操作将任何受支持的 Ruby 版本添加到工作流程中运行的每个作业的 `PATH`。 有关详细信息和可用的 Ruby 版本,请参阅 [`ruby/setup-ruby`](https://github.com/ruby/setup-ruby)
6969

7070
使用 Ruby 的 `ruby/setup-ruby` 操作是 Python 与 GitHub Actions 结合使用时的推荐方式,因为它能确保不同运行器和不同版本的 Ruby 行为一致。
7171

translations/zh-CN/content/actions/managing-workflow-runs/re-running-workflows-and-jobs.md

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Re-running workflows and jobs
3-
intro: You can re-run a workflow run up to 30 days after its initial run.
3+
intro: 'You can re-run a workflow run{% if re-run-jobs %}, all failed jobs in a workflow run, or specific jobs in a workflow run{% endif %} up to 30 days after its initial run.'
44
permissions: People with write permissions to a repository can re-run workflows in the repository.
55
miniTocMaxHeadingLevel: 3
66
redirect_from:
@@ -15,9 +15,11 @@ versions:
1515
{% data reusables.actions.enterprise-beta %}
1616
{% data reusables.actions.enterprise-github-hosted-runners %}
1717

18-
## Re-running all the jobs in a workflow
18+
## About re-running workflows and jobs
19+
20+
Re-running a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} uses the same `GITHUB_SHA` (commit SHA) and `GITHUB_REF` (Git ref) of the original event that triggered the workflow run. You can re-run a workflow{% if re-run-jobs %} or jobs in a workflow{% endif %} for up to 30 days after the initial run.
1921

20-
重新运行工作流程使用触发工作流程运行的原始事件的 `GITHUB_SHA`(提交 SHA)和 `GITHUB_REF` (Git ref)。 You can re-run a workflow for up to 30 days after the initial run.
22+
## Re-running all the jobs in a workflow
2123

2224
{% webui %}
2325

@@ -26,7 +28,9 @@ versions:
2628
{% data reusables.repositories.navigate-to-workflow %}
2729
{% data reusables.repositories.view-run %}
2830
{% ifversion fpt or ghes > 3.2 or ghae-issue-4721 or ghec %}
29-
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run all jobs** ![Rerun checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png)
31+
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **Re-run all jobs(重新运行所有作业)**
32+
33+
If no jobs failed, you will not see the **Re-run jobs** drop-down menu. Instead, click **Re-run all jobs**. ![Rerun checks drop-down menu](/assets/images/help/repository/rerun-checks-drop-down.png)
3034
{% endif %}
3135
{% ifversion ghes < 3.3 or ghae %}
3236
1. 在工作流程的右上角,使用 **Re-run jobs(重新运行作业)**下拉菜单,并选择 **Re-run all jobs(重新运行所有作业)**![重新运行检查下拉菜单](/assets/images/help/repository/rerun-checks-drop-down-updated.png)
@@ -52,16 +56,65 @@ gh run watch
5256

5357
{% endcli %}
5458

59+
{% if re-run-jobs %}
60+
## Re-running failed jobs in a workflow
61+
62+
If any jobs in a workflow run failed, you can re-run just the jobs that failed. When you re-run failed jobs in a workflow, a new workflow run will start for all failed jobs and their dependents. Any outputs for any successful jobs in the previous workflow run will be used for the re-run. Any artifacts that were created in the initial run will be available in the re-run. Any environment protection rules that passed in the previous run will automatically pass in the re-run.
63+
64+
{% webui %}
65+
66+
{% data reusables.repositories.navigate-to-repo %}
67+
{% data reusables.repositories.actions-tab %}
68+
{% data reusables.repositories.navigate-to-workflow %}
69+
{% data reusables.repositories.view-run %}
70+
1. In the upper-right corner of the workflow, use the **Re-run jobs** drop-down menu, and select **Re-run failed jobs**. ![Re-run failed jobs drop-down menu](/assets/images/help/repository/rerun-failed-jobs-drop-down.png)
71+
72+
{% endwebui %}
73+
74+
{% cli %}
75+
76+
You cannot re-run all failed jobs through the {% data variables.product.prodname_cli %} at this time. Instead, use the {% data variables.product.product_name %} web browser interface.
77+
78+
{% endcli %}
79+
80+
## Re-running a specific job in a workflow
81+
82+
When you re-run a specific job in a workflow, a new workflow run will start for the job and any dependents. Any outputs for any other jobs in the previous workflow run will be used for the re-run. Any artifacts that were created in the initial run will be available in the re-run. Any environment protection rules that passed in the previous run will automatically pass in the re-run.
83+
84+
{% webui %}
85+
86+
{% data reusables.repositories.navigate-to-repo %}
87+
{% data reusables.repositories.actions-tab %}
88+
{% data reusables.repositories.navigate-to-workflow %}
89+
{% data reusables.repositories.view-run %}
90+
1. Next to the job that you want to re-run, click {% octicon "sync" aria-label="The re-run icon" %}. ![Re-run selected job](/assets/images/help/repository/re-run-selected-job.png)
91+
92+
Alternatively, click on a job to view the log. In the log, click {% octicon "sync" aria-label="The re-run icon" %}. ![Re-run selected job](/assets/images/help/repository/re-run-single-job-from-log.png)
93+
94+
{% endwebui %}
95+
96+
{% cli %}
97+
98+
You cannot re-run a single job through the {% data variables.product.prodname_cli %} at this time. Instead, use the {% data variables.product.product_name %} browser interface.
99+
100+
{% endcli %}
101+
102+
{% endif %}
103+
55104
{% ifversion fpt or ghes > 3.2 or ghae-issue-4721 or ghec %}
56-
### Reviewing previous workflow runs
105+
## Reviewing previous workflow runs
57106

58107
You can view the results from your previous attempts at running a workflow. You can also view previous workflow runs using the API. For more information, see ["Get a workflow run"](/rest/reference/actions#get-a-workflow-run).
59108

60109
{% data reusables.repositories.navigate-to-repo %}
61110
{% data reusables.repositories.actions-tab %}
62111
{% data reusables.repositories.navigate-to-workflow %}
63112
{% data reusables.repositories.view-run %}
113+
{%- if re-run-jobs %}
114+
1. Any previous run attempts are shown in the **Latest** drop-down menu. ![Previous run attempts](/assets/images/help/repository/previous-run-attempts.png)
115+
{%- else %}
64116
1. Any previous run attempts are shown in the left pane. ![Rerun workflow](/assets/images/help/settings/actions-review-workflow-rerun.png)
117+
{%- endif %}
65118
1. Click an entry to view its results.
66119

67120
{% endif %}

translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ versions:
6262
![下载日志下拉菜单](/assets/images/help/repository/download-logs-drop-down-updated-2.png)
6363

6464

65+
{% if re-run-jobs %}
66+
67+
{% note %}
68+
69+
**Note**: When you download the log archive for a workflow that was partially re-run, the archive only includes the jobs that were re-run. To get a complete set of logs for jobs that were run from a workflow, you must download the log archives for the previous run attempts that ran the other jobs.
70+
71+
{% endnote %}
72+
73+
{% endif %}
74+
6575
## 删除日志
6676

6777
您可以从工作流程运行中删除日志文件。 {% data reusables.repositories.permissions-statement-write %}

translations/zh-CN/content/actions/publishing-packages/publishing-docker-images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
{% ifversion fpt or ghec %}
132132
{% data reusables.package_registry.publish-docker-image %}
133133

134-
上述工作流程如被推送到“发行版”分支触发, 它会检出 GitHub 仓库,并使用 `login-action` 登录到 {% data variables.product.prodname_container_registry %}。 然后,它将提取 Docker 映像的标签和标记。 最后,它使用 `build-push-action` 操作来构建映像并在 {% data variables.product.prodname_container_registry %} 上发布。
134+
The above workflow is triggered by a push to the "release" branch. 它会检出 GitHub 仓库,并使用 `login-action` 登录到 {% data variables.product.prodname_container_registry %}。 然后,它将提取 Docker 映像的标签和标记。 最后,它使用 `build-push-action` 操作来构建映像并在 {% data variables.product.prodname_container_registry %} 上发布。
135135

136136
{% else %}
137137
```yaml{:copy}

translations/zh-CN/content/actions/publishing-packages/publishing-java-packages-with-gradle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
```
176176

177177
{% data reusables.actions.gradle-workflow-steps %}
178-
1. Runs the [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action) action with the `publish` argument to publish to {% data variables.product.prodname_registry %}. `GITHUB_TOKEN` 环境变量将使用 `GITHUB_TOKEN` 密码的内容设置。 {% ifversion fpt or ghes > 3.1 or ghae or ghec %}The `permissions` key specifies the access that the `GITHUB_TOKEN` secret will allow.{% endif %}
178+
1. 运行具有 `publish` 参数的 [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action) 操作,以发布到 {% data variables.product.prodname_registry %} `GITHUB_TOKEN` 环境变量将使用 `GITHUB_TOKEN` 密码的内容设置。 {% ifversion fpt or ghes > 3.1 or ghae or ghec %} `permissions` 键指定 `GITHUB_TOKEN` 密钥允许的访问权限。{% endif %}
179179

180180
有关在工作流程中使用密码的更多信息,请参阅“[创建和使用加密密码](/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)”。
181181

@@ -256,6 +256,6 @@ jobs:
256256
```
257257

258258
{% data reusables.actions.gradle-workflow-steps %}
259-
1. Runs the [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action) action with the `publish` argument to publish to the `OSSRH` Maven repository and {% data variables.product.prodname_registry %}. `MAVEN_USERNAME` 环境变量将使用 `OSSRH_USERNAME` 密码的内容设置,而 `MAVEN_PASSWORD` 环境变量将使用 `OSSRH_TOKEN` 密码的内容设置。 `GITHUB_TOKEN` 环境变量将使用 `GITHUB_TOKEN` 密码的内容设置。 {% ifversion fpt or ghes > 3.1 or ghae or ghec %}The `permissions` key specifies the access that the `GITHUB_TOKEN` secret will allow.{% endif %}
259+
1. 运行具有 `publish` 参数的 [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action) 操作,以发布到 `OSSRH` Maven 存储库和 {% data variables.product.prodname_registry %} `MAVEN_USERNAME` 环境变量将使用 `OSSRH_USERNAME` 密码的内容设置,而 `MAVEN_PASSWORD` 环境变量将使用 `OSSRH_TOKEN` 密码的内容设置。 `GITHUB_TOKEN` 环境变量将使用 `GITHUB_TOKEN` 密码的内容设置。 {% ifversion fpt or ghes > 3.1 or ghae or ghec %} `permissions` 键指定 `GITHUB_TOKEN` 密钥允许的访问权限。{% endif %}
260260

261261
有关在工作流程中使用密码的更多信息,请参阅“[创建和使用加密密码](/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)”。

translations/zh-CN/content/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ After you enable {% data variables.product.prodname_dependabot_alerts %} for you
100100
{% ifversion ghes %}
101101
Before you enable {% data variables.product.prodname_dependabot_updates %}, you must configure {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %} with self-hosted runners. 更多信息请参阅“[开始使用 GitHub Enterprise Server 的 {% data variables.product.prodname_actions %}](/admin/github-actions/enabling-github-actions-for-github-enterprise-server/getting-started-with-github-actions-for-github-enterprise-server)”。
102102

103-
{% data variables.product.prodname_dependabot_updates %} are not supported on {% data variables.product.product_name %} if your enterprise uses clustering or a high-availability configuration.
103+
{% data variables.product.prodname_dependabot_updates %} are not supported on {% data variables.product.product_name %} if your enterprise uses clustering.
104104
{% endif %}
105105

106106
{% data reusables.enterprise_site_admin_settings.sign-in %}

translations/zh-CN/content/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ shortTitle: 测试 SSH 连接
3737
> Are you sure you want to continue connecting (yes/no)?
3838
```
3939
40-
3. 验证所看到消息中的指纹是否匹配 {% ifversion fpt or ghec %}[{% data variables.product.prodname_dotcom %} 的 RSA 公钥指纹](/github/authenticating-to-github/githubs-ssh-key-fingerprints){% else %}您企业的公钥指纹{% endif %} 如果是,则输入 `yes`:
40+
3. Verify that the fingerprint in the message you see matches {% ifversion fpt or ghec %}[{% data variables.product.prodname_dotcom %}'s public key fingerprint](/github/authenticating-to-github/githubs-ssh-key-fingerprints){% else %} your enterprise's public key fingerprint{% endif %}. 如果是,则输入 `yes`:
4141
```shell
4242
> Hi <em>username</em>! You've successfully authenticated, but GitHub does not
4343
> provide shell access.

0 commit comments

Comments
 (0)