Skip to content

Commit 95e0073

Browse files
docubotrsese
andauthored
New translation batch for cn (#26301)
* 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 25ad3b5 commit 95e0073

File tree

30 files changed

+265
-245
lines changed

30 files changed

+265
-245
lines changed

translations/log/cn-resets.csv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ translations/zh-CN/content/admin/packages/enabling-github-packages-with-minio.md
6767
translations/zh-CN/content/admin/packages/getting-started-with-github-packages-for-your-enterprise.md,broken liquid tags
6868
translations/zh-CN/content/admin/packages/quickstart-for-configuring-your-minio-storage-bucket-for-github-packages.md,broken liquid tags
6969
translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-advanced-security-in-your-enterprise.md,broken liquid tags
70+
translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md,broken liquid tags
7071
translations/zh-CN/content/admin/policies/enforcing-policy-with-pre-receive-hooks/creating-a-pre-receive-hook-script.md,broken liquid tags
7172
translations/zh-CN/content/admin/user-management/managing-organizations-in-your-enterprise/creating-teams.md,broken liquid tags
7273
translations/zh-CN/content/admin/user-management/managing-repositories-in-your-enterprise/configuring-git-large-file-storage-for-your-enterprise.md,broken liquid tags
7374
translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/promoting-or-demoting-a-site-administrator.md,broken liquid tags
75+
translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/roles-in-an-enterprise.md,parsing error
7476
translations/zh-CN/content/admin/user-management/managing-users-in-your-enterprise/suspending-and-unsuspending-users.md,broken liquid tags
7577
translations/zh-CN/content/admin/user-management/migrating-data-to-and-from-your-enterprise/exporting-migration-data-from-githubcom.md,broken liquid tags
7678
translations/zh-CN/content/admin/user-management/migrating-data-to-and-from-your-enterprise/exporting-migration-data-from-your-enterprise.md,broken liquid tags
@@ -222,7 +224,7 @@ translations/zh-CN/content/rest/overview/other-authentication-methods.md,broken
222224
translations/zh-CN/content/rest/overview/resources-in-the-rest-api.md,Listed in localization-support#489
223225
translations/zh-CN/content/rest/reference/enterprise-admin.md,broken liquid tags
224226
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/about-searching-on-github.md,broken liquid tags
225-
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/enabling-githubcom-repository-search-from-your-private-enterprise-environment.md,broken liquid tags
227+
translations/zh-CN/content/search-github/getting-started-with-searching-on-github/enabling-githubcom-repository-search-from-your-private-enterprise-environment.md,parsing error
226228
translations/zh-CN/content/sponsors/getting-started-with-github-sponsors/about-github-sponsors.md,broken liquid tags
227229
translations/zh-CN/content/sponsors/receiving-sponsorships-through-github-sponsors/about-github-sponsors-for-open-source-contributors.md,broken liquid tags
228230
translations/zh-CN/content/support/contacting-github-support/creating-a-support-ticket.md,broken liquid tags

translations/zh-CN/content/actions/creating-actions/developing-a-third-party-cli-action.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Developing a third party CLI action
3-
shortTitle: CLI setup action
4-
intro: 'Learn how to develop an action to set up a CLI on {% data variables.product.prodname_actions %} runners.'
2+
title: 开发第三方 CLI 操作
3+
shortTitle: CLI 设置操作
4+
intro: '了解如何开发操作以在 {% data variables.product.prodname_actions %} 运行器上设置 CLI。'
55
redirect_from: []
66
versions:
77
fpt: '*'
@@ -13,27 +13,27 @@ topics:
1313

1414
## 简介
1515

16-
You can write an action to provide a way for users to access your servers via a configured CLI environment on {% data variables.product.prodname_actions %} runners.
16+
您可以编写操作,为用户提供一种通过 {% data variables.product.prodname_actions %} 运行器上配置的 CLI 环境访问服务器的方法。
1717

18-
Your action should:
18+
您的操作应:
1919

20-
- Make it simple for users to specify the version of the CLI to install
21-
- Support multiple operating systems
22-
- Run in an efficient fashion to minimize run-time and associated costs
23-
- Work across {% data variables.product.product_name %}-hosted and self-hosted runners
24-
- Leverage community tooling when possible
20+
- 使用户能够轻松指定要安装的 CLI 版本
21+
- 支持多种操作系统
22+
- 以高效的方式运行,以最大限度地减少运行时间和相关成本
23+
- {% data variables.product.product_name %} 托管和自托管运行器工作
24+
- 尽可能利用社区工具
2525

26-
This article will demonstrate how to write an action that retrieves a specific version of your CLI, installs it, adds it to the path, and (optionally) caches it. This type of action (an action that sets up a tool) is often named `setup-$TOOL`.
26+
本文将演示如何编写一个操作来检索特定版本的 CLI、安装它、将其添加到路径以及(可选)缓存它。 这种类型的操作(设置工具的操作)通常命名为 `setup-$TOOL`
2727

2828
## 基本要求
2929

30-
You should have an understanding of how to write a custom action. For more information, see "[About custom actions](/actions/creating-actions/about-custom-actions)". For a more detailed guide on how to write a custom action, see "[Creating a JavaScript action](/actions/creating-actions/creating-a-javascript-action)."
30+
您应该了解如何编写自定义操作。 更多信息请参阅“[关于自定义操作](/actions/creating-actions/about-custom-actions)”。 有关如何编写自定义操作的更详细指南,请参阅“[创建 JavaScript 操作](/actions/creating-actions/creating-a-javascript-action)”。
3131

3232
## 示例
3333

34-
The following script demonstrates how you can get a user-specified version as input, download and extract the specific version of your CLI, then add the CLI to the path.
34+
以下脚本演示如何获取用户指定的版本作为输入,下载并提取 CLI 的特定版本,然后将 CLI 添加到路径中。
3535

36-
{% data variables.product.prodname_dotcom %} provides [`actions/toolkit`](https://github.com/actions/toolkit), which is a set of packages that helps you create actions. This example uses the [`actions/core`](https://github.com/actions/toolkit/tree/main/packages/core) and [`actions/tool-cache`](https://github.com/actions/toolkit/tree/main/packages/tool-cache) packages.
36+
{% data variables.product.prodname_dotcom %} 提供了 [`actions/toolkit`](https://github.com/actions/toolkit),这是一组可帮助您创建操作的包。 此示例使用 [`actions/core`](https://github.com/actions/toolkit/tree/main/packages/core) [`actions/tool-cache`](https://github.com/actions/toolkit/tree/main/packages/tool-cache) 包。
3737

3838
{% raw %}
3939
```javascript{:copy}
@@ -58,13 +58,13 @@ module.exports = setup
5858
```
5959
{% endraw %}
6060

61-
To use this script, replace `getDownloadURL` with a function that downloads your CLI. You will also need to create an actions metadata file (`action.yml`) that accepts a `version` input and that runs this script. For full details about how to create an action, see "[Creating a JavaScript action](/actions/creating-actions/creating-a-javascript-action)."
61+
要使用此脚本,请将 `getDownloadURL` 替换为下载 CLI 的函数。 您还需要创建接受 `version` 输入并运行此脚本的操作元数据文件 (`action.yml`)。 有关如何创建操作的完整详细信息,请参阅“[创建 JavaScript 操作](/actions/creating-actions/creating-a-javascript-action)”。
6262

63-
For a full example of how to set up this action, see [example-setup-gh](https://github.com/github-developer/example-setup-gh).
63+
有关如何设置此操作的完整示例,请参阅 [example-setup-gh](https://github.com/github-developer/example-setup-gh)
6464

6565
## 延伸阅读
6666

67-
This pattern is employed in several actions. For more examples, see:
67+
此模式用于多个操作。 有关更多示例,请参阅:
6868

6969
* [`ruby/setup-ruby`](https://github.com/ruby/setup-ruby)
7070
* [`google-github-actions/setup-gcloud`](https://github.com/google-github-actions/setup-gcloud)

translations/zh-CN/content/actions/guides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Guides for GitHub Actions
2+
title: GitHub Actions 指南
33
intro: '{% data variables.product.prodname_actions %} 的这些指南包含具体的使用案例和示例来帮助您配置工作流程。'
44
allowTitleToDifferFromFilename: true
55
layout: product-guides

translations/zh-CN/content/actions/managing-workflow-runs/skipping-workflow-runs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 跳过工作流程运行
3-
intro: You can skip workflow runs triggered by the `push` and `pull_request` events by including a command in your commit message.
3+
intro: 您可以通过在提交消息中包含命令来跳过由 `push` `pull_request` 事件触发的工作流程运行。
44
versions:
55
fpt: '*'
66
ghes: '*'
@@ -30,4 +30,4 @@ shortTitle: 跳过工作流程运行
3030

3131
{% endnote %}
3232

33-
Skip instructions only apply to the workflow run(s) that would be triggered by the commit that contains the skip instructions. You can also disable a workflow from running. 更多信息请参阅“[禁用和启用工作流程](/actions/managing-workflow-runs/disabling-and-enabling-a-workflow)
33+
跳过指令仅适用于由包含跳过指令的提交触发的工作流程运行。 您还可以禁用工作流程的运行。 更多信息请参阅“[禁用和启用工作流程](/actions/managing-workflow-runs/disabling-and-enabling-a-workflow)

translations/zh-CN/content/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 工作流程运行通知
3-
intro: You can subscribe to notifications about workflow runs that you trigger.
3+
intro: 您可以订阅有关触发的工作流程运行的通知。
44
versions:
55
fpt: '*'
66
ghes: '*'

translations/zh-CN/content/admin/configuration/configuring-your-enterprise/about-enterprise-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ shortTitle: 关于配置
2323
{% endif %}
2424

2525
{% ifversion ghae %}
26-
To get started with {% data variables.product.product_name %}, you first need to deploy {% data variables.product.product_name %}. For more information, see "[Deploying {% data variables.product.product_name %}](/admin/configuration/configuring-your-enterprise/deploying-github-ae)."
26+
要开始使用 {% data variables.product.product_name %},需要先部署 {% data variables.product.product_name %}。 更多信息请参阅“[部署 {% data variables.product.product_name %}](/admin/configuration/configuring-your-enterprise/deploying-github-ae)”。
2727

2828
第一次访问您的企业时,您将完成初始配置,以便 {% data variables.product.product_name %} 可供使用。 初始配置包括连接您的企业与身份提供程序 (IdP) 连接、通过 SAML SSO 进行身份验证、配置企业中仓库和组织的策略,以及为出站电子邮件配置 SMTP。 更多信息请参阅“[初始化 {% data variables.product.prodname_ghe_managed %}](/admin/configuration/initializing-github-ae)。”
2929

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Enforcing policies for dependency insights in your enterprise
3-
intro: 'You can enforce policies for dependency insights within your enterprise''s organizations, or allow policies to be set in each organization.'
2+
title: 在企业中实施依赖性见解的策略
3+
intro: 您可以在企业组织内执行依赖性见解策略,或允许在每个组织中设置策略。
44
permissions: Enterprise owners can enforce policies for dependency insights in an enterprise.
55
redirect_from:
66
- /articles/enforcing-a-policy-on-dependency-insights
@@ -16,19 +16,19 @@ topics:
1616
- Enterprise
1717
- Organizations
1818
- Policies
19-
shortTitle: Policies for dependency insights
19+
shortTitle: 依赖性见解策略
2020
---
2121

22-
## About policies for dependency insights in your enterprise
22+
## 关于企业中的依赖性见解策略
2323

24-
Dependency insights show all packages that repositories within your enterprise's organizations depend on. Dependency insights include aggregated information about security advisories and licenses. 更多信息请参阅“[查看用于组织的洞见](/organizations/collaborating-with-groups-in-organizations/viewing-insights-for-your-organization)”。
24+
依赖性见解显示企业组织内的存储库所依赖的所有包。 依赖性见解包括有关安全公告和许可的汇总信息。 更多信息请参阅“[查看用于组织的洞见](/organizations/collaborating-with-groups-in-organizations/viewing-insights-for-your-organization)”。
2525

26-
## Enforcing a policy for visibility of dependency insights
26+
## 实施依赖性见解的可见性策略
2727

28-
Across all organizations owned by your enterprise, you can control whether organization members can view dependency insights. You can also allow owners to administer the setting on the organization level. 更多信息请参阅“[更改组织依赖项洞察的可见性](/organizations/managing-organization-settings/changing-the-visibility-of-your-organizations-dependency-insights)”。
28+
在企业拥有的所有组织中,您可以控制组织成员是否可以查看依赖性见解。 您还可以允许所有者在组织级别管理设置。 更多信息请参阅“[更改组织依赖项洞察的可见性](/organizations/managing-organization-settings/changing-the-visibility-of-your-organizations-dependency-insights)”。
2929

3030
{% data reusables.enterprise-accounts.access-enterprise %}
3131
{% data reusables.enterprise-accounts.policies-tab %}
32-
3. In the left sidebar, click **Organizations**. ![Organizations tab in the enterprise sidebar](/assets/images/help/business-accounts/settings-policies-org-tab.png)
32+
3. 在左侧栏中,单击,单击 **Organizations(组织)** ![企业边栏中的 Organizations(组织)选项卡](/assets/images/help/business-accounts/settings-policies-org-tab.png)
3333
4. 在“Organization policies”(组织政策)下。审查有关更改设置的信息。 {% data reusables.enterprise-accounts.view-current-policy-config-orgs %}
3434
5. 在“Organization projects”(组织项目)下,使用下拉菜单并选择策略。 ![带有组织策略选项的下拉菜单](/assets/images/help/business-accounts/organization-policy-drop-down.png)

translations/zh-CN/content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ shortTitle: GitHub Actions policies
2727

2828
{% data reusables.actions.enterprise-beta %}
2929

30-
## 关于企业中 {% data variables.product.prodname_actions %} 的策略
30+
## About policies for {% data variables.product.prodname_actions %} in your enterprise
3131

3232
{% data variables.product.prodname_actions %} helps members of your enterprise automate software development workflows on {% data variables.product.product_name %}. For more information, see "[Understanding {% data variables.product.prodname_actions %}](/actions/learn-github-actions/understanding-github-actions)."
3333

34-
{% ifversion ghes %}If you enable {% data variables.product.prodname_actions %}, any{% else %}Any{% endif %} organization on {% data variables.product.product_location %} can use {% data variables.product.prodname_actions %}. 您可以执行策略来控制 {% data variables.product.product_name %} 上的企业成员如何使用 {% data variables.product.prodname_actions %} By default, organization owners can manage how members use {% data variables.product.prodname_actions %}. For more information, see "[Disabling or limiting {% data variables.product.prodname_actions %} for your organization](/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization)."
34+
{% ifversion ghes %}If you enable {% data variables.product.prodname_actions %}, any{% else %}Any{% endif %} organization on {% data variables.product.product_location %} can use {% data variables.product.prodname_actions %}. You can enforce policies to control how members of your enterprise on {% data variables.product.product_name %} use {% data variables.product.prodname_actions %}. By default, organization owners can manage how members use {% data variables.product.prodname_actions %}. For more information, see "[Disabling or limiting {% data variables.product.prodname_actions %} for your organization](/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization)."
3535

3636
## Enforcing a policy to restrict the use of actions in your enterprise
3737

38-
您可以选择对企业中的所有组织禁用 {% data variables.product.prodname_actions %},或只允许特定的组织。 您还可以限制公共操作的使用,以使人们只能使用您的企业中存在的本地操作。
38+
You can choose to disable {% data variables.product.prodname_actions %} for all organizations in your enterprise, or only allow specific organizations. You can also limit the use of public actions, so that people can only use local actions that exist in your enterprise.
3939

4040
{% data reusables.enterprise-accounts.access-enterprise %}
4141
{% data reusables.enterprise-accounts.policies-tab %}
4242
{% data reusables.enterprise-accounts.actions-tab %}
4343
{% data reusables.actions.enterprise-actions-permissions %}
44-
1. 单击 **Save(保存)**
44+
1. Click **Save**.
4545

4646
{% ifversion ghec or ghes or ghae %}
4747

@@ -52,11 +52,11 @@ shortTitle: GitHub Actions policies
5252
{% data reusables.enterprise-accounts.access-enterprise %}
5353
{% data reusables.enterprise-accounts.policies-tab %}
5454
{% data reusables.enterprise-accounts.actions-tab %}
55-
1. **Policies(策略)**下,选择 **Allow select actions(允许选择操作)**并将所需操作添加到列表中。
55+
1. Under **Policies**, select **Allow select actions** and add your required actions to the list.
5656
{%- ifversion ghes or ghae-issue-5094 %}
57-
![添加操作到允许列表](/assets/images/help/organizations/enterprise-actions-policy-allow-list.png)
57+
![Add actions to allow list](/assets/images/help/organizations/enterprise-actions-policy-allow-list.png)
5858
{%- elsif ghae %}
59-
![添加操作到允许列表](/assets/images/enterprise/github-ae/enterprise-actions-policy-allow-list.png)
59+
![Add actions to allow list](/assets/images/enterprise/github-ae/enterprise-actions-policy-allow-list.png)
6060
{%- endif %}
6161
{% endif %}
6262

@@ -117,14 +117,15 @@ If a policy is enabled for an enterprise, the policy can be selectively disabled
117117

118118
{% data reusables.actions.workflow-permissions-intro %}
119119

120-
您可以在企业、组织或仓库的设置中为 `GITHUB_TOKEN` 设置默认权限。 如果您在企业设置中选择受限制的选项为默认值,这将防止在组织或仓库设置中选择更多的允许设置。
120+
You can set the default permissions for the `GITHUB_TOKEN` in the settings for your enterprise, organizations, or repositories. If you choose the restricted option as the default in your enterprise settings, this prevents the more permissive setting being chosen in the organization or repository settings.
121121

122122
{% data reusables.actions.workflow-permissions-modifying %}
123123

124124
{% data reusables.enterprise-accounts.access-enterprise %}
125125
{% data reusables.enterprise-accounts.policies-tab %}
126126
{% data reusables.enterprise-accounts.actions-tab %}
127-
1.**Workflow permissions(工作流程权限)**下,选择您是否想要 `GITHUB_TOKENN` 读写所有范围限, 或者只读`内容`范围。 ![为此企业设置 GITHUB_TOKENN 权限](/assets/images/help/settings/actions-workflow-permissions-enterprise.png)
128-
1. 单击 **Save(保存)**以应用设置。
127+
1. Under **Workflow permissions**, choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents` scope.
128+
![Set GITHUB_TOKEN permissions for this enterprise](/assets/images/help/settings/actions-workflow-permissions-enterprise.png)
129+
1. Click **Save** to apply the settings.
129130

130131
{% endif %}

0 commit comments

Comments
 (0)