Skip to content

Commit 4eff3cc

Browse files
ZexbeXAMPPRocky
andauthored
Make install button easier (#1004)
* Make install page better * Change install detect message * Replace nobr with span nowrap Co-Authored-By: XAMPPRocky <[email protected]> Co-authored-by: XAMPPRocky <[email protected]>
1 parent 10570df commit 4eff3cc

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

locales/en-US/tools.ftl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ tools-install-page-title = Install Rust
6060
6161
install-using-rustup-heading = Using rustup (Recommended)
6262
63+
install-rustup32-button = Download <span class="nowrap">rustup-init.exe</span> <span class="nowrap">(32-bit)</span>
64+
65+
install-rustup64-button = Download <span class="nowrap">rustup-init.exe</span> <span class="nowrap">(64-bit)</span>
66+
6367
install-notes-heading = Notes about Rust installation
6468
6569
install-notes-getting-started-description = If you're just getting started with
@@ -149,8 +153,8 @@ install-other-methods-link = Learn more
149153
150154
## components/tools/rustup.hbs
151155

152-
tools-rustup-unixy = It looks like you’re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.
153-
tools-rustup-windows = It looks like you’re running Windows. To install Rust, download and run the following, and then follow the onscreen instructions.
156+
tools-rustup-unixy = It looks like you’re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions. See <a href="https://forge.rust-lang.org/infra/other-installation-methods.html">"Other Installation Methods"</a> if you are on Windows.
157+
tools-rustup-windows = It looks like you’re running Windows. To start using Rust, download the installer, then run the program and follow the onscreen instructions. See <a href="https://forge.rust-lang.org/infra/other-installation-methods.html">"Other Installation Methods"</a> if you are not on Windows.
154158
tools-rustup-wsl-heading = Windows Subsystem for Linux
155159
tools-rustup-wsl = If you’re a Windows Subsystem for Linux user run the following in your terminal, then follow the on-screen instructions to install Rust.
156160
tools-rustup-unknown = Rust runs on Windows, Linux, macOS, FreeBSD and NetBSD. If you are on one of these platforms and are seeing this then please report an issue with the following values:

templates/components/tools/rustup.hbs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
</div>
66
<div id="platform-instructions-win" class="instructions dn">
77
<p>{{fluent "tools-rustup-windows"}}</p>
8-
<a href="https://win.rustup.rs" class="button button-secondary">rustup‑init.exe</a>
9-
<p><b>{{fluent "tools-rustup-wsl-heading"}}</b></p>
10-
<p>{{fluent "tools-rustup-wsl"}}</p>
11-
<pre><code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
8+
<div class="mw9 center ph3-ns">
9+
<div class="cf ph2-ns">
10+
<div class="fl w-100 w-50-ns pa2">
11+
<a href="https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe" class="button button-secondary">{{fluent "install-rustup32-button"}}</a>
12+
</div>
13+
<div class="fl w-100 w-50-ns pa2">
14+
<a href="https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" class="button button-secondary">{{fluent "install-rustup64-button"}}</a>
15+
</div>
16+
</div>
17+
</div>
18+
<h3 class="mt4">{{fluent "tools-rustup-wsl-heading"}}</h3>
19+
<p>{{fluent "tools-rustup-wsl"}}</p>
20+
<pre><code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
1221
</div>
1322
<div id="platform-instructions-unknown" class="instructions dn">
1423
<!-- unrecognized platform: ask for help -->

0 commit comments

Comments
 (0)