Skip to content

Commit 8d460fe

Browse files
New translation batch for cn (#25134)
* 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 Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
1 parent 154ed18 commit 8d460fe

11 files changed

Lines changed: 75 additions & 43 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ env:
5050
5151
作为表达式的一部分,您可以使用 `boolean`、`null`、`number` 或 `string` 数据类型。
5252

53-
| 数据类型 | 文字值 |
54-
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55-
| `布尔值` | `true` 或 `false` |
56-
| `null` | `null` |
57-
| `number` | JSON 支持的任何数字格式。 |
58-
| `字符串` | You don't need to enclose strings in {% raw %}${{{% endraw %} and {% raw %}}}{% endraw %}. However, if you do, you must use single quotes around the string and escape literal single quotes with an additional single quote. |
53+
| 数据类型 | 文字值 |
54+
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55+
| `布尔值` | `true` 或 `false` |
56+
| `null` | `null` |
57+
| `number` | JSON 支持的任何数字格式。 |
58+
| `字符串` | You don't need to enclose strings in `{% raw %}${{{% endraw %}` and `{% raw %}}}{% endraw %}`. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). Wrapping with double quotes (`"`) will throw an error. |
5959

6060
#### 示例
6161

translations/zh-CN/content/actions/using-workflows/events-that-trigger-workflows.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,6 @@ on:
917917
```yaml
918918
on:
919919
push:
920-
types:
921-
- opened
922920
branches:
923921
- 'releases/**'
924922
paths:
@@ -960,8 +958,6 @@ on:
960958
```yaml
961959
on:
962960
push:
963-
types:
964-
- opened
965961
branches:
966962
- 'releases/**'
967963
paths:
@@ -996,9 +992,9 @@ on:
996992

997993
### `发行版`
998994

999-
| Web 挂钩事件有效负载 | 活动类型 | `GITHUB_SHA` | `GITHUB_REF` |
1000-
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------ |
1001-
| [`发行版`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#release) | - `published` <br/>- `unpublished` <br/>- `created` <br/>- `edited` <br/>- `deleted` <br/>- `prereleased`<br/> - `released` | 标记的发行版中的最新提交 | 发行版标记 |
995+
| Web 挂钩事件有效负载 | 活动类型 | `GITHUB_SHA` | `GITHUB_REF` |
996+
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------------------------------------------- |
997+
| [`发行版`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#release) | - `published` <br/>- `unpublished` <br/>- `created` <br/>- `edited` <br/>- `deleted` <br/>- `prereleased`<br/> - `released` | 标记的发行版中的最新提交 | Tag ref of release `refs/tags/<tag_name>` |
1002998

1003999
{% note %}
10041000

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ services:
830830
image: ghcr.io/owner/myservice1
831831
credentials:
832832
username: ${{ github.actor }}
833-
password: ${{ secrets.ghcr_token }}
833+
password: ${{ secrets.github_token }}
834834
myservice2:
835835
image: dockerhub_org/myservice2
836836
credentials:

translations/zh-CN/content/admin/enterprise-management/configuring-clustering/differences-between-clustering-and-high-availability-ha.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ shortTitle: 选择集群或 HA
3535

3636
## 备份和灾难恢复
3737

38-
HA 或集群都不应被视为常规备份的替代品。 更多信息请参阅“[在设备上配置备份](/enterprise/admin/guides/installation/configuring-backups-on-your-appliance)”。
38+
Neither HA nor Clustering should be considered a replacement for regular backups. 更多信息请参阅“[在设备上配置备份](/enterprise/admin/guides/installation/configuring-backups-on-your-appliance)”。
3939

4040
## 监视
4141

translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials.md

Lines changed: 51 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,32 @@ shortTitle: 使用 2FA 找回帐户
2020

2121
{% warning %}
2222

23-
**警告**:{% data reusables.two_fa.support-may-not-help %}
23+
**警告**
24+
25+
- {% data reusables.two_fa.support-may-not-help %}
26+
- {% data reusables.accounts.you-must-know-your-password %}
2427

2528
{% endwarning %}
2629

2730
{% endif %}
2831

2932
## 使用双因素身份验证恢复代码
3033

31-
使用您的恢复代码之一自动重新进入您的帐户。 您可能已将恢复代码保存到密码管理器或计算机的下载文件夹中。 恢复代码的默认文件名为 `github-recovery-codes.txt`。 有关恢复代码的更多信息,请参阅“[配置双因素身份验证恢复方法](/articles/configuring-two-factor-authentication-recovery-methods#downloading-your-two-factor-authentication-recovery-codes)”。
34+
使用您的恢复代码之一自动重新进入您的帐户。 您可能已将恢复代码保存到密码管理器或计算机的下载文件夹中。 恢复代码的默认文件名为 `github-recovery-codes.txt`。 有关恢复代码的更多信息,请参阅“[配置双因素身份验证恢复方法](/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods#downloading-your-two-factor-authentication-recovery-codes)”。
3235

33-
{% data reusables.two_fa.username-password %}{% ifversion fpt or ghec %}
34-
2. 在“Having Problems?(有问题?)”下,单击 **Enter a two-factor recovery code(输入双重恢复代码)**![Link to use a recovery code](/assets/images/help/2fa/2fa-recovery-code-link.png){% else %}
35-
2. 在 2FA 页面上的“Don't have your phone?(没有您的电话?)”下,单击 **Enter a two-factor recovery code(输入双因素恢复代码)**![Link to use a recovery code](/assets/images/help/2fa/2fa_recovery_dialog_box.png){% endif %}
36-
3. 输入恢复代码之一,然后单击 **Verify(验证)**![输入恢复代码的字段和验证按钮](/assets/images/help/2fa/2fa-type-verify-recovery-code.png)
36+
{% data reusables.two_fa.username-password %}
37+
38+
{% ifversion fpt or ghec %}
39+
1. Under "Having problems?", click **Use a recovery code or request a reset**.
40+
41+
![Screenshot of link to use a recovery code](/assets/images/help/2fa/2fa-recovery-code-link.png)
42+
{%- else %}
43+
1. 在 2FA 页面上的“Don't have your phone?(没有您的电话?)”下,单击 **Enter a two-factor recovery code(输入双因素恢复代码)**
44+
45+
![Screenshot of link to use a recovery code](/assets/images/help/2fa/2fa_recovery_dialog_box.png){% endif %}
46+
1. 输入恢复代码之一,然后单击 **Verify(验证)**
47+
48+
![输入恢复代码的字段和验证按钮](/assets/images/help/2fa/2fa-type-verify-recovery-code.png)
3749

3850
{% ifversion fpt or ghec %}
3951
## 使用后备号码进行身份验证
@@ -43,38 +55,52 @@ shortTitle: 使用 2FA 找回帐户
4355

4456
## 使用安全密钥进行身份验证
4557

46-
如果您使用安全密钥配置双重身份验证,则可以使用安全密钥作为辅助身份验证方法来自动重新获得对帐户的访问权限。 更多信息请参阅“[配置双重身份验证](/articles/configuring-two-factor-authentication#configuring-two-factor-authentication-using-a-security-key)”。
58+
如果您使用安全密钥配置双重身份验证,则可以使用安全密钥作为辅助身份验证方法来自动重新获得对帐户的访问权限。 更多信息请参阅“[配置双重身份验证](/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-a-security-key)”。
4759

4860
{% ifversion fpt or ghec %}
4961
## 使用经过验证的设备、SSH 令牌或个人访问令牌进行身份验证
5062

51-
如果您知道 {% data variables.product.product_name %} 密码但无法访问双重身份验证凭据,或没有双重身份验证恢复代码,则可以将一次性密码发送到经验证的电子邮件地址,以开始验证过程,重新获得对帐户的访问权限。
63+
If you know your password for {% data variables.product.product_location %} but don't have the two-factor authentication credentials or your two-factor authentication recovery codes, you can have a one-time password sent to your verified email address to begin the verification process and regain access to your account.
5264

5365
{% note %}
5466

55-
****:出于安全原因,使用一次性密码验证来重新获得帐户访问权限可能需要 3-5 个工作日。 在此期间提交的其他请求将不予审查。
67+
****:出于安全原因,使用一次性密码验证来重新获得帐户访问权限可能需要 1-3 个工作日。 {% data variables.product.company_short %} will not review additional requests submitted during this time.
5668

5769
{% endnote %}
5870

5971
在这 3-5 天的等待期内,您随时可以使用双重身份验证凭据或双重身份验证恢复代码重新获得对帐户的访问权限。
6072

61-
1. 输入您的用户名和密码以提示身份验证。 如果您不知道 {% data variables.product.product_name %} 密码,将无法生成一次性密码。
62-
2. 在“Having Problems?(有问题?)”下,单击 **Can't access your two factor device or valid recovery codes?(无法访问双重设备或有效的恢复代码?)**![没有 2fa 设备或恢复码时的链接](/assets/images/help/2fa/no-access-link.png)
63-
3. 单击 **I understand, get started(我理解,开始)**请求重置身份验证设置。 ![重置身份验证设置按钮](/assets/images/help/2fa/reset-auth-settings.png)
64-
4. 单击 **Send one-time password(发送一次性密码)**向与您的帐户关联的所有电子邮件地址发送一次性密码。 ![发送一次性密码按钮](/assets/images/help/2fa/send-one-time-password.png)
65-
5. Under "One-time password", type the temporary password from the recovery email {% data variables.product.prodname_dotcom %} sent. ![一次性密码字段](/assets/images/help/2fa/one-time-password-field.png)
66-
6. 单击 **Verify email address(验证电子邮件地址)**
67-
7. 选择替代验证因素。
73+
1. 输入您的用户名和密码以提示身份验证。
74+
75+
{% warning %}
76+
77+
**Warning**: {% data reusables.accounts.you-must-know-your-password %}
78+
79+
{% endwarning %}
80+
1. Under "Having problems?", click **Use a recovery code or request a reset**.
81+
82+
![Screenshot of link if you don't have your 2fa device or recovery codes](/assets/images/help/2fa/no-access-link.png)
83+
1. To the right of "Locked out?", click **Try recovering your account**.
84+
85+
![Screenshot of link to try recovering your account](/assets/images/help/2fa/try-recovering-your-account-link.png)
86+
1. 单击 **I understand, get started(我理解,开始)**请求重置身份验证设置。
87+
88+
![Screenshot of button to start reset of authentication settings](/assets/images/help/2fa/reset-auth-settings.png)
89+
1. Click **Send one-time password** to send a one-time password to all eligible addresses associated with your account. Only verified emails are eligible for account recovery. If you've restricted password resets to your primary and/or backup addresses, these addresses are the only addresses eligible for account recovery.
90+
91+
![Screenshot of button to send one-time password](/assets/images/help/2fa/send-one-time-password.png)
92+
1. Under "One-time password", type the temporary password from the recovery email {% data variables.product.prodname_dotcom %} sent.
93+
94+
![Screenshot of field to type one-time password](/assets/images/help/2fa/one-time-password-field.png)
95+
1. 单击 **Verify email address(验证电子邮件地址)**
96+
97+
![Screenshot of button to verify email address](/assets/images/help/2fa/verify-email-address.png)
98+
1. 选择替代验证因素。
6899
- 如果您之前已经使用当前设备登录此帐户,并且想使用该设备进行验证,请单击 **Verify with this device(使用此设备进行验证)**
69100
- 如果您之前已在此帐户上设置 SSH 密钥,并且想使用此 SSH 密钥进行验证,请单击 **SSH key(SSH 密钥)**
70-
- 如果您之前已经设置个人访问令牌,并且想使用个人访问令牌进行验证,请单击 **Personal access token(个人访问令牌)**![替代验证按钮](/assets/images/help/2fa/alt-verifications.png)
71-
8. {% data variables.contact.github_support %} 的成员将在 3-5 个工作日内审查您的请求并给您发送电子邮件。 如果您的请求获得批准,您将收到一个完成帐户恢复过程的链接。 如果您的请求被拒绝,电子邮件将说明就任何其他问题联系支持的方式。
72-
73-
{% endif %}
101+
- 如果您之前已经设置个人访问令牌,并且想使用个人访问令牌进行验证,请单击 **Personal access token(个人访问令牌)**
74102

75-
## 延伸阅读
103+
![Screenshot of buttons for alternative verification](/assets/images/help/2fa/alt-verifications.png)
104+
1. {% data variables.contact.github_support %} 的成员将在 1-3 个工作日内审查您的请求并给您发送电子邮件。 如果您的请求获得批准,您将收到一个完成帐户恢复过程的链接。 如果您的请求被拒绝,电子邮件将说明就任何其他问题联系支持的方式。
76105

77-
- "[关于双重身份验证](/articles/about-two-factor-authentication)"
78-
- "[配置双重身份验证](/articles/configuring-two-factor-authentication)"
79-
- "[配置双重身份验证恢复方法](/articles/configuring-two-factor-authentication-recovery-methods)"
80-
-[使用双重身份验证访问 {% data variables.product.prodname_dotcom %}](/articles/accessing-github-using-two-factor-authentication)”。
106+
{% endif %}

translations/zh-CN/content/code-security/getting-started/github-security-features.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ Automatically detect tokens or credentials that have been checked into a reposit
8383
在合并拉取请求之前显示依赖项更改的全部影响以及任何有漏洞版本的详情。 更多信息请参阅“[关于依赖项审查](/code-security/supply-chain-security/about-dependency-review)”。
8484
{% endif %}
8585

86+
{% ifversion ghec or ghes > 3.1 %}
87+
### 安全概述
88+
89+
Review the security configuration and alerts for your organization and identify the repositories at greatest risk. For more information, see "[About the security overview](/code-security/security-overview/about-the-security-overview)."
90+
{% endif %}
91+
8692
## 延伸阅读
8793
-[{% data variables.product.prodname_dotcom %} 的产品](/github/getting-started-with-github/githubs-products)
8894
- "[{% data variables.product.prodname_dotcom %} 语言支持](/github/getting-started-with-github/github-language-support)"

translations/zh-CN/content/rest/reference/enterprise-admin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You can also read the current version by calling the [meta endpoint](/rest/refer
6868

6969
{% endif %}
7070

71-
{% ifversion fpt or ghec or ghes > 3.2 %}
71+
{% ifversion fpt or ghec or ghes > 3.2 or ghae-issue-5528 %}
7272

7373
## Audit log
7474

translations/zh-CN/content/rest/reference/permissions-required-for-github-apps.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ _团队_
921921
{% ifversion fpt or ghes > 3.0 or ghae -%}
922922
- [`GET /repos/:owner/:repo/code-scanning/sarifs/:sarif_id`](/rest/reference/code-scanning#get-information-about-a-sarif-upload) (:read)
923923
{% endif -%}
924+
{% ifversion fpt or ghec or ghes > 3.4 or ghae-issue-5435 -%}
925+
- [`GET /orgs/:org/code-scanning/alerts`](/rest/reference/code-scanning#list-code-scanning-alerts-by-organization) (:read)
926+
{% endif -%}
924927

925928
{% ifversion fpt or ghes or ghec %}
926929
### 有关“自托管运行器”的权限
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
If you protect your personal account with two-factor authentication but do not know your password, you will not be able to generate a one-time password to recover your account. {% data variables.product.company_short %} can send a password reset email to a verified address associated with your account. For more information, see "[Updating your {% data variables.product.prodname_dotcom %} access credentials](/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials#requesting-a-new-password)."

translations/zh-CN/data/reusables/actions/jobs/section-running-jobs-in-a-container-credentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ container:
88
image: ghcr.io/owner/image
99
credentials:
1010
username: ${{ github.actor }}
11-
password: ${{ secrets.ghcr_token }}
11+
password: ${{ secrets.github_token }}
1212
```
1313
{% endraw %}

0 commit comments

Comments
 (0)