Skip to content

Commit 70a0e39

Browse files
docubotrsese
andauthored
New translation batch for cn (github#26164)
* 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 80d7fea commit 70a0e39

File tree

28 files changed

+369
-318
lines changed

28 files changed

+369
-318
lines changed

translations/log/cn-resets.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-r
1414
translations/zh-CN/content/actions/hosting-your-own-runners/adding-self-hosted-runners.md,broken liquid tags
1515
translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md,Listed in localization-support#489
1616
translations/zh-CN/content/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners.md,broken liquid tags
17+
translations/zh-CN/content/actions/learn-github-actions/usage-limits-billing-and-administration.md,broken liquid tags
1718
translations/zh-CN/content/actions/managing-workflow-runs/removing-workflow-artifacts.md,broken liquid tags
1819
translations/zh-CN/content/actions/managing-workflow-runs/reviewing-deployments.md,Listed in localization-support#489
20+
translations/zh-CN/content/actions/security-guides/security-hardening-for-github-actions.md,broken liquid tags
1921
translations/zh-CN/content/actions/using-github-hosted-runners/about-github-hosted-runners.md,broken liquid tags
2022
translations/zh-CN/content/actions/using-workflows/storing-workflow-data-as-artifacts.md,broken liquid tags
2123
translations/zh-CN/content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md,broken liquid tags
@@ -217,6 +219,7 @@ translations/zh-CN/content/rest/overview/other-authentication-methods.md,Listed
217219
translations/zh-CN/content/rest/overview/other-authentication-methods.md,broken liquid tags
218220
translations/zh-CN/content/rest/overview/resources-in-the-rest-api.md,Listed in localization-support#489
219221
translations/zh-CN/content/rest/reference/enterprise-admin.md,broken liquid tags
222+
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/about-searching-on-github.md,broken liquid tags
220223
translations/zh-CN/content/sponsors/getting-started-with-github-sponsors/about-github-sponsors.md,broken liquid tags
221224
translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/about-github-sponsors-for-open-source-contributors.md,broken liquid tags
222225
translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md,broken liquid tags

translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ shortTitle: 构建和测试 Java & Ant
4040

4141
{% data reusables.actions.enterprise-setup-prereq %}
4242

43-
## Using the Ant starter workflow
43+
## 使用 Ant 入门工作流程
4444

45-
{% data variables.product.prodname_dotcom %} provides an Ant starter workflow that will work for most Ant-based Java projects. For more information, see the [Ant starter workflow](https://github.com/actions/starter-workflows/blob/main/ci/ant.yml).
45+
{% data variables.product.prodname_dotcom %} 提供有 Ant 入门工作流程,适用于大多数基于 AntJava 项目。 更多信息请参阅 [Ant 入门工作流程](https://github.com/actions/starter-workflows/blob/main/ci/ant.yml)
4646

47-
To get started quickly, you can choose the preconfigured Ant starter workflow when you create a new workflow. 更多信息请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。
47+
要快速开始,您可以在创建新工作流程时选择预配置的 Ant 入门工作流程。 更多信息请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。
4848

4949
您也可以通过在仓库的 `.github/workflow` 目录中创建新文件来手动添加此工作流程。
5050

@@ -76,7 +76,7 @@ jobs:
7676
2. `setup-java` 步骤配置 Adoptium 的 Java 11 JDK。
7777
3. “使用 Ant 构建”步骤以非交互模式运行 `build.xml` 中的默认目标。
7878

79-
在创建构建和测试工作流程时,默认初学者工作流程是很好的起点,然后您可以自定义初学者工作流程以满足项目的需求
79+
在创建构建和测试工作流程时,默认入门工作流程是很好的起点,然后您可以自定义入门工作流程以满足项目的需求
8080

8181
{% data reusables.actions.example-github-runner %}
8282

@@ -88,7 +88,7 @@ jobs:
8888

8989
初学者工作流程将运行 _build.xml_ 文件中指定的默认目标。 默认目标通常设置为将类、运行测试和包类设置为其可分发格式,例如 JAR 文件。
9090

91-
如果使用不同的命令来构建项目,或者想要运行不同的目标,则可以指定这些命令。 For example, you may want to run the `jar` target that's configured in your `_build-ci.xml_` file.
91+
如果使用不同的命令来构建项目,或者想要运行不同的目标,则可以指定这些命令。 例如,您可能想要运行在 `_build-ci.xml_` 文件中配置的 `jar` 目标。
9292

9393
{% raw %}
9494
```yaml{:copy}

translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-gradle.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ shortTitle: 构建和测试 Java & Gradle
4040

4141
{% data reusables.actions.enterprise-setup-prereq %}
4242

43-
## 使用 Gradle 初学者工作流程
43+
## 使用 Gradle 入门工作流程
4444

45-
{% data variables.product.prodname_dotcom %} 提供有 Gradle 初学者工作流程,适用于大多数基于 Gradle 的 Java 项目。 更多信息请参阅 [Gradle 初学者工作流程](https://github.com/actions/starter-workflows/blob/main/ci/gradle.yml)
45+
{% data variables.product.prodname_dotcom %} 提供有 Gradle 入门工作流程,适用于大多数基于 Gradle 的 Java 项目。 更多信息请参阅 [Gradle 入门工作流程](https://github.com/actions/starter-workflows/blob/main/ci/gradle.yml)
4646

47-
要快速开始,您可以在创建新工作流程时选择预配置的 Gradle 初学者工作流程。 更多信息请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。
47+
要快速开始,您可以在创建新工作流程时选择预配置的 Gradle 入门工作流程。 更多信息请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。
4848

4949
您也可以通过在仓库的 `.github/workflow` 目录中创建新文件来手动添加此工作流程。
5050

@@ -81,7 +81,7 @@ jobs:
8181
3. “验证 Gradle 包装器”步骤验证源树中存在的 Gradle Wrapper JAR 文件的校验和。
8282
4. “使用 Gradle 构建”步骤使用 Gradle 组织在 {% data variables.product.prodname_dotcom %}上提供的 `gradle/gradle-build-action` 操作进行构建。 该操作负责调用 Gradle、收集结果以及在作业之间缓存状态。 更多信息请参阅 [`gradle/gradle-build-action`](https://github.com/gradle/gradle-build-action)
8383

84-
在创建构建和测试工作流程时,默认初学者工作流程是很好的起点,然后您可以自定义初学者工作流程以满足项目的需求
84+
在创建构建和测试工作流程时,默认入门工作流程是很好的起点,然后您可以自定义入门工作流程以满足项目的需求
8585

8686
{% data reusables.actions.example-github-runner %}
8787

translations/zh-CN/content/actions/automating-builds-and-tests/building-and-testing-java-with-maven.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ shortTitle: 使用 Maven 构建和测试 Java
4040

4141
{% data reusables.actions.enterprise-setup-prereq %}
4242

43-
## 使用 Maven 初学者工作流程
43+
## 使用 Maven 入门工作流程
4444

45-
{% data variables.product.prodname_dotcom %} 提供有 Maven 初学者工作流程,适用于大多数基于 Maven 的 Java 项目。 更多信息请参阅 [Maven 初学者工作流程](https://github.com/actions/starter-workflows/blob/main/ci/maven.yml)
45+
{% data variables.product.prodname_dotcom %} 提供有 Maven 入门工作流程,适用于大多数基于 Maven 的 Java 项目。 更多信息请参阅 [Maven 入门工作流程](https://github.com/actions/starter-workflows/blob/main/ci/maven.yml)
4646

47-
要快速开始,您可以在创建新工作流程时选择预配置的 Maven 初学者工作流程。 更多信息请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。
47+
要快速开始,您可以在创建新工作流程时选择预配置的 Maven 入门工作流程。 更多信息请参阅“[{% data variables.product.prodname_actions %} 快速入门](/actions/quickstart)”。
4848

4949
您也可以通过在仓库的 `.github/workflow` 目录中创建新文件来手动添加此工作流程。
5050

@@ -76,7 +76,7 @@ jobs:
7676
2. `setup-java` 步骤配置 Adoptium 的 Java 11 JDK。
7777
3. “使用 Maven 构建”步骤以非交互模式运行 Maven `package` 目标,以确保创建代码版本、测试通行证和软件包。
7878

79-
在创建构建和测试工作流程时,默认初学者工作流程是很好的起点,然后您可以自定义初学者工作流程以满足项目的需求
79+
在创建构建和测试工作流程时,默认入门工作流程是很好的起点,然后您可以自定义入门工作流程以满足项目的需求
8080

8181
{% data reusables.actions.example-github-runner %}
8282

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ shortTitle: 构建和测试 .NET
1818

1919
本指南介绍如何构建、测试和发布 .NET 包。
2020

21-
{% ifversion ghae %} To build and test your .NET project on {% data variables.product.prodname_ghe_managed %}, the .NET Core SDK is required. {% data reusables.actions.self-hosted-runners-software %}
21+
{% ifversion ghae %} 若要在 {% data variables.product.prodname_ghe_managed %} 上构建和测试 .NET 项目,需要 .NET Core SDK。 {% data reusables.actions.self-hosted-runners-software %}
2222
{% else %} {% data variables.product.prodname_dotcom %} 托管的运行器有工具缓存预安装的软件,包括 .NET Core SDK。 有关最新版软件以及 .NET Core SDK 预安装版本的完整列表,请参阅 [{% data variables.product.prodname_dotcom %} 自托管运行器上安装的软件](/actions/reference/specifications-for-github-hosted-runners)
2323
{% endif %}
2424

@@ -28,11 +28,11 @@ shortTitle: 构建和测试 .NET
2828

2929
建议您对 .NET Core SDK 有个基本的了解。 更多信息请参阅“[开始使用 .NET](https://dotnet.microsoft.com/learn)”。
3030

31-
## Using the .NET starter workflow
31+
## 使用 .NET 入门工作流程
3232

33-
{% data variables.product.prodname_dotcom %} provides a .NET starter workflow that should work for most .NET projects, and this guide includes examples that show you how to customize this starter workflow. For more information, see the [.NET starter workflow](https://github.com/actions/setup-dotnet).
33+
{% data variables.product.prodname_dotcom %} 提供有 .NET 入门工作流程,应适合大多数 .NET 项目,本指南包括演示如何自定义此入门工作流程的示例。 更多信息请参阅 [.NET 入门工作流程](https://github.com/actions/setup-dotnet)
3434

35-
要快速开始,请将初学者工作流程添加到仓库的 `.github/workflows` 目录中。
35+
要快速开始,请将入门工作流程添加到仓库的 `.github/workflows` 目录中。
3636

3737
{% raw %}
3838

@@ -229,7 +229,7 @@ jobs:
229229

230230
## 发布到包注册表
231231

232-
You can configure your workflow to publish your .NET package to a package registry when your CI tests pass. 您可以使用仓库机密来存储发布二进制文件所需的任何令牌或凭据。 下面的示例使用 `dotnet core cli`创建并发布软件包到 {% data variables.product.prodname_registry %}。
232+
您可以配置工作流程在 CI 测试通过后将 .NET 包发布到包注册表。 您可以使用仓库机密来存储发布二进制文件所需的任何令牌或凭据。 下面的示例使用 `dotnet core cli`创建并发布软件包到 {% data variables.product.prodname_registry %}。
233233

234234
```yaml
235235
name: Upload dotnet package

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ hasExperimentalAlternative: true
3636

3737
{% data reusables.actions.enterprise-setup-prereq %}
3838

39-
## Using the Node.js starter workflow
39+
## 使用 Node.js 入门工作流程
4040

41-
{% data variables.product.prodname_dotcom %} provides a Node.js starter workflow that will work for most Node.js projects. This guide includes npm and Yarn examples that you can use to customize the starter workflow. For more information, see the [Node.js starter workflow](https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml).
41+
{% data variables.product.prodname_dotcom %} 提供有 Node.js 入门工作流程,该工作流程将适用于大多数 Node.js 项目。 本指南包含可用于自定义入门工作流程的 npm Yarn 示例。 更多信息请参阅 [Node.js 入门工作流程](https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml)
4242

43-
要快速开始,请将初学者工作流程添加到仓库的 `.github/workflows` 目录中。 下面显示的工作流假定仓库的默认分支是 `main`
43+
要快速开始,请将入门工作流程添加到仓库的 `.github/workflows` 目录中。 下面显示的工作流假定仓库的默认分支是 `main`
4444

4545
{% raw %}
4646
```yaml{:copy}
@@ -81,9 +81,9 @@ jobs:
8181

8282
`setup-node` 操作采用 Node.js 版本作为输入,并在运行器上配置该版本。 `setup-node` 操作从每个运行器上的工具缓存中查找特定版本的 Node.js,并将必要的二进制文件添加到 `PATH`,这可继续用于作业的其余部分。 使用 `setup-node` 操作是 Node.js 与 {% data variables.product.prodname_actions %} 结合使用时的推荐方式,因为它能确保不同运行器和不同版本的 Node.js 行为一致。 如果使用自托管运行器,则必须安装 Node.js 并将其添加到 `PATH`
8383

84-
The starter workflow includes a matrix strategy that builds and tests your code with four Node.js versions: 10.x, 12.x, 14.x, and 15.x. "x" 是一个通配符,与版本的最新次要版本和修补程序版本匹配。 `node-version` 阵列中指定的每个 Node.js 版本都会创建一个运行相同步骤的作业。
84+
入门工作流程包含一个矩阵策略:用四个 Node.js 版本 10.x12.x14.x 15.x 构建和测试代码, "x" 是一个通配符,与版本的最新次要版本和修补程序版本匹配。 `node-version` 阵列中指定的每个 Node.js 版本都会创建一个运行相同步骤的作业。
8585

86-
每个作业都可以使用 `matrix` 上下文访问矩阵 `node-version` 阵列中定义的值。 `setup-node` 操作使用上下文作为 `node-version` 输入。 `setup-node` 操作在构建和测试代码之前使用不同的 Node.js 版本配置每个作业。 For more information about matrix strategies and contexts, see "[Workflow syntax for {% data variables.product.prodname_actions %}](/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix)" and "[Contexts](/actions/learn-github-actions/contexts)."
86+
每个作业都可以使用 `matrix` 上下文访问矩阵 `node-version` 阵列中定义的值。 `setup-node` 操作使用上下文作为 `node-version` 输入。 `setup-node` 操作在构建和测试代码之前使用不同的 Node.js 版本配置每个作业。 有关矩阵策略和上下文的更多信息,请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix)”和“[上下文](/actions/learn-github-actions/contexts)”。
8787

8888
{% raw %}
8989
```yaml{:copy}
@@ -287,7 +287,7 @@ steps:
287287
- run: pnpm test
288288
```
289289

290-
If you have a custom requirement or need finer controls for caching, you can use the [`cache` action](https://github.com/marketplace/actions/cache). 更多信息请参阅“<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">缓存依赖项以加快工作流程</a>”。
290+
如果您有自定义要求或需要更精确的缓存控制,则可以使用 [`cache` 操作](https://github.com/marketplace/actions/cache) 更多信息请参阅“<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">缓存依赖项以加快工作流程</a>”。
291291

292292
## 构建和测试代码
293293

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ hasExperimentalAlternative: true
4242

4343
{% data reusables.actions.enterprise-setup-prereq %}
4444

45-
## 使用 Python 初学者工作流程
45+
## 使用 Python 入门工作流程
4646

47-
{% data variables.product.prodname_dotcom %} 提供了一个适用于大多数 Python 项目的 Python 初学者工作流程。 本指南包含可用于自定义初学者工作流程的示例。 更多信息请参阅 [Python 初学者工作流程](https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml)
47+
{% data variables.product.prodname_dotcom %} 提供了一个适用于大多数 Python 项目的 Python 入门工作流程。 本指南包含可用于自定义入门工作流程的示例。 更多信息请参阅 [Python 入门工作流程](https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml)
4848

49-
要快速开始,请将初学者工作流程添加到仓库的 `.github/workflows` 目录中。
49+
要快速开始,请将入门工作流程添加到仓库的 `.github/workflows` 目录中。
5050

5151
{% raw %}
5252
```yaml{:copy}
@@ -298,7 +298,7 @@ steps:
298298

299299
默认情况下, `setup-python` 操作会在整个存储库中搜索依赖项文件(对于 pip 为`requirements.txt`,对于 pipenv 为 `Pipfile.lock`)。 更多信息请参阅 `setup-python` 操作自述文件中的“<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">缓存包依赖项</a>”。
300300

301-
If you have a custom requirement or need finer controls for caching, you can use the [`cache` action](https://github.com/marketplace/actions/cache). Pip 根据运行器的操作系统将依赖项缓存在不同的位置。 您需要缓存的路径可能不同于上面的 Ubuntu 示例,具体取决于您使用的操作系统。 更多信息请参阅 `cache` 操作存储库中的 [Python 缓存示例](https://github.com/actions/cache/blob/main/examples.md#python---pip)
301+
如果您有自定义要求或需要更精确的缓存控制,则可以使用 [`cache` 操作](https://github.com/marketplace/actions/cache) Pip 根据运行器的操作系统将依赖项缓存在不同的位置。 您需要缓存的路径可能不同于上面的 Ubuntu 示例,具体取决于您使用的操作系统。 更多信息请参阅 `cache` 操作存储库中的 [Python 缓存示例](https://github.com/actions/cache/blob/main/examples.md#python---pip)
302302

303303

304304

@@ -497,4 +497,4 @@ jobs:
497497
```
498498

499499

500-
有关初学者工作流程的更多信息,请参阅 [`python-published`](https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml)
500+
有关入门工作流程的更多信息,请参阅 [`python-published`](https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml)

0 commit comments

Comments
 (0)