Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit ff2b458

Browse files
authored
Merge pull request #578 from 3442853561/中文16.10.14
There are something new in Chinese translation.
2 parents 74af2f7 + 96f7bda commit ff2b458

File tree

4 files changed

+74
-74
lines changed

4 files changed

+74
-74
lines changed

zh-CN/documentation.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
---
2-
layout: default
3-
title: Rust Documentation · The Rust Programming Language
2+
layout: zh-CN/default
3+
title: Rust 语言文档 · Rust 程序设计语言
44
---
55

6-
# Rust Documentation
6+
# Rust 语言文档
77

88
If you haven't seen Rust at all yet, the first thing you should read
9-
is the introduction to the book, [The Rust Programming
10-
Language][book]. It will give you a good idea of what Rust is like,
9+
is the introduction to the book, [Rust 程序设计语言][book]。It will give you a good idea of what Rust is like,
1110
show you how to install it, and explain its syntax and concepts. Upon
1211
completing the book, you'll be an intermediate Rust developer, and
1312
will have a good grasp of the fundamental ideas behind Rust.
1413

15-
## Learning Rust
14+
## 学习 Rust
1615

17-
[The Rust Programming Language][book]. Also known as "The Book",
16+
[Rust 程序设计语言][book]. Also known as "The Book",
1817
The Rust Programming Language is the most comprehensive resource for
1918
all topics related to Rust, and is the primary official document of
2019
the language.
2120

22-
[Rust by Example][rbe]. A collection of self-contained Rust
21+
[在实践中学 Rust][rbe] A collection of self-contained Rust
2322
examples on a variety of topics, executable in-browser.
2423

2524
[Frequently asked questions][faq].
@@ -31,7 +30,7 @@ programmers.
3130
[rust-learning]. A community-maintained collection of resources
3231
for learning Rust.
3332

34-
[book]: https://doc.rust-lang.org/book/
33+
[book]: https://kaisery.gitbooks.io/rust-book-chinese/content/
3534
[rbe]: http://rustbyexample.com
3635
[faq]: faq.html
3736
[nomicon]: https://doc.rust-lang.org/nomicon/
@@ -83,7 +82,7 @@ other corners of the Rust world.
8382
[legal]: legal.html
8483
[coc]: https://www.rust-lang.org/conduct.html
8584

86-
## Nightly and beta documentation
85+
## 开发版与测试版文档
8786

8887
Much of the official Rust documentation is also available for the
8988
[nightly] and [beta] releases in addition to the stable documentation
@@ -92,9 +91,13 @@ linked above.
9291
[nightly]: https://doc.rust-lang.org/nightly/
9392
[beta]: https://doc.rust-lang.org/beta/
9493

95-
## Non-english resources
94+
## 母语文献
9695

97-
For resources in languages other than English, see the
98-
[locale-specific links in rust-learning][locale].
96+
如果您需要非英语的本土化资料请[点击这里][locale]
97+
中文文献可以快速链接到:
98+
[简体中文][locale-zh-CN]
99+
[台灣正體][locale-zh-TW]
99100

100101
[locale]: https://github.com/ctjhoa/rust-learning#locale-links
102+
[locale-zh-CN]: https://kaisery.gitbooks.io/rust-book-chinese/content/
103+
[locale-zh-TW]: http://askeing.github.io/rust-book/

zh-CN/downloads.html

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ <h1>下载</h1>
99
<div class="row install">
1010
<div class="col-md-4 side-header">
1111
<h2 id="stable">{{ site.stable }}&nbsp;</h2>
12-
<h3>{{ site.stable_date | date: "%B %-d, %Y" }}</h3>
12+
<h3>{{ site.stable_date | date: "%Y 年 %-m 月 %-d 日" }}</h3>
1313
<p>
14-
The
1514
<a href="http://blog.rust-lang.org{{ site.stable_blog }}">
16-
current stable release of Rust</a>,
17-
updated every six weeks and backwards-compatible.
15+
当前稳定的版本</a>
16+
保持每六周更新一次和后向兼容。
1817
</p>
1918
</div>
2019
<div class="col-md-8">
@@ -30,12 +29,12 @@ <h3>{{ site.stable_date | date: "%B %-d, %Y" }}</h3>
3029
<td><a href="https://static.rust-lang.org/dist/rust-{{ site.stable }}-i686-apple-darwin.pkg"><div class="inst-button">32位</div></a></td>
3130
</tr>
3231
<tr>
33-
<td class="inst-type">Windows (<a href="#win-foot">GNU ABI <sup></sup></a>) (.msi)</td>
32+
<td class="inst-type">Windows (<a href="#win-foot">GNU ABI <sup>〔注〕</sup></a>) (.msi)</td>
3433
<td><a href="https://static.rust-lang.org/dist/rust-{{ site.stable }}-x86_64-pc-windows-gnu.msi"><div class="inst-button">64位</div></a></td>
3534
<td><a href="https://static.rust-lang.org/dist/rust-{{ site.stable }}-i686-pc-windows-gnu.msi"><div class="inst-button">32位</div></a></td>
3635
</tr>
3736
<tr>
38-
<td class="inst-type">Windows (<a href="#win-foot">MSVC ABI <sup></sup></a>) (.msi) </td>
37+
<td class="inst-type">Windows (<a href="#win-foot">MSVC ABI <sup>〔注〕</sup></a>) (.msi) </td>
3938
<td><a href="https://static.rust-lang.org/dist/rust-{{ site.stable }}-x86_64-pc-windows-msvc.msi"><div class="inst-button">64位</div></a></td>
4039
<td><a href="https://static.rust-lang.org/dist/rust-{{ site.stable }}-i686-pc-windows-msvc.msi"><div class="inst-button">32位</div></a></td>
4140
</tr>
@@ -50,7 +49,7 @@ <h3>{{ site.stable_date | date: "%B %-d, %Y" }}</h3>
5049

5150
<div class="row">
5251
<div class="col-md-10 col-md-offset-1">
53-
<p>Linux和Mac系统中安装的快捷方法,在终端中运行</p>
52+
<p>也可以快捷的在Linux和Mac系统中的终端运行来安装Rust(稳定绿化版)</p>
5453
<pre><code>curl -sSf https://static.rust-lang.org/rustup.sh | sh</code></pre>
5554
</div>
5655
</div>
@@ -59,12 +58,12 @@ <h3>{{ site.stable_date | date: "%B %-d, %Y" }}</h3>
5958

6059
<div class="row install">
6160
<div class="col-md-4 side-header">
62-
<h2 id="beta">Beta&nbsp; ({{ site.beta }})</h2>
61+
<h2 id="beta">测试版(Beta)&nbsp; ({{ site.beta }})</h2>
6362
<p>
64-
A preview of the upcoming stable release, intended for testing by
65-
crate authors. Updated every six weeks and as needed.
63+
即将推出的稳定版本,提供为库(crate) 作者测试使用。
64+
每六周或必要时更新一次。
6665
</p>
67-
<p><em>Scheduled for stable release<br/>{{ site.beta_date | date: "%B %-d, %Y" }}</em>.<p>
66+
<p><em>预计将于 <br/>{{ site.beta_date | date: "%Y 年 %-m 月 %-d 日" }}</em> 推出稳定版<p>
6867
</div>
6968
<div class="col-md-8">
7069
<table class="table-features table-installers"><tbody>
@@ -79,28 +78,28 @@ <h2 id="beta">Beta&nbsp; ({{ site.beta }})</h2>
7978
<td><a href="https://static.rust-lang.org/dist/rust-beta-i686-apple-darwin.pkg"><div class="inst-button">32位</div></a></td>
8079
</tr>
8180
<tr>
82-
<td class="inst-type">Windows (<a href="#win-foot">GNU ABI <sup></sup></a>) (.msi)</td>
81+
<td class="inst-type">Windows (<a href="#win-foot">GNU ABI <sup>〔注〕</sup></a>) (.msi)</td>
8382
<td><a href="https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-gnu.msi"><div class="inst-button">64位</div></a></td>
8483
<td><a href="https://static.rust-lang.org/dist/rust-beta-i686-pc-windows-gnu.msi"><div class="inst-button">32位</div></a></td>
8584
</tr>
8685
<tr>
87-
<td class="inst-type">Windows (<a href="#win-foot">MSVC ABI <sup></sup></a>) (.msi) </td>
86+
<td class="inst-type">Windows (<a href="#win-foot">MSVC ABI <sup>〔注〕</sup></a>) (.msi) </td>
8887
<td><a href="https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi"><div class="inst-button">64位</div></a></td>
8988
<td><a href="https://static.rust-lang.org/dist/rust-beta-i686-pc-windows-msvc.msi"><div class="inst-button">32位</div></a></td>
9089
<td></td>
9190
</tr>
9291
<tr><td>&nbsp;</td></tr>
9392
<tr>
9493
<td class="inst-type"></td>
95-
<td colspan="2"><a href="https://static.rust-lang.org/dist/rustc-beta-src.tar.gz"><div class="inst-button">Source</div></a></td>
94+
<td colspan="2"><a href="https://static.rust-lang.org/dist/rustc-beta-src.tar.gz"><div class="inst-button">源码</div></a></td>
9695
</tr>
9796
</tbody></table>
9897
</div>
9998
</div>
10099

101100
<div class="row">
102101
<div class="col-md-10 col-md-offset-1">
103-
<p>An easy way to install the beta binaries for Linux and Mac is to run this in your shell:</p>
102+
<p>也可以快捷的在Linux和Mac系统中的终端运行来安装Rust(测试绿化版):</p>
104103
<pre><code>curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta</code></pre>
105104
</div>
106105
</div>
@@ -109,12 +108,12 @@ <h2 id="beta">Beta&nbsp; ({{ site.beta }})</h2>
109108

110109
<div class="row install">
111110
<div class="col-md-4 side-header">
112-
<h2 id="nightly">Nightly&nbsp; ({{ site.nightly }})</h2>
111+
<h2 id="nightly">开发版(Nightly)&nbsp; ({{ site.nightly }})</h2>
113112
<p>
114-
The current development branch.
115-
It includes
116-
<a href="https://doc.rust-lang.org/book/nightly-rust.html">unstable features</a>
117-
that are not available in the betas or stable releases.
113+
当前正在开发的分支。
114+
它包括若干
115+
<a href="https://doc.rust-lang.org/book/nightly-rust.html">不稳定的特性</a>
116+
这些特性在稳定版和测试版中都是不支持的。
118117
</p>
119118
</div>
120119
<div class="col-md-8">
@@ -130,28 +129,28 @@ <h2 id="nightly">Nightly&nbsp; ({{ site.nightly }})</h2>
130129
<td><a href="https://static.rust-lang.org/dist/rust-nightly-i686-apple-darwin.pkg"><div class="inst-button">32位</div></a></td>
131130
</tr>
132131
<tr>
133-
<td class="inst-type">Windows (<a href="#win-foot">GNU ABI <sup></sup></a>) (.msi)</td>
132+
<td class="inst-type">Windows (<a href="#win-foot">GNU ABI <sup>〔注〕</sup></a>) (.msi)</td>
134133
<td><a href="https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.msi"><div class="inst-button">64位</div></a></td>
135134
<td><a href="https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.msi"><div class="inst-button">32位</div></a></td>
136135
</tr>
137136
<tr>
138-
<td class="inst-type">Windows (<a href="#win-foot">MSVC ABI <sup></sup></a>) (.msi) </td>
137+
<td class="inst-type">Windows (<a href="#win-foot">MSVC ABI <sup>〔注〕</sup></a>) (.msi) </td>
139138
<td><a href="https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-msvc.msi"><div class="inst-button">64位</div></a></td>
140139
<td><a href="https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-msvc.msi"><div class="inst-button">32位</div></a></td>
141140
<td></td>
142141
</tr>
143142
<tr><td>&nbsp;</td></tr>
144143
<tr>
145144
<td class="inst-type"></td>
146-
<td colspan="2"><a href="https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz"><div class="inst-button">Source</div></a></td>
145+
<td colspan="2"><a href="https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz"><div class="inst-button">源码</div></a></td>
147146
</tr>
148147
</tbody></table>
149148
</div>
150149
</div>
151150

152151
<div class="row">
153152
<div class="col-md-10 col-md-offset-1">
154-
<p>An easy way to install the nightly binaries for Linux and Mac is to run this in your shell:</p>
153+
<p>也可以快捷的在Linux和Mac系统中的终端运行来安装Rust(开发绿化版):</p>
155154
<pre><code>curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly</code></pre>
156155
</div>
157156
</div>
@@ -161,7 +160,7 @@ <h2 id="nightly">Nightly&nbsp; ({{ site.nightly }})</h2>
161160
<div class="row">
162161
<div class="col-md-12">
163162
<p>
164-
Discover other downloads in <a href="https://static.rust-lang.org/dist/index.html">the archives.</a>
163+
这里是一些早期版本的 <a href="https://static.rust-lang.org/dist/index.html">存档</a>
165164
</p>
166165
</div>
167166
</div>
@@ -172,33 +171,32 @@ <h2 id="nightly">Nightly&nbsp; ({{ site.nightly }})</h2>
172171
<div class="col-md-12">
173172
<a id="win-foot"></a>
174173
<p>
175-
<em></em>
176-
There are two prominent
174+
<em>〔注〕</em>
175+
在 Windows 操作系统中有两个可供选择
177176
<a href="https://en.wikipedia.org/wiki/Application_binary_interface">ABIs</a>
178-
in use on Windows: the native (MSVC) ABI used by
177+
的版本。使用已经安装的 (MSVC) ABI 需要
179178
<a href="https://www.visualstudio.com">Visual Studio</a>,
180-
and the GNU ABI used by the
181-
<a href="https://gcc.gnu.org/">GCC toolchain</a>.
179+
,而使用 GNU ABI 则需要
180+
<a href="https://gcc.gnu.org/">GCC 工具链</a>.
182181
Which version of Rust you need depends largely on what C/C++ libraries you want to interoperate with:
183182
for interop with software produced by Visual Studio use the MSVC build of Rust; for interop with
184183
GNU software built using the
185-
<a href="https://msys2.github.io/">MinGW/MSYS2 toolchain</a>
184+
<a href="https://msys2.github.io/">MinGW/MSYS2 工具链</a>
186185
use the GNU build.
187186
</p>
188187
<p>
189188
MSVC builds of Rust additionally require the Microsoft Visual
190-
C++ build tools for Visual Studio 2013 or later.
189+
C++ build tools for Visual Studio 2013 或更高版本。
191190
The easiest way to acquire the build tools is by installing
192191
<a href="http://landinghub.visualstudio.com/visual-cpp-build-tools">
193192
Microsoft Visual C++ Build Tools 2015</a>
194193
which provides just the Visual C++ build tools.
195-
Alternately, you can <a href="https://www.visualstudio.com/downloads/">install</a>
194+
Alternately, you can <a href="https://www.visualstudio.com/downloads/">安装</a>
196195
Visual Studio 2015 or Visual Studio 2013 and during install select the "C++ tools".
197196
No additional software installation is necessary for basic use of the GNU build.
198197
</p>
199198
<p>
200-
Rust's support for the GNU ABI is more mature, and is recommended for typical
201-
uses.
199+
Rust 对 GNU ABI 的支持更加成熟,建议作为典型用途。
202200
</p>
203201
</div>
204202
</div>

zh-CN/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<p class="pitch">
99
<b>Rust</b> 是一种注重高效、安全、并行的系统程序语言。
1010
<br/>
11-
<a href="https://doc.rust-lang.org/book/README.html">详情...</a>
11+
<b><a href="friends.html">看看谁在使用 Rust</a></b>
1212
</p>
1313
</div>
1414
<div class="col-md-4 install-box">
1515
<span class="version-rec-box-inner">
1616
推荐版本:<br>
1717
<span id="install-version"
18-
data-type-linux="Linux 二进制版"
18+
data-type-linux="Linux 绿化版"
1919
data-type-windows="Windows 安装包"
2020
data-type-mac="Mac 安装包"
2121
data-type-source="源码">
@@ -47,7 +47,7 @@ <h2>特点</h2>
4747
<div class="col-md-8">
4848
<div id="active-code">
4949
<button type="button" class="btn btn-primary btn-sm" id="run-code">运行</button>
50-
<div id="editor">{% include example.rs %}</div>
50+
<div id="editor">{% include zh-CN/example.rs %}</div>
5151
<div id="result" data-msg-running="运行中...">
5252
<a id="playlink"><i class="icon-link-ext"></i></a>
5353
</div>

zh-CN/team.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
layout: default
3-
title: The Rust Team &middot; The Rust Programming Language
2+
layout: zh-CN/default
3+
title: Rust 团队 &middot; Rust 程序设计语言
44

55
# map from GH username to name & irc nick (irc nick can be omitted if it
66
# matches GH).
@@ -97,39 +97,39 @@ people:
9797

9898
# Information about each team. Omit `lead` for teams without leaders.
9999
teams:
100-
- name: Core team
100+
- name: 核心团队
101101
responsibility: "overall direction of the project, subteam leadership, cross-cutting concerns"
102102
members: [brson, alexcrichton, wycats, steveklabnik, nikomatsakis, aturon, pcwalton, erickt]
103-
- name: Language design team
104-
responsibility: "designing new language features"
103+
- name: 语言设计团队
104+
responsibility: "为语言设计新特性"
105105
members: [eddyb, nrc, pnkfelix, nikomatsakis, aturon]
106106
lead: nikomatsakis
107-
- name: Library team
108-
responsibility: "the Rust standard library, rust-lang crates, conventions"
107+
- name: 库团队
108+
responsibility: "Rust 标准库、Rust 语言的包及公约"
109109
members: [brson, alexcrichton, sfackler, BurntSushi, Kimundi, aturon]
110110
lead: aturon
111-
- name: Compiler team
111+
- name: 编译器开发团队
112112
responsibility: "compiler internals, optimizations"
113113
members: [arielb1, eddyb, nrc, pnkfelix, bkoropoff, nikomatsakis, aatch, dotdash, michaelwoerister, jseyfried]
114114
lead: nikomatsakis
115-
- name: Tooling and infrastructure
116-
responsibility: "tool support (e.g. Cargo, rustup), CI infrastructure, etc."
115+
- name: 工具和基础组件团队
116+
responsibility: "提高工具支持 (譬如 Cargorustup)CI 基础控件,等。"
117117
members: [brson, nrc, alexcrichton, vadimcn, wycats, michaelwoerister]
118118
lead: alexcrichton
119-
- name: Community team
119+
- name: 社区团队
120120
responsibility: "coordinating events, outreach, commercial users, teaching materials, and exposure"
121121
lead: erickt
122122
members: [brson, skade, manishearth, johannhof, steveklabnik, carols10cents, badboy, booyaa, bstrie, erickt, jonathandturner, edunham]
123123
124-
- name: Documentation team
125-
responsibility: "ensuring Rust has fantastic documentation"
124+
- name: 文档团队
125+
responsibility: "确保 Rust 拥有极好的文档"
126126
members: [steveklabnik, GuillaumeGomez, jonathandturner, peschkaj]
127127
- name: Moderation team
128128
responsibility: "helping uphold the <a href='https://www.rust-lang.org/conduct.html'>code of conduct</a>"
129129
members: [mbrubeck, BurntSushi, manishearth, pnkfelix, niconii]
130130
131-
- name: Rust team alumni
132-
responsibility: "enjoying a leisurely retirement"
131+
- name: Rust 团队旧友
132+
responsibility: "享受悠哉的退休生活"
133133
members: [Gankro, huonw]
134134

135135
# Information on sites to get profile information from
@@ -154,7 +154,7 @@ sites:
154154
margin-bottom: 20px;
155155
}
156156
.lead { font-weight: bold; }
157-
.lead .name::after { content: " (lead)"; }
157+
.lead .name::after { content: " (负责人)"; }
158158
.details {
159159
display: none;
160160
position: absolute;
@@ -179,12 +179,11 @@ sites:
179179
}
180180
</style>
181181

182-
# The Rust Team
182+
# Rust 团队
183183

184-
The Rust project is
185-
[governed](https://github.com/rust-lang/rfcs/blob/master/text/1068-rust-governance.md)
186-
by a number of teams, each focused on a specific area of concern. Below are
187-
the rosters, in alphabetical order.
184+
Rust 的项目是由若干个小组分别
185+
[管辖](https://github.com/rust-lang/rfcs/blob/master/text/1068-rust-governance.md)
186+
每个小组只关注特定的内容,以下是小组人名单(姓氏字母排序)。
188187

189188
To contact a team, post your question or comment to [the Internals
190189
forum](https://internals.rust-lang.org/) and tag your post with the category
@@ -195,12 +194,12 @@ the [Rust security disclosure process](security.html).
195194
<section id="{{ team.name | replace:' ','-' }}">
196195
<h2> {{ team.name }} </h2>
197196

198-
<strong>Responsibility</strong>: <em>{{ team.responsibility }}</em>
197+
<strong>职能</strong>: <em>{{ team.responsibility }}</em>
199198

200199
<br />
201200

202201
{% if team.email %}
203-
<strong>Contact</strong>:
202+
<strong>联系人</strong>:
204203
<a href="mailto:{{ team.email | uri_escape }}">{{ team.email }}</a>
205204
{% endif %}
206205

0 commit comments

Comments
 (0)