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

Commit d7b5b9f

Browse files
authored
Merge pull request #789 from laurence6/master
Update zh-CN/install.html: Complete translation
2 parents 061e994 + 6679e70 commit d7b5b9f

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

zh-CN/install.html

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1 class="rustup">安装 Rust</h1>
2525
<p>
2626
可以运行在 Windows, Linux, Mac OS X, FreeBSD 和 NetBSD 上。
2727
如果您正在这些平台上,并且看到这句话,请您
28-
<a href="https://github.com/rust-lang/rust-www/issues/new">报告问题(issue)</a>,
28+
<a href="https://github.com/rust-lang/rust-www/issues/new">报告问题(issue)</a>
2929
并且提供以下信息:
3030
</p>
3131

@@ -38,16 +38,16 @@ <h1 class="rustup">安装 Rust</h1>
3838

3939
<!-- duplicate the default cross-platform instructions -->
4040
<div>
41-
<p>To install Rust, if you are running Unix,<br/>run the following
42-
in your terminal, then follow the onscreen instructions.</p>
41+
<p>要安装 Rust 时,如果您正在使用 Unix<br/>请在终端中运行以下命令,
42+
然后按照屏幕上的提示进行操作。</p>
4343
<pre>curl https://sh.rustup.rs -sSf | sh</pre>
4444
</div>
4545

4646
<hr/>
4747

4848
<div>
4949
<p>
50-
您正在使用的是 Windows 操作系统<br/>下载并运行
50+
如果您正在使用 Windows 操作系统<br/>下载并运行
5151
<a href="https://win.rustup.rs">rustup&#x2011;init.exe</a>
5252
然后按照屏幕上的说明进行操作。
5353
</p>
@@ -56,16 +56,16 @@ <h1 class="rustup">安装 Rust</h1>
5656

5757
<div id="platform-instructions-default" class="instructions">
5858
<div>
59-
<p>To install Rust, if you are running Unix,<br/>run the following
60-
in your terminal, then follow the onscreen instructions.</p>
59+
<p>要安装 Rust 时,如果您正在使用 Unix<br/>请在终端中运行以下命令,
60+
然后按照屏幕上的提示进行操作。</p>
6161
<pre>curl https://sh.rustup.rs -sSf | sh</pre>
6262
</div>
6363

6464
<hr/>
6565

6666
<div>
6767
<p>
68-
您正在使用的是 Windows 操作系统<br/>下载并运行
68+
如果您正在使用 Windows 操作系统<br/>下载并运行
6969
<a href="https://win.rustup.rs">rustup&#x2011;init.exe</a>
7070
然后按照屏幕上的说明进行操作。
7171
</p>
@@ -78,7 +78,7 @@ <h1 class="rustup">安装 Rust</h1>
7878
<div>
7979
<div class="release-version">Rust <span>{{ site.stable }}</span></div>
8080
<a href="{{ site.stable_blog }}">
81-
<div class="release-date">{{ site.stable_date | date: "%Y 年 %-m 月 %-d日" }}</div>
81+
<div class="release-date">{{ site.stable_date | date: "%Y 年 %-m 月 %-d 日" }}</div>
8282
</a>
8383

8484
<br>
@@ -101,23 +101,21 @@ <h3>使用 <code>rustup</code> 管理工具链</h3>
101101
<p>
102102
Rust 由
103103
<a href="https://github.com/rust-lang-nursery/rustup.rs"><code>rustup</code></a>
104-
工具来安装和管理。 Rust 有一个6周的
104+
工具来安装和管理。 Rust 有一个 6 周的
105105
<a href="https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md">
106106
快速发布过程
107107
</a> 并且支持
108108
<a href="https://forge.rust-lang.org/platform-support.html">
109109
大量的平台
110110
</a>,所以任何时候都有很多 Rust 构建可用。
111-
<code>rustup</code> manages these builds in a consistent way on every
112-
platform that Rust supports, enabling installation of Rust from the
113-
beta and nightly release channels as well as support for additional
114-
cross-compilation targets
111+
<code>rustup</code> 在 Rust 支持的每一个平台上以一致的方式管理这些构建,
112+
并可以从 beta 和 nightly 发布渠道安装 Rust,且支持额外的交叉编译目标平台。
115113
</p>
116114

117115
<p>
118-
For more information see the
116+
更多信息请查看
119117
<a href="https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md"><code>rustup</code>
120-
documentation</a>.
118+
documentation</a>
121119
</p>
122120

123121
<h3>配置 <code>PATH</code> 环境变量</h3>
@@ -131,19 +129,15 @@ <h3>配置 <code>PATH</code> 环境变量</h3>
131129
<code>%USERPROFILE%\.cargo\bin</code>
132130
</span> 目录,
133131
并且您能够在这里找到 Rust 工具链,包括
134-
<code>rustc</code><code>cargo</code><code>rustup</code>
132+
<code>rustc</code><code>cargo</code><code>rustup</code>
135133
</p>
136134

137135
<p>
138-
Accordingly, it is customary for Rust developers to include this
139-
directory in their
136+
因此,Rust 开发者们通常会将此目录放入
140137
<a href="https://en.wikipedia.org/wiki/PATH_(variable)"><code>PATH</code>
141-
environment variable</a>. During installation, <code>rustup</code>,
142-
will attempt to configure
143-
<code>PATH</code>, but because of differences between platforms,
144-
command shells, and bugs in <code>rustup</code>, the modifications
145-
to <code>PATH</code> may not take effect until the console is
146-
restarted, or the user logged out, or may not succeed at all.
138+
环境变量</a>。在安装时,<code>rustup</code> 会尝试配置 <code>PATH</code>
139+
但是因为不同平台、命令行之间的差异,以及 <code>rustup</code> 的 bug,对于
140+
<code>PATH</code> 的修改将会在重启终端、用户登出之后生效,或者有可能完全不会生效。
147141
</p>
148142

149143
<p>

0 commit comments

Comments
 (0)