Skip to content

Commit c436f6c

Browse files
docubotrsese
andauthored
New translation batch for cn (github#27347)
* Add crowdin translations * Run script/i18n/homogenize-frontmatter.js * 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 7f90139 commit c436f6c

File tree

55 files changed

+240
-223
lines changed

Some content is hidden

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

55 files changed

+240
-223
lines changed

translations/log/cn-resets.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ translations/zh-CN/data/reusables/package_registry/packages-cluster-support.md,b
310310
translations/zh-CN/data/reusables/repositories/deleted_forks_from_private_repositories_warning.md,broken liquid tags
311311
translations/zh-CN/data/reusables/repositories/github-reviews-security-advisories.md,broken liquid tags
312312
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,Listed in localization-support#489
313-
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,broken liquid tags
313+
translations/zh-CN/data/reusables/saml/you-must-periodically-authenticate.md,rendering error
314314
translations/zh-CN/data/reusables/scim/after-you-configure-saml.md,broken liquid tags
315315
translations/zh-CN/data/reusables/secret-scanning/enterprise-enable-secret-scanning.md,broken liquid tags
316316
translations/zh-CN/data/reusables/sponsors/feedback.md,broken liquid tags

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
### 使用多个 Swift 版本
6767

68-
You can configure your job to use multiple versions of Swift in a matrix.
68+
您可以将作业配置为在矩阵中使用多个版本的 Swift
6969

7070
```yaml{:copy}
7171
{% data reusables.actions.actions-not-certified-by-github-comment %}

translations/zh-CN/content/actions/learn-github-actions/contexts.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ miniTocMaxHeadingLevel: 3
2323

2424
上下文是一种访问工作流程运行、运行器环境、作业及步骤相关信息的方式。 每个上下文都是一个包含属性的对象,属性可以是字符串或其他对象。
2525

26-
{% data reusables.actions.context-contents %} For example, the `matrix` context is only populated for jobs in a [matrix](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix).
26+
{% data reusables.actions.context-contents %} 例如,`matrix` 上下文中仅填充 [matrix](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) 中的作业。
2727

2828
您可以使用表达式语法访问上下文。 更多信息请参阅“[表达式](/actions/learn-github-actions/expressions)”。
2929

@@ -537,19 +537,19 @@ jobs:
537537

538538
## `strategy` 上下文
539539

540-
For workflows with a matrix, the `strategy` context contains information about the matrix execution strategy for the current job.
540+
对于具有矩阵的工作流程,`strategy` 上下文包含有关当前作业的矩阵执行策略的信息。
541541

542-
| 属性名称 | 类型 | 描述 |
543-
| ----------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
544-
| `strategy` | `对象` | 此上下文针对工作流程运行中的每项作业而改变。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的所有属性。 |
545-
| `strategy.fail-fast` | `字符串` | When `true`, all in-progress jobs are canceled if any job in a matrix fails. 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast)”。 |
546-
| `strategy.job-index` | `字符串` | The index of the current job in the matrix. **注意:** 此数字是零基数字。 The first job's index in the matrix is `0`. |
547-
| `strategy.job-total` | `字符串` | The total number of jobs in the matrix. **注意:** 此数字 **不是**从零基数字。 For example, for a matrix with four jobs, the value of `job-total` is `4`. |
548-
| `strategy.max-parallel` | `字符串` | 使用 `matrix` 作业策略时可同时运行的最大作业数。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel)”。 |
542+
| 属性名称 | 类型 | 描述 |
543+
| ----------------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
544+
| `strategy` | `对象` | 此上下文针对工作流程运行中的每项作业而改变。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的所有属性。 |
545+
| `strategy.fail-fast` | `字符串` | `true` 时,如果矩阵中的任何作业失败,所有正在进行的作业都将被取消。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast)”。 |
546+
| `strategy.job-index` | `字符串` | 矩阵中当前作业的索引。 **注意:** 此数字是零基数字。 矩阵中第一个作业的索引是 `0` |
547+
| `strategy.job-total` | `字符串` | 矩阵中的作业总数。 **注意:** 此数字 **不是**从零基数字。 例如,对于具有四个作业的矩阵,`job-total` 的值为 `4` |
548+
| `strategy.max-parallel` | `字符串` | 使用 `matrix` 作业策略时可同时运行的最大作业数。 更多信息请参阅“[{% data variables.product.prodname_actions %} 的工作流程语法](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel)”。 |
549549

550550
### `strategy` 上下文的示例内容
551551

552-
The following example contents of the `strategy` context is from a matrix with four jobs, and is taken from the final job. 请注意零基 `job-index` 数字与 `job-total` (非零基)之间的差异。
552+
`strategy` 上下文的以下示例内容来自具有四个作业的矩阵,取自最终作业。 请注意零基 `job-index` 数字与 `job-total` (非零基)之间的差异。
553553

554554
```yaml
555555
{
@@ -562,7 +562,7 @@ The following example contents of the `strategy` context is from a matrix with f
562562

563563
### `strategy` 上下文的示例用法
564564

565-
This example workflow uses the `strategy.job-index` property to set a unique name for a log file for each job in a matrix.
565+
此示例工作流程使用 `strategy.job-index` 属性为矩阵中每个作业的日志文件设置唯一名称。
566566

567567
```yaml{:copy}
568568
name: Test matrix
@@ -587,18 +587,18 @@ jobs:
587587

588588
## `matrix` 上下文
589589

590-
For workflows with a matrix, the `matrix` context contains the matrix properties defined in the workflow file that apply to the current job. For example, if you configure a matrix with the `os` and `node` keys, the `matrix` context object includes the `os` and `node` properties with the values that are being used for the current job.
590+
对于具有矩阵的工作流程,`matrix` 上下文包含工作流程文件中定义的适用于当前作业的矩阵属性。 例如,如果使用 `os` `node` 键配置矩阵,则 `matrix` 上下文对象将包括 `os` `node` 属性,具有用于当前作业的值。
591591

592592
`matrix` 上下文中没有标准属性,只有工作流程文件中定义的属性。
593593

594-
| 属性名称 | 类型 | 描述 |
595-
| ------------------------------ | ----- | --------------------------------------------------------------------------------------------------------------------------------------- |
596-
| `matrix` | `对象` | This context is only available for jobs in a matrix, and changes for each job in a workflow run. 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 |
597-
| `matrix.<property_name>` | `字符串` | 矩阵属性的值。 |
594+
| 属性名称 | 类型 | 描述 |
595+
| ------------------------------ | ----- | ----------------------------------------------------------------------------- |
596+
| `matrix` | `对象` | 此上下文仅适用于矩阵中的作业,并且对于工作流程运行中的每个作业都会发生更改。 您可以从工作流程中的任何作业或步骤访问此上下文。 此对象包含下面列出的属性。 |
597+
| `matrix.<property_name>` | `字符串` | 矩阵属性的值。 |
598598

599599
### `matrix` 上下文的示例内容
600600

601-
The following example contents of the `matrix` context is from a job in a matrix that has the `os` and `node` matrix properties defined in the workflow. 该作业执行 `ubuntu-latest` OS 和 Node.js 版本 `16` 的矩阵组合。
601+
`matrix` 上下文的以下示例内容来自矩阵中的作业,该矩阵具有工作流中定义的 `os` `node` 矩阵属性。 该作业执行 `ubuntu-latest` OS 和 Node.js 版本 `16` 的矩阵组合。
602602

603603
```yaml
604604
{
@@ -609,7 +609,7 @@ The following example contents of the `matrix` context is from a job in a matrix
609609

610610
### `matrix` 上下文的示例用法
611611

612-
This example workflow creates a matrix with `os` and `node` keys. 它使用 `matrix.os` 属性为每个作业设置运行器类型,并使用 `matrix.node` 属性为每个作业设置 Node.js 版本。
612+
此示例工作流程创建一个包含 `os` `node` 键的矩阵。 它使用 `matrix.os` 属性为每个作业设置运行器类型,并使用 `matrix.node` 属性为每个作业设置 Node.js 版本。
613613

614614
```yaml{:copy}
615615
name: Test matrix

translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ CircleCI 和 {% data variables.product.prodname_actions %} 在配置文件中使
5050

5151
CircleCI 和 {% data variables.product.prodname_actions %} 都提供在工作流程中重复使用和共享任务的机制。 CircleCI 使用以 YAML 编写的概念 orbs 来提供人们可以在工作流程中重复使用的任务。 {% data variables.product.prodname_actions %} 具有强大而灵活的可重复使用的组件,称为“操作”,您可以使用 JavaScript 文件或 Docker 映像来构建操作。 您可以编写自定义代码来创建操作,以您喜欢的方式与仓库交互,包括使用 {% data variables.product.product_name %} 的 API 以及任何公开的第三方 API 进行交互。 例如,操作可以发布 npm 模块、在创建紧急议题时发送短信提醒,或者部署可用于生产的代码。 更多信息请参阅“[创建操作](/actions/creating-actions)”。
5252

53-
CircleCI 可以使用 YAML 锚点和别名来重复使用工作流程的组件。 {% data variables.product.prodname_actions %} supports the most common need for reusability using matrices. For more information about matrices, see "[Using a matrix for your jobs](/actions/using-jobs/using-a-matrix-for-your-jobs)."
53+
CircleCI 可以使用 YAML 锚点和别名来重复使用工作流程的组件。 {% data variables.product.prodname_actions %} 使用矩阵支持对可重用性的最常见需求。 有关矩阵的详细信息,请参阅“[对作业使用矩阵](/actions/using-jobs/using-a-matrix-for-your-jobs)”。
5454

5555
## 使用 Docker 映像
5656

translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-jenkins-to-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ Jenkins 可以并行运行 `stages` 和 `steps`,而 {% data variables.product.
8383
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8484
| [`parallel`](https://jenkins.io/doc/book/pipeline/syntax/#parallel) | [`jobs.<job_id>.strategy.max-parallel`](/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel) |
8585

86-
### Matrix
86+
### 矩阵
8787

88-
Both {% data variables.product.prodname_actions %} and Jenkins let you use a matrix to define various system combinations.
88+
{% data variables.product.prodname_actions %} Jenkins 都允许您使用矩阵来定义各种系统组合。
8989

9090
| Jenkins | {% data variables.product.prodname_actions %}
9191
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

translations/zh-CN/content/actions/migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ Travis CI 可以使用 `stages` 并行运行作业。 同样,{% data variables
5959

6060
Travis CI 和 {% data variables.product.prodname_actions %} 都支持状态徽章,用于表示构建是通过还是失败。 更多信息请参阅“[将工作流程状态徽章添加到仓库](/actions/managing-workflow-runs/adding-a-workflow-status-badge)”。
6161

62-
### Using a matrix
62+
### 使用矩阵
6363

64-
Travis CI and {% data variables.product.prodname_actions %} both support a matrix, allowing you to perform testing using combinations of operating systems and software packages. For more information, see "[Using a matrix for your jobs](/actions/using-jobs/using-a-matrix-for-your-jobs)."
64+
Travis CI和 {% data variables.product.prodname_actions %} 都支持矩阵,允许您使用操作系统和软件包的组合进行测试。 更多信息请参阅“[对作业使用矩阵](/actions/using-jobs/using-a-matrix-for-your-jobs)”。
6565

6666
下面是比较每个系统的语法示例:
6767

translations/zh-CN/content/actions/using-jobs/using-a-matrix-for-your-jobs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Using a matrix for your jobs
3-
shortTitle: Using a matrix
3+
shortTitle: 使用矩阵
44
intro: Create a matrix to define variations for each job.
55
versions:
66
fpt: '*'
@@ -23,27 +23,27 @@ redirect_from:
2323

2424
{% data reusables.actions.jobs.using-matrix-strategy %}
2525

26-
### Example: Using a single-dimension matrix
26+
### 示例:使用单维矩阵
2727

2828
{% data reusables.actions.jobs.single-dimension-matrix %}
2929

30-
### Example: Using a multi-dimension matrix
30+
### 示例:使用多维矩阵
3131

3232
{% data reusables.actions.jobs.multi-dimension-matrix %}
3333

34-
### Example: Using contexts to create matrices
34+
### 示例:使用上下文创建矩阵
3535

3636
{% data reusables.actions.jobs.matrix-from-context %}
3737

3838
## Expanding or adding matrix configurations
3939

4040
{% data reusables.actions.jobs.matrix-include %}
4141

42-
### Example: Expanding configurations
42+
### 示例:展开配置
4343

4444
{% data reusables.actions.jobs.matrix-expand-with-include %}
4545

46-
### Example: Adding configurations
46+
### 示例:添加配置
4747

4848
{% data reusables.actions.jobs.matrix-add-with-include %}
4949

translations/zh-CN/content/actions/using-workflows/about-workflows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105

106106
更多信息请参阅“[定义先决条件作业](/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs)”。
107107

108-
### Using a matrix
108+
### 使用矩阵
109109

110110
{% data reusables.actions.jobs.about-matrix-strategy %} The matrix is created using the `strategy` keyword, which receives the build options as an array. For example, this matrix will run the job multiple times, using different versions of Node.js:
111111

@@ -122,7 +122,7 @@ jobs:
122122
node-version: {% raw %}${{ matrix.node }}{% endraw %}
123123
```
124124

125-
For more information, see "[Using a matrix for your jobs](/actions/using-jobs/using-a-matrix-for-your-jobs)."
125+
更多信息请参阅“[对作业使用矩阵](/actions/using-jobs/using-a-matrix-for-your-jobs)”。
126126

127127
{% ifversion fpt or ghec %}
128128
### 缓存依赖项

translations/zh-CN/content/actions/using-workflows/workflow-syntax-for-github-actions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -745,33 +745,33 @@ steps:
745745

746746
## `jobs.<job_id>.strategy`
747747

748-
Use `jobs.<job_id>.strategy` to use a matrix strategy for your jobs. {% data reusables.actions.jobs.about-matrix-strategy %} For more information, see "[Using a matrix for your jobs](/actions/using-jobs/using-a-matrix-for-your-jobs)."
748+
使用 `jobs.<job_id>.strategy` 为您的任务使用矩阵策略。 {% data reusables.actions.jobs.about-matrix-strategy %} 更多信息请参阅“[对作业使用矩阵](/actions/using-jobs/using-a-matrix-for-your-jobs)”。
749749

750750
### `jobs.<job_id>.strategy.matrix`
751751

752752
{% data reusables.actions.jobs.using-matrix-strategy %}
753753

754-
#### Example: Using a single-dimension matrix
754+
#### 示例:使用单维矩阵
755755

756756
{% data reusables.actions.jobs.single-dimension-matrix %}
757757

758-
#### Example: Using a multi-dimension matrix
758+
#### 示例:使用多维矩阵
759759

760760
{% data reusables.actions.jobs.multi-dimension-matrix %}
761761

762-
#### Example: Using contexts to create matrices
762+
#### 示例:使用上下文创建矩阵
763763

764764
{% data reusables.actions.jobs.matrix-from-context %}
765765

766766
### `jobs.<job_id>.strategy.matrix.include`
767767

768768
{% data reusables.actions.jobs.matrix-include %}
769769

770-
#### Example: Expanding configurations
770+
#### 示例:展开配置
771771

772772
{% data reusables.actions.jobs.matrix-expand-with-include %}
773773

774-
#### Example: Adding configurations
774+
#### 示例:添加配置
775775

776776
{% data reusables.actions.jobs.matrix-add-with-include %}
777777

translations/zh-CN/content/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ name: Dependabot auto-merge
465465
on: pull_request_target
466466
467467
permissions:
468-
pull-requests: write
469468
contents: write
470469
471470
jobs:
@@ -497,7 +496,6 @@ name: Dependabot auto-merge
497496
on: pull_request
498497
499498
permissions:
500-
pull-requests: write
501499
contents: write
502500
503501
jobs:

0 commit comments

Comments
 (0)