Skip to content

Commit 65b7141

Browse files
docubotPeter Bengtsson
andauthored
New translation batch for cn (#24287)
* 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: Peter Bengtsson <[email protected]>
1 parent abb2c01 commit 65b7141

File tree

15 files changed

+221
-197
lines changed

15 files changed

+221
-197
lines changed

translations/zh-CN/content/account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ shortTitle: 管理您的订阅
2424

2525
## 选择如何取消订阅
2626

27-
要快速取消关注(或取消订阅)仓库,请转到“Watched repositories(已关注仓库)”页面,您可以在该页面查看您当前关注的所有仓库。 更多信息请参阅“[取消关注仓库](#unwatch-a-repository)”。
27+
To unwatch (or unsubscribe from) repositories quickly, navigate to [github.com/watching](https://github.com/watching) to see all the repositories you're following. For more information, see "[Unwatching repositories](#unwatching-repositories)."
2828

2929
要同时取消订阅多个通知,您可以使用收件箱或订阅页面上取消订阅。 相比“Watched repositories(已关注仓库)”页面,这两个选项可提供有关您的订阅的更多上下文。
3030

@@ -55,19 +55,32 @@ shortTitle: 管理您的订阅
5555

5656
2. 选择要取消订阅的通知。 在右上角单击 **Unsubscribe(取消订阅)**![订阅页面](/assets/images/help/notifications-v2/unsubscribe-from-subscriptions-page.png)
5757

58-
## 取消关注仓库
58+
## Unwatching repositories
5959

6060
当您取消关注某个仓库时,您将取消订阅该仓库的未来更新,除非您参与对话或被 @提及。
6161

6262
{% data reusables.notifications.access_notifications %}
63-
1. 在左侧边栏中的仓库列表下,使用“Manage notifications(管理通知)”下拉按钮单击 **Watched repositories(已关注的仓库)**![管理通知下拉菜单选项](/assets/images/help/notifications-v2/manage-notifications-options.png)
63+
1. 在左侧边栏中的仓库列表下,使用“Manage notifications(管理通知)”下拉按钮单击 **Watched repositories(已关注的仓库)**
64+
65+
![管理通知下拉菜单选项](/assets/images/help/notifications-v2/manage-notifications-options.png)
66+
6467
2. 在关注的仓库页面上,评估您关注的仓库后,选择是否:
65-
{% ifversion fpt or ghes > 3.0 or ghae or ghec %}
66-
- 取消关注仓库
67-
- 忽略某仓库的所有通知
68-
- 自定义接收通知的事件类型 ({% data reusables.notifications-v2.custom-notification-types %},如果启用)
69-
{% else %}
70-
- 取消关注仓库
71-
- 只关注某仓库的发行版
72-
- 忽略某仓库的所有通知
73-
{% endif %}
68+
{%- ifversion fpt or ghes > 3.0 or ghae or ghec %}
69+
- 取消关注仓库
70+
- 忽略某仓库的所有通知
71+
- If enabled, customize the types of event you receive notifications for ({% data reusables.notifications-v2.custom-notification-types %})
72+
{%- else %}
73+
- 取消关注仓库
74+
- 只关注某仓库的发行版
75+
- 忽略某仓库的所有通知
76+
{%- endif %}
77+
{%- ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5819 %}
78+
1. Optionally, to unsubscribe from all repositories owned by a given user or organization, select the **Unwatch all** dropdown and click the organization whose repositories you'd like to unsubscribe from. The button to unwatch all repositories is only available if you are watching all activity or custom notifications on over 10 repositories.
79+
80+
![Screenshot of the Unwatch All button.](/assets/images/help/notifications-v2/unsubscribe-from-all-repos.png)
81+
82+
- Click **Unwatch** to confirm that you want to unwatch the repositories owned by the selected user or organization, or click **Cancel** to cancel.
83+
84+
![Screenshot of the unwatch all confirmation dialogue.](/assets/images/help/notifications-v2/unwatch-repo-dialog.png)
85+
86+
{% endif %}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ env:
125125

126126
#### 使用数组的示例
127127

128-
`contains(github.event.issue.labels.*.name, 'bug')`
128+
`contains(github.event.issue.labels.*.name, 'bug')` returns whether the issue related to the event has a label "bug".
129129

130130
#### 使用字符串的示例
131131

132-
`contains('Hello world', 'llo')` 返回 `true`
132+
`contains('Hello world', 'llo')` 返回 `true`.
133133

134134
### startsWith
135135

@@ -139,7 +139,7 @@ env:
139139

140140
#### 示例
141141

142-
`startsWith('Hello world', 'He')` 返回 `true`
142+
`startsWith('Hello world', 'He')` 返回 `true`.
143143

144144
### endsWith
145145

@@ -149,7 +149,7 @@ env:
149149

150150
#### 示例
151151

152-
`endsWith('Hello world', 'ld')` 返回 `true`
152+
`endsWith('Hello world', 'ld')` 返回 `true`.
153153

154154
### format
155155

@@ -159,20 +159,20 @@ env:
159159

160160
#### 示例
161161

162-
返回 'Hello Mona the Octocat'
163-
164162
`format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat')`
165163

166-
#### 逸出括号示例
164+
返回 'Hello Mona the Octocat'.
167165

168-
返回 '{Hello Mona the Octocat!}'
166+
#### 逸出括号示例
169167

170168
{% raw %}
171169
```js
172170
format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat')
173171
```
174172
{% endraw %}
175173

174+
返回 '{Hello Mona the Octocat!}'.
175+
176176
### join
177177

178178
`join( array, optionalSeparator )`

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ on:
6161
on:
6262
push:
6363
# Sequence of patterns matched against refs/heads
64-
branches:
64+
branches:
6565
# Push events on main branch
6666
- main
6767
# Push events to branches matching refs/heads/mona/octocat
6868
- 'mona/octocat'
6969
# Push events to branches matching refs/heads/releases/10
7070
- 'releases/**'
7171
# Sequence of patterns matched against refs/tags
72-
tags:
72+
tags:
7373
- v1 # Push events to v1 tag
7474
- v1.* # Push events to v1.0, v1.1, and v1.9 tags
7575
```
@@ -109,7 +109,7 @@ on:
109109
```yaml
110110
on:
111111
push:
112-
branches:
112+
branches:
113113
- 'releases/**'
114114
- '!releases/**-alpha'
115115
```
@@ -244,7 +244,7 @@ on:
244244
value: ${{ jobs.my_job.outputs.job_output1 }}
245245
workflow_output2:
246246
description: "The second job output"
247-
value: ${{ jobs.my_job.outputs.job_output2 }}
247+
value: ${{ jobs.my_job.outputs.job_output2 }}
248248
```
249249
{% endraw %}
250250

@@ -273,7 +273,7 @@ jobs:
273273
pass-secret-to-action:
274274
runs-on: ubuntu-latest
275275
276-
steps:
276+
steps:
277277
- name: Pass the received secret to an action
278278
uses: ./.github/actions/my-action@v1
279279
with:
@@ -297,13 +297,12 @@ When using the `workflow_dispatch` event, you can optionally specify inputs that
297297
触发的工作流程接收 `github.event.input` 上下文中的输入。 更多信息请参阅“[上下文](/actions/learn-github-actions/contexts#github-context)”。
298298

299299
### 示例
300-
{% raw %}
301300
```yaml
302-
on:
301+
on:
303302
workflow_dispatch:
304303
inputs:
305304
logLevel:
306-
description: 'Log level'
305+
description: 'Log level'
307306
required: true
308307
default: 'warning' {% ifversion ghec or ghes > 3.3 or ghae-issue-5511 %}
309308
type: choice
@@ -326,9 +325,9 @@ jobs:
326325
327326
steps:
328327
- name: Print the input tag to STDOUT
329-
run: echo The tag is ${{ github.event.inputs.tag }}
328+
run: echo {% raw %} The tag is ${{ github.event.inputs.tag }} {% endraw %}
330329
```
331-
{% endraw %}
330+
332331

333332
## `on.schedule`
334333

@@ -1029,7 +1028,7 @@ jobs:
10291028
with:
10301029
first_name: Mona
10311030
middle_name: The
1032-
last_name: Octocat
1031+
last_name: Octocat
10331032
```
10341033

10351034
## `jobs.<job_id>.steps[*].with.args`
@@ -1257,7 +1256,7 @@ strategy:
12571256

12581257
### 示例:防止特定失败的矩阵作业无法运行工作流程
12591258

1260-
您可以允许作业矩阵中的特定任务失败,但工作流程运行不失败。 例如, 只允许 `node` 设置为 `15` 的实验性作业失败,而不允许工作流程运行失败。
1259+
您可以允许作业矩阵中的特定任务失败,但工作流程运行不失败。 For example, if you wanted to only allow an experimental job with `node` set to `15` to fail without failing the workflow run.
12611260

12621261
{% raw %}
12631262
```yaml
@@ -1509,7 +1508,7 @@ jobs:
15091508
call-workflow:
15101509
uses: octo-org/example-repo/.github/workflows/called-workflow.yml@main
15111510
secrets:
1512-
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1511+
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
15131512
```
15141513
{% endraw %}
15151514

translations/zh-CN/content/authentication/securing-your-account-with-two-factor-authentication-2fa/countries-where-sms-authentication-is-supported.md

Lines changed: 62 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -67,73 +67,69 @@ shortTitle: 支持短信的国家/地区
6767
<li>冰岛</li>
6868
<li>印度</li>
6969
<li>印度尼西亚</li>
70-
<li>伊朗</li>
71-
<li>爱尔兰</li>
72-
<li>以色列</li>
73-
<li>意大利</li>
74-
<li>象牙海岸</li>
75-
<li>牙买加</li>
76-
<li>日本</li>
77-
<li>约旦</li>
78-
<li>哈萨克斯坦</li>
79-
<li>科威特</li>
80-
<li>拉脱维亚</li>
81-
<li>利比亚</li>
82-
<li>列支敦士登</li>
83-
<li>立陶宛</li>
84-
<li>卢森堡</li>
85-
<li>马达加斯加</li>
86-
<li>马拉维</li>
87-
<li>马来西亚</li>
88-
<li>马尔代夫</li>
89-
<li>马里</li>
90-
<li>马耳他</li>
91-
<li>毛里求斯</li>
92-
<li>墨西哥</li>
93-
<li>摩纳哥</li>
94-
<li>黑山</li>
95-
<li>蒙特塞拉特</li>
96-
<li>莫桑比克</li>
97-
<li>纳米比亚</li>
98-
<li>荷兰</li>
99-
<li>荷属安的列斯</li>
100-
<li>新西兰</li>
101-
<li>尼日利亚</li>
102-
<li>挪威</li>
103-
<li>菲律宾</li>
104-
<li>波兰</li>
105-
<li>葡萄牙</li>
106-
<li>卡塔尔</li>
107-
<li>罗马尼亚</li>
108-
<li>俄罗斯</li>
109-
<li>卢旺达</li>
110-
<li>塞内加尔</li>
111-
<li>塞尔维亚</li>
112-
<li>塞舌尔</li>
113-
<li>新加坡</li>
114-
<li>斯洛伐克</li>
115-
<li>斯洛文尼亚</li>
116-
<li>南非</li>
117-
<li>韩国</li>
118-
<li>西班牙</li>
119-
<li>斯里兰卡</li>
120-
<li>圣露西亚</li>
121-
<li>苏丹</li>
122-
<li>瑞典</li>
123-
<li>瑞士</li>
124-
<li>台湾</li>
125-
<li>坦桑尼亚</li>
126-
<li>多哥</li>
127-
<li>特立尼达和多巴哥</li>
128-
<li>土耳其</li>
129-
<li>特克斯和凯科斯群岛</li>
130-
<li>乌干达</li>
131-
<li>乌克兰</li>
132-
<li>阿拉伯联合酋长国</li>
133-
<li>英国</li>
70+
<li>Ireland</li>
71+
<li>Israel</li>
72+
<li>Italy</li>
73+
<li>Ivory Coast</li>
74+
<li>Jamaica</li>
75+
<li>Japan</li>
76+
<li>Jordan</li>
77+
<li>Kazakhstan</li>
78+
<li>Kuwait</li>
79+
<li>Latvia</li>
80+
<li>Libya</li>
81+
<li>Liechtenstein</li>
82+
<li>Lithuania</li>
83+
<li>Luxembourg</li>
84+
<li>Madagascar</li>
85+
<li>Malawi</li>
86+
<li>Malaysia</li>
87+
<li>Maldives</li>
88+
<li>Mali</li>
89+
<li>Malta</li>
90+
<li>Mauritius</li>
91+
<li>Mexico</li>
92+
<li>Monaco</li>
93+
<li>Montenegro</li>
94+
<li>Montserrat</li>
95+
<li>Mozambique</li>
96+
<li>Namibia</li>
97+
<li>Netherlands</li>
98+
<li>Netherlands Antilles</li>
99+
<li>New Zealand</li>
100+
<li>Nigeria</li>
101+
<li>Norway</li>
102+
<li>Philippines</li>
103+
<li>Poland</li>
104+
<li>Portugal</li>
105+
<li>Qatar</li>
106+
<li>Romania</li>
107+
<li>Rwanda</li>
108+
<li>Senegal</li>
109+
<li>Serbia</li>
110+
<li>Seychelles</li>
111+
<li>Singapore</li>
112+
<li>Slovakia</li>
113+
<li>Slovenia</li>
114+
<li>South Africa</li>
115+
<li>South Korea</li>
116+
<li>Spain</li>
117+
<li>Sri Lanka</li>
118+
<li>St Lucia</li>
119+
<li>Sudan</li>
120+
<li>Sweden</li>
121+
<li>Switzerland</li>
122+
<li>Taiwan</li>
123+
<li>Tanzania</li>
124+
<li>Togo</li>
125+
<li>Trinidad and Tobago</li>
126+
<li>Turks and Caicos Islands</li>
127+
<li>Uganda</li>
128+
<li>United Arab Emirates</li>
129+
<li>United Kingdom</li>
134130
<li>美国</li>
135-
<li>乌兹别克斯坦</li>
136-
<li>委内瑞拉</li>
131+
<li>Uzbekistan</li>
132+
<li>Venezuela</li>
137133
</ul>
138134

139135
## 延伸阅读

translations/zh-CN/content/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ The benefit of using keyword filters is that only values with results are shown
131131

132132
If you enter multiple filters, the view will show alerts matching _all_ these filters. For example, `is:closed severity:high branch:main` will only display closed high-severity alerts that are present on the `main` branch. The exception is filters relating to refs (`ref`, `branch` and `pr`): `is:open branch:main branch:next` will show you open alerts from both the `main` branch and the `next` branch.
133133

134+
{% ifversion fpt or ghes > 3.3 or ghec %}
135+
136+
You can prefix the `tag` filter with `-` to exclude results with that tag. For example, `-tag:style` only shows alerts that do not have the `style` tag.
137+
138+
{% endif %}
139+
134140
### Restricting results to application code only
135141

136142
You can use the "Only alerts in application code" filter or `autofilter:true` keyword and value to restrict results to alerts in application code. See "[About labels for alerts not in application code](#about-labels-for-alerts-that-are-not-found-in-application-code)" above for more information about the types of code that are not application code.

0 commit comments

Comments
 (0)