Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chinese(zh) translation #1886

Merged
merged 59 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
1d24c69
Initial setup zh translation
Binlogo Aug 17, 2024
edb8c57
Translate: `src/SUMMARY.md` part
Binlogo Aug 17, 2024
26e21c4
Translate: `src/index.md` part
Binlogo Aug 17, 2024
98c95ab
Translate: `src/hello.md`
Binlogo Aug 17, 2024
e9f39d8
Translate(zh): src/hello/comment.md
Binlogo Aug 17, 2024
799660d
Translate(zh): src/hello/print.md
Binlogo Aug 18, 2024
5fc0d83
Translate(zh): src/hello/print/print_debug.md
Binlogo Aug 18, 2024
aec12e5
Translate(zh): src/hello/print/print_display.md
Binlogo Aug 18, 2024
b74bad7
Translate(zh): src/hello/print/*.md
Binlogo Aug 18, 2024
77397be
Translate(zh): `src/primitives/*.md`
Binlogo Aug 18, 2024
dd6c166
Translate(zh): `src/custom_types/structs.md`
Binlogo Aug 18, 2024
baef7a0
Translate(zh): src/custom_types/enum.md
Binlogo Aug 18, 2024
485add2
Translate(zh): `src/custom_types/enum/*.md`
Binlogo Aug 18, 2024
db8de94
Translate(zh): `src/variable_bindings/*.md`
Binlogo Aug 18, 2024
6b58e52
Translation:(zh): `src/types/*.md`
Binlogo Aug 18, 2024
6267553
Translate(zh): `src/conversion/*.md`
Binlogo Aug 18, 2024
7fe6da6
Translate(zh): `src/flow_control/*.md` - 1/n
Binlogo Aug 19, 2024
39b796b
Translate(zh): `src/flow_control/match/destructuring/*.md`
Binlogo Aug 19, 2024
5cd0fff
Translate(zh): `src/flow_control/match/*.md`
Binlogo Aug 19, 2024
e598673
Translate(zh): `src/flow_control/*.md` end
Binlogo Aug 20, 2024
863e9b5
Translate(zh): `src/fn/*/*.md`
Binlogo Aug 21, 2024
95c93b9
Translate(zh): `src/mod/**/*.md`
Binlogo Aug 21, 2024
5d50f5a
Translate(zh): `src/crates/**/*.rs`
Binlogo Aug 21, 2024
203cee6
Translate(zh): `src/cargo/deps&conventions.md`
Binlogo Aug 21, 2024
79ec054
Translate(zh): `src/cargo/*/*.md`
Binlogo Aug 22, 2024
c7dbcd8
Translate(zh): `src/attribute/**/*.md`
Binlogo Aug 22, 2024
c64dc27
Translate(zh): `src/generics/*` - 1/n
Binlogo Aug 23, 2024
e99dffb
Translate(zh): `src/generics/*`
Binlogo Aug 24, 2024
da409ca
Translate(zh): `src/scope/*`
Binlogo Aug 24, 2024
d632011
Translate(zh): `src/trait`
Binlogo Aug 25, 2024
3c3d699
Translate(zh): `src/error/*`
Binlogo Aug 25, 2024
b54bf04
Translate(zh): `src/std/*`
Binlogo Aug 25, 2024
e6dfc62
Translate(zh): `src/std/*` - continue
Binlogo Aug 27, 2024
3a9cbdb
Translate(zh): `src/std/*` - end
Binlogo Aug 28, 2024
0ad8199
Translate(zh): `src/std_misc/*` begin
Binlogo Aug 28, 2024
ec3c99c
Translate(zh): `src/std_misc/*` continue
Binlogo Aug 29, 2024
054864d
Translate(zh): `src/std_misc/*` continue
Binlogo Aug 30, 2024
e106989
Translate(zh): `src/std_misc/*` end
Binlogo Aug 31, 2024
974ec30
Translate(zh): `src/testing/*`
Binlogo Aug 31, 2024
f38015d
Translate(zh): finish 🎉
Binlogo Aug 31, 2024
901c3bb
Add TRANSLATING_ZH.md
Binlogo Aug 31, 2024
8a8b0c0
Translate(zh): update "See also"
Binlogo Aug 31, 2024
9f8948e
Translate(zh): optimize index.md
Binlogo Aug 31, 2024
5ec8443
Translation(zh): optimize continue
Binlogo Aug 31, 2024
1fa384a
Translation(zh): optimize continue
Binlogo Aug 31, 2024
12fdafb
Translation(zh): optimize continue (:3331)
Binlogo Sep 8, 2024
c18b7d9
Translation(zh): optimize continue (:3436)
Binlogo Sep 9, 2024
3a8664e
Translation(zh): optimize continue (:3628)
Binlogo Sep 10, 2024
2ebc28a
Translation(zh): optimize continue (:4994)
Binlogo Sep 10, 2024
a96c788
Translation(zh): optimize continue (:5194)
Binlogo Sep 11, 2024
79b6a28
Translation(zh): optimize continue (:6751)
Binlogo Sep 11, 2024
1c2dd10
Translation(zh): optimize continue (:8826)
Binlogo Sep 11, 2024
dd361e2
Translation(zh): optimize continue (:9216)
Binlogo Sep 13, 2024
789576c
Translation(zh): optimize continue (:9811)
Binlogo Sep 15, 2024
76a4821
Translation(zh): optimize continue (:12478)
Binlogo Sep 15, 2024
7cfc730
Translation(zh): optimize end
Binlogo Sep 16, 2024
7fa8a2c
Prepare to add translation Chinese(zh) into official repository
Binlogo Sep 20, 2024
a138631
Merge branch 'rust-lang:master' into zh
Binlogo Sep 20, 2024
ebdc1a3
Translate(zh): fix broken link issues
Binlogo Sep 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rbe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]

env:
# Update the language picker in index.hbs to link new languages.
LANGUAGES: ja
LANGUAGES: ja zh

jobs:
test:
Expand Down
32 changes: 32 additions & 0 deletions TRANSLATING_ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Rust by Example 中文版翻译指南

Rust by Example 中文版的翻译在 https://github.com/rust-lang-cn/rust-by-example 仓库进行审核和校对。

如果您希望参与翻译,请按照以下流程操作:

1. 复刻(fork)https://github.com/rust-lang/rust-by-example 仓库。

2. 在 `po/zh.po` 文件中添加或修改译文。

3. 向 https://github.com/rust-lang-cn/rust-by-example 仓库的 `zh` 分支提交 PR(Pull Request)。
- 先在 rust-lang-cn 仓库进行审校,而非直接向原始仓库提交 PR,这样可以更方便进行译文讨论。
- 中文社区仓库的默认分支为 `zh`,因此正常创建 PR 时会自动指向该分支。

rust-lang-cn 翻译组成员的维护流程:

1. 审核并校对提交的 PR,先合并到 `zh` 分支。

2. 向 https://github.com/rust-lang/rust-by-example 原始仓库提交 PR。

## 翻译规范

### 总体原则

* 文风应保持正式、清晰、简洁
* 标点符号原则上使用全角(如括号"()"和冒号":"等)

### 术语翻译指南

* 对于已经广泛接受的技术术语,保留英文或使用通用的中文翻译
* 避免生硬的直译,优先考虑符合中文语境的自然表达
* 保持术语翻译的一致性,可参考 [Rust 语言术语中英文对照表](https://github.com/rust-lang-cn/english-chinese-glossary-of-rust/blob/master/rust-glossary.md)
Loading
Loading