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

Commit 533f5c9

Browse files
authored
Merge pull request #795 from 3442853561/Chinese-17-4-30
Complete some Chinese translation
2 parents e48f445 + 765324a commit 533f5c9

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

zh-CN/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ <h2>特点</h2>
4545
</div>
4646
<div id="static-code">{% include example.rs.html %}</div>
4747
<div class="more-examples">
48-
<a href="https://play.rust-lang.org/?gist=a22cc6240ff70436cb3ff29c8c1a36df&version=nightly&backtrace=2">使用母语编程</a>
4948
<a href="http://rustbyexample.com/">更多例子</a>
5049
</div>
5150
</div>

zh-CN/other-installers.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
layout: zh-CN/default
3-
title: Other Installation Methods &middot; Rust 程序设计语言
3+
title: 其他安装方法 &middot; Rust 程序设计语言
44
---
55

6-
# Other Rust Installation Methods
6+
# 其他安装 Rust 的方法
77

8-
- [Which installer should you use?](#which)
9-
- [Other ways to install `rustup`](#more-rustup)
10-
- [Standalone installers](#standalone)
11-
- [Source code](#source)
8+
- [您应该使用哪个安装程序?](#which)
9+
- [安装 `rustup` 的其他方法](#more-rustup)
10+
- [独立安装程序](#standalone)
11+
- [源代码](#source)
1212

13-
## Which installer should you use?
13+
## 您应该使用哪个安装程序?
1414
<span id="which"></span>
1515

16-
Rust runs on many platforms, and there are many ways to install Rust. If you
17-
want to install Rust in the most straightforward, recommended way, then follow
18-
the instructions on the main [installation page].
16+
Rust 在许多平台上运行,并且有很多方法来安装 Rust
17+
如果您想要安装 Rust 最简单,推荐的方法,
18+
然后参照主要的[安装页面][installation page]上的说明。
1919

2020
That page describes installation via [`rustup`], a tool that manages multiple
2121
Rust toolchains in a consistent way across all platforms Rust supports. Why
@@ -48,28 +48,28 @@ available, not the compiler itself; that is, they are cross-compilation targets
4848
only; Rust code can run on those platforms, but they do not run the compiler
4949
itself. Such targets can be installed with the `rustup target add` command.
5050

51-
## Other ways to install `rustup`
51+
## 安装 `rustup` 的其他方法
5252
<span id="rustup"></span>
5353

54-
The way to install `rustup` differs by platform:
54+
安装 `rustup` 的方式因平台而异:
5555

56-
* On Unix, run `curl https://sh.rustup.rs -sSf | sh` in your
57-
shell. This downloads and runs [`rustup-init.sh`], which in turn
58-
downloads and runs the correct version of the `rustup-init`
59-
executable for your platform.
60-
* On Windows, download and run [`rustup-init.exe`].
56+
* 在 Unix 上,在您的终端运行 `curl https://sh.rustup.rs -sSf | sh`
57+
它将会下载并运行 [`rustup-init.sh`],它为您的平台下载并运行
58+
`rustup-init` 可执行文件的正确版本。
59+
* 在 Windows 上,下载并运行 [`rustup-init.exe`].
6160

62-
`rustup-init` can be configured interactively, and all options can additionally
63-
be controlled by command-line arguments, which can be passed through the shell
64-
script. Pass `--help` to `rustup-init` as follows to display the arguments
61+
Pass `--help` to `rustup-init` as follows to display the arguments
6562
`rustup-init` accepts:
6663

64+
`rustup-init` 可以交互式配置,所有选项都可以由命令行参数控制,
65+
可以通过 shell 脚本传递。 将`--help`传递给`rustup-init`
66+
以下是 `rustup-init` 接受的参数:
67+
6768
```
6869
curl https://sh.rustup.rs -sSf | sh -s -- --help
6970
```
7071

71-
If you prefer not to use the shell script, you may directly download
72-
`rustup-init` for the platform of your choice:
72+
如果您不想使用 shell 脚本,可以选择合适您使用平台的 `rustup-init` 直接下载:
7373

7474
<div class="rustup-init-table">
7575
{% for column in site.data.platforms.rustup %}
@@ -89,7 +89,7 @@ If you prefer not to use the shell script, you may directly download
8989
{% endfor %}
9090
</div>
9191

92-
## Standalone installers
92+
## 独立安装程序
9393
<span id="standalone"></span>
9494

9595
The official Rust standalone installers contain a single release of Rust, and
@@ -100,10 +100,10 @@ installers (`.msi`), and Mac installers (`.pkg`). These installers come with
100100
documentation, but do not provide access to additional cross-targets like
101101
`rustup` does.
102102

103-
The most common reasons to use these are:
103+
使用独立安装程序的最常见原因是:
104104

105-
- Offline installation
106-
- Prefering a more platform-integrated, graphical installer on Windows
105+
- 离线安装
106+
- 热衷在 Windows 上使用更多平台集成的图形安装程序
107107

108108
Each of these binaries is signed with the [Rust signing key], which is
109109
[available on keybase.io], by the Rust build infrastructure, with
@@ -145,27 +145,27 @@ Past releases can be found in [the archives].
145145

146146
{% endfor %}
147147

148-
## Source code
148+
## 源代码
149149
<span id="source"></span>
150150

151151
<div class="installer-table">
152152
<div>
153153
<div>
154-
<span>Stable</span>
154+
<span>稳定版(Stable</span>
155155
<a href="https://static.rust-lang.org/dist/rustc-{{ site.stable }}-src.tar.gz">.tar.gz</a>
156156
<a href="https://static.rust-lang.org/dist/rustc-{{ site.stable }}-src.tar.gz.asc">.asc</a>
157157
</div>
158158
</div>
159159
<div>
160160
<div>
161-
<span>Beta</span>
161+
<span>测试版(Beta</span>
162162
<a href="https://static.rust-lang.org/dist/rustc-beta-src.tar.gz">.tar.gz</a>
163163
<a href="https://static.rust-lang.org/dist/rustc-beta-src.gz.asc">.asc</a>
164164
</div>
165165
</div>
166166
<div>
167167
<div>
168-
<span>Nightly</span>
168+
<span>开发版(Nightly</span>
169169
<a href="https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz">.tar.gz</a>
170170
<a href="https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz.asc">.asc</a>
171171
</div>

0 commit comments

Comments
 (0)