You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/contribute/localization.md
+78-43Lines changed: 78 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ First, consult the [ISO 639-1 standard](https://www.loc.gov/standards/iso639-2/p
51
51
52
52
### Fork and clone the repo
53
53
54
-
First, [create your own fork](/docs/contribute/start/#improve-existing-content) of the [kubernetes/website](https://github.com/kubernetes/website) repository.
54
+
First, [create your own fork](/docs/contribute/new-content/open-a-pr/#fork-the-repo) of the [kubernetes/website](https://github.com/kubernetes/website) repository.
55
55
-->
56
56
### 找到两个字母的语言代码
57
57
@@ -122,11 +122,11 @@ The `@kubernetes/sig-docs-**-reviews` team automates review assignment for new P
Members of `@kubernetes/website-maintainers` can create new development branches to coordinate translation efforts.
125
+
Members of `@kubernetes/website-maintainers` can create new localization branches to coordinate translation efforts.
126
126
127
127
Members of `website-milestone-maintainers` can use the `/milestone` [Prow command](https://prow.k8s.io/command-help) to assign a milestone to issues or PRs.
@@ -394,26 +394,40 @@ To ensure accuracy in grammar and meaning, members of your localization team sho
394
394
<!--
395
395
### Source files
396
396
397
-
Localizations must be based on the English files from the most recent release, {{< latest-version >}}.
397
+
Localizations must be based on the English files from a specific release targeted by the localization team.
398
+
Each localization team can decide which release to target which is referred to as the _target version_ below.
398
399
399
-
To find source files for the most recent release:
400
+
To find source files for your target version:
400
401
401
402
1. Navigate to the Kubernetes website repository at https://github.com/kubernetes/website.
402
-
2. Select the `release-1.X` branch for the most recent version.
403
+
2. Select a branch for your target version from the following table:
404
+
Target version | Branch
405
+
-----|-----
406
+
Next version | [`dev-{{< skew nextMinorVersion >}}`](https://github.com/kubernetes/website/tree/dev-{{< skew nextMinorVersion >}})
407
+
Latest version | [`master`](https://github.com/kubernetes/website/tree/master)
408
+
Previous version | `release-*.**`
403
409
404
-
The latest version is {{< latest-version >}}, so the most recent release branch is [`{{< release-branch >}}`](https://github.com/kubernetes/website/tree/{{< release-branch >}}).
410
+
The `master` branch holds content for the current release `{{< latest-version >}}`. The release team will create `{{< release-branch >}}` branch shortly before the next release: v{{< skew nextMinorVersion >}}.
@@ -460,28 +474,29 @@ Some language teams have their own language-specific style guide and glossary. F
460
474
<!--
461
475
## Branching strategy
462
476
463
-
Because localization projects are highly collaborative efforts, we encourage teams to work in shared development branches.
477
+
Because localization projects are highly collaborative efforts, we encourage teams to work in shared localization branches.
464
478
465
-
To collaborate on a development branch:
479
+
To collaborate on a localization branch:
466
480
-->
467
-
### 分支策略
468
-
因为本地化项目是高度协同的工作,所以我们鼓励团队基于共享的开发分支工作。
481
+
### 分支策略 {#branching-strategy}
482
+
483
+
因为本地化项目是高度协同的工作,所以我们鼓励团队基于共享的本地化分支工作。
469
484
470
-
在开发分支上协作需要:
485
+
在本地化分支上协作需要:
471
486
472
487
<!--
473
-
1. A team member of [@kubernetes/sig-docs-l10n-admins](https://github.com/orgs/kubernetes/teams/sig-docs-l10n-admins) opens a development branch from a source branch on https://github.com/kubernetes/website.
488
+
1. A team member of [@kubernetes/website-maintainers](https://github.com/orgs/kubernetes/teams/website-maintainers) opens a localization branch from a source branch on https://github.com/kubernetes/website.
474
489
475
-
Your team approvers joined the `sig-docs-l10n-admins` team when you [added your localization team](#add-your-localization-team-in-github) to the `kubernetes/org` repository.
490
+
Your team approvers joined the `@kubernetes/website-maintainers` team when you [added your localization team](#add-your-localization-team-in-github) to the [`kubernetes/org`](https://github.com/kubernetes/org) repository.
For example, an approver on a German localization team opens the development branch `dev-1.12-de.1` directly against the k/website repository, based on the source branch for Kubernetes v1.12.
496
+
For example, an approver on a German localization team opens the localization branch `dev-1.12-de.1` directly against the k/website repository, based on the source branch for Kubernetes v1.12.
2. Individual contributors open feature branches based on the development branch.
511
+
2. Individual contributors open feature branches based on the localization branch.
497
512
498
513
For example, a German contributor opens a pull request with changes to `kubernetes:dev-1.12-de.1` from `username:local-branch-name`.
499
514
500
-
3. Approvers review and merge feature branches into the development branch.
515
+
3. Approvers review and merge feature branches into the localization branch.
501
516
502
-
4. Periodically, an approver merges the development branch to its source branch by opening and approving a new pull request. Be sure to squash the commits before approving the pull request.
517
+
4. Periodically, an approver merges the localization branch to its source branch by opening and approving a new pull request. Be sure to squash the commits before approving the pull request.
Repeat steps 1-4 as needed until the localization is complete. For example, subsequent German development branches would be: `dev-1.12-de.2`, `dev-1.12-de.3`, etc.
529
+
Repeat steps 1-4 as needed until the localization is complete. For example, subsequent German localization branches would be: `dev-1.12-de.2`, `dev-1.12-de.3`, etc.
514
530
-->
515
-
根据需要重复步骤 1-4,直到完成本地化工作。例如,随后的德语开发分支将是:
531
+
根据需要重复步骤 1-4,直到完成本地化工作。例如,随后的德语本地化分支将是:
516
532
`dev-1.12-de.2`、`dev-1.12-de.3`,等等。
517
533
518
534
<!--
519
-
Teams must merge localized content into the same release branch from which the content was sourced. For example, a development branch sourced from {{< release-branch >}} must be based on {{< release-branch >}}.
535
+
Teams must merge localized content into the same branch from which the content was sourced.
536
+
537
+
For example:
538
+
539
+
- a localization branch sourced from `master` must be merged into `master`.
540
+
- a localization branch sourced from `release-1.19` must be merged into `release-1.19`.
520
541
521
-
An approver must maintain a development branch by keeping it current with its source branch and resolving merge conflicts. The longer a development branch stays open, the more maintenance it typically requires. Consider periodically merging development branches and opening new ones, rather than maintaining one extremely long-running development branch.
542
+
{{< note >}}
543
+
If your localization branch was created from `master` branch but it is not merged into `master` before new release branch `{{< release-branch >}}` created, merge it into both `master` and new release branch `{{< release-branch >}}`. To merge your localization branch into new release branch `{{< release-branch >}}`, you need to switch upstream branch of your localization branch to `{{< release-branch >}}`.
At the beginning of every team milestone, it's helpful to open an issue comparing upstream changes between the previous development branch and the current development branch.
560
+
At the beginning of every team milestone, it's helpful to open an issue comparing upstream changes between the previous localization branch and the current localization branch. There are two scripts for comparing upstream changes. [`upstream_changes.py`](https://github.com/kubernetes/website/tree/master/scripts#upstream_changespy) is useful for checking the changes made to a specific file. And [`diff_l10n_branches.py`](https://github.com/kubernetes/website/tree/master/scripts#diff_l10n_branchespy) is useful for creating a list of outdated files for a specific localization branch.
532
561
533
-
While only approvers can open a new development branch and merge pull requests, anyone can open a pull request for a new development branch. No special permissions are required.
562
+
While only approvers can open a new localization branch and merge pull requests, anyone can open a pull request for a new localization branch. No special permissions are required.
- Articles must contain content that applies broadly to the Kubernetes community. For example, a submission should focus on upstream Kubernetes as opposed to vendor-specific configurations. Check the [Documentation style guide](https://kubernetes.io/docs/contribute/style/content-guide/#what-s-allowed) for what is typically allowed on Kubernetes properties.
49
+
- Articles must contain content that applies broadly to the Kubernetes community. For example, a submission should focus on upstream Kubernetes as opposed to vendor-specific configurations. Check the [Documentation style guide](/docs/contribute/style/content-guide/#what-s-allowed) for what is typically allowed on Kubernetes properties.
50
50
- Links should primarily be to the official Kubernetes documentation. When using external references, links should be diverse - For example a submission shouldn't contain only links back to a single company's blog.
51
51
- Sometimes this is a delicate balance. The [blog team](https://kubernetes.slack.com/messages/sig-docs-blog/) is there to give guidance on whether a post is appropriate for the Kubernetes blog, so don't hesitate to reach out.
- The official blog is not for repurposing existing content from a third party as new content.
104
-
- The [license](https://github.com/kubernetes/website/blob/master/LICENSE) for the blog does allow commercial use of the content for commercial purposes, just not the other way around.
103
+
- The official blog is not for repurposing existing content from a third party as new content.
104
+
- The [license](https://github.com/kubernetes/website/blob/master/LICENSE) for the blog allows commercial use of the content for commercial purposes, just not the other way around.
105
105
- Blog posts should aim to be future proof
106
106
- Given the development velocity of the project, we want evergreen content that won't require updates to stay accurate for the reader.
107
107
- It can be a better choice to add a tutorial or update official documentation than to write a high level overview as a blog post.
@@ -144,7 +144,7 @@ SIG Docs [博客子项目](https://github.com/kubernetes/community/tree/master/s
144
144
145
145
要提交博文,你可以遵从以下指南:
146
146
<!--
147
-
- [Open a pull request](/docs/contribute/new-content/new-content/#fork-the-repo) with a new blog post. New blog posts go under the [`content/en/blog/_posts`](https://github.com/kubernetes/website/tree/master/content/en/blog/_posts) directory.
147
+
- [Open a pull request](/docs/contribute/new-content/open-a-pr/#fork-the-repo) with a new blog post. New blog posts go under the [`content/en/blog/_posts`](https://github.com/kubernetes/website/tree/master/content/en/blog/_posts) directory.
148
148
149
149
- Ensure that your blog post follows the correct naming conventions and the following frontmatter (metadata) information:
0 commit comments