Skip to content

Commit 64f2b99

Browse files
committed
Use localization strings in networking page
1 parent 01f775a commit 64f2b99

File tree

5 files changed

+97
-50
lines changed

5 files changed

+97
-50
lines changed

locales/en-US/networking.ftl

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
## templates/what/networking.hbs
2+
3+
networking-header = Networking
4+
5+
## templates/components/what/networking/get-started.hbs
6+
7+
networking-get-started-header = Get started!
8+
networking-get-started = Rust has a growing ecosystem of easy-to-use libraries for the web. Here are just two examples:
9+
networking-get-started-post-json = POST some JSON
10+
networking-get-started-take-json = Handle a JSON POST
11+
networking-get-started-reqwest = Learn more about reqwest
12+
networking-get-started-rocket = Learn more about Rocket
13+
14+
## templates/components/what/networking/pitch.hbs
15+
16+
networking-pitch-why = Why Rust?
17+
networking-pitch-footprint-header = Low footprint
18+
networking-pitch-footprint =
19+
Take control over resource usage to keep memory and CPU footprint to a minimum.
20+
Get help from the compiler to make sure you’ve got it right.
21+
And do this with an ecosystem that is productive and pleasant to use.
22+
networking-pitch-footprint-alt = A feather
23+
24+
25+
networking-pitch-secure-header = Secure and reliable
26+
networking-pitch-secure =
27+
Rust’s powerful type checker prevents whole classes of bugs.
28+
Make sure you know exactly when and where state is shared and mutated.
29+
Get help catching points of failure — before deployment.
30+
networking-pitch-secure-alt = A shield
31+
32+
33+
networking-pitch-concurrent-header = Concurrent at scale
34+
networking-pitch-concurrent =
35+
Use any mixture of concurrency approaches that works for you.
36+
Rust will make sure you don’t accidentally share state between threads or tasks.
37+
It empowers you to squeeze every last bit of scaling, fearlessly.
38+
networking-pitch-concurrent-alt = Connected gears
39+
40+
41+
## templates/components/what/networking/production.hbs
42+
43+
networking-production = Production use
44+
45+
networking-production-testimonial-mozilla =
46+
Migrating our Push connection infrastructure to Rust has provided us with an easier to maintain
47+
code-base with a focus on correctness while delivering fantastic performance. We are now
48+
handling up to 20 million websocket connections at once during peak hours with Rust servers.
49+
networking-production-testimonial-mozilla-attribution = Benjamin Bangert, Staff Engineer, Mozilla
50+
51+
networking-production-testimonial-buoyant =
52+
Rust is foundational to the Linkerd project’s technology roadmap. Its type system allows us to
53+
build modular, testable, composable units without sacrificing runtime performance. What’s been
54+
most surprising, though, is how Rust’s lifetime/borrow checking system allows us to avoid large
55+
classes of resource leaks. After 2 years, I really can’t imagine using any other language for
56+
the job.
57+
networking-production-testimonial-buoyant-attribution = Oliver Gould, CTO, <a href="https://buoyant.io/">Buoyant</a>
58+
59+
networking-production-testimonial-1aim =
60+
Rust's powerful type system enables safe refactoring and catches many classes of bugs at
61+
compile time. Its low footprint and high performance, complemented by guaranteed memory safety
62+
and rock-solid error handling make it perfect for writing security critical and complex
63+
business logic for our backend. The ultra-high stability means that our Rust applications are
64+
the last part of our stack we ever have to worry about. We have been running a almost 100% Rust
65+
backend in production since end of 2015 and it has never failed us so far!
66+
67+
networking-production-testimonial-1aim-attribution = Yann Leretaille, <a href="https://1aim.com/">1aim</a>
68+
69+
70+
71+
72+

templates/components/what/networking/get-started.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<section id="networking-get-started" class="red">
22
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
33
<header>
4-
<h2>Get started!</h2>
4+
<h2>{{text networking-get-started-header}}</h2>
55
<div class="highlight"></div>
66
</header>
77

88
<div>
9-
<p>Rust has a growing ecosystem of easy-to-use libraries for the web. Here are just two examples:
9+
<p>{{text networking-get-started}}
1010
</p>
1111
</div>
1212

1313
<div class="flex-l">
1414
<article class="w-50-l mr4-l">
15-
<h3>POST some JSON</h3>
15+
<h3>{{text networking-get-started-post-json}}</h3>
1616
<pre><code>{{> components/what/networking/post-json }}</code></pre>
1717

18-
<a href="https://docs.rs/reqwest/" class="button button-secondary">Learn more about reqwest</a>
18+
<a href="https://docs.rs/reqwest/" class="button button-secondary">{{text networking-get-started-reqwest}}</a>
1919
</article>
2020

2121
<article class="w-50-l ml4-l mt5 mt0-l">
22-
<h3>Handle a JSON POST</h3>
22+
<h3>{{text networking-get-started-take-json}}</h3>
2323
<pre><code>{{> components/what/networking/take-json }}</code></pre>
2424

25-
<a href="https://rocket.rs/" class="button button-secondary">Learn more about Rocket</a>
25+
<a href="https://rocket.rs/" class="button button-secondary">{{text networking-get-started-rocket}}</a>
2626
</article>
2727
</div>
2828
</div>

templates/components/what/networking/pitch.hbs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
11
<section id="wasm-why" class="purple">
22
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
33
<header>
4-
<h2>Why Rust?</h2>
4+
<h2>{{text networking-pitch-why}}</h2>
55
<div class="highlight"></div>
66
</header>
77
<div class="flex-l">
88
<div class="w-33-l ph5 ph0-l">
99
<div class="domain-icon">
10-
<img src="/static/images/feather.svg" alt="A feather" />
11-
<h3>Low footprint</h3>
10+
<img src="/static/images/feather.svg" alt="{{text networking-pitch-footprint-alt}}" />
11+
<h3>{{text networking-pitch-footprint-header}}</h3>
1212
</div>
1313
<p>
14-
Take control over resource usage to keep memory and CPU footprint to a minimum.
15-
Get help from the compiler to make sure you’ve got it right.
16-
And do this with an ecosystem that is productive and pleasant to use.
14+
{{text networking-pitch-footprint}}
1715
</p>
1816
</div>
1917
<div class="w-33-l ml5-l ph5 ph0-l mt5 mt0-l">
2018
<div class="domain-icon">
21-
<img src="/static/images/secure-shield.svg" alt="A shield" />
22-
<h3>Secure and reliable</h3>
19+
<img src="/static/images/secure-shield.svg" alt="{{text networking-pitch-secure-alt}}" />
20+
<h3>{{text networking-pitch-secure-header}}</h3>
2321
</div>
2422
<p>
25-
Rust’s powerful type checker prevents whole classes of bugs.
26-
Make sure you know exactly when and where state is shared and mutated.
27-
Get help catching points of failure &mdash; before deployment.
23+
{{text networking-pitch-secure}}
2824
</p>
2925
</div>
3026
<div class="w-33-l ml5-l ph5 ph0-l mt5 mt0-l">
3127
<div class="domain-icon">
32-
<img src="/static/images/gears-network.svg" alt="Connected gears" />
33-
<h3>Concurrent at scale</h3>
28+
<img src="/static/images/gears-network.svg" alt="{{text networking-pitch-concurrent-alt}}" />
29+
<h3>{{text networking-pitch-concurrent-header}}</h3>
3430
</div>
3531
<p>
36-
Use any mixture of concurrency approaches that works for you.
37-
Rust will make sure you don’t accidentally share state between threads or tasks.
38-
It empowers you to squeeze every last bit of scaling, fearlessly.
32+
{{text networking-pitch-concurrent}}
3933
</p>
4034
</div>
4135
</div>

templates/components/what/networking/production.hbs

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<section id="production" class="white">
22
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
33
<header>
4-
<h2>Production use</h2>
4+
<h2>{{text networking-production}}</h2>
55
<div class="highlight"></div>
66
</header>
77
<div class="testimonials">
@@ -10,31 +10,20 @@
1010
<img src="/static/images/firefox.png" alt="firefox" />
1111
</div>
1212
<div class="w-70-l">
13-
<blockquote>
14-
Migrating our Push connection infrastructure to Rust has provided us with an easier to maintain
15-
code-base with a focus on correctness while delivering fantastic performance. We are now
16-
handling up to 20 million websocket connections at once during peak hours with Rust servers.
17-
</blockquote>
13+
<blockquote>{{text networking-production-testimonial-mozilla}}</blockquote>
1814
<p class="attribution">
19-
&ndash; Benjamin Bangert, Staff Engineer,
20-
Mozilla
15+
&ndash; {{text networking-production-testimonial-mozilla-attribution}}
2116
</p>
2217
</div>
2318
</div>
2419
<div class="testimonial flex flex-row">
2520
<div class="w-70-l">
26-
<blockquote>
27-
Rust is foundational to the Linkerd project’s technology roadmap. Its type system allows us to
28-
build modular, testable, composable units without sacrificing runtime performance. What’s been
29-
most surprising, though, is how Rust’s lifetime/borrow checking system allows us to avoid large
30-
classes of resource leaks. After 2 years, I really can’t imagine using any other language for
31-
the job.
32-
</blockquote>
21+
<blockquote>{{text networking-production-testimonial-buoyant}}</blockquote>
3322
<p class="attribution">
34-
&ndash; Oliver Gould, CTO,
35-
<a href="https://buoyant.io/">Buoyant</a>
23+
&ndash; {{text networking-production-testimonial-buoyant-attribution}}
3624
</p>
3725
</div>
26+
</div>
3827
<div class="w-30-l tc pa3">
3928
<img src="/static/images/buoyant.svg" alt="buoyant" />
4029
</div>
@@ -44,17 +33,9 @@
4433
<img src="/static/images/1aim.svg" alt="1aim" />
4534
</div>
4635
<div class="w-70-l">
47-
<blockquote>
48-
Rust's powerful type system enables safe refactoring and catches many classes of bugs at
49-
compile time. Its low footprint and high performance, complemented by guaranteed memory safety
50-
and rock-solid error handling make it perfect for writing security critical and complex
51-
business logic for our backend. The ultra-high stability means that our Rust applications are
52-
the last part of our stack we ever have to worry about. We have been running a almost 100% Rust
53-
backend in production since end of 2015 and it has never failed us so far!
54-
</blockquote>
36+
<blockquote>{{text networking-production-testimonial-1aim}}</blockquote>
5537
<p class="attribution">
56-
&ndash; Yann Leretaille,
57-
<a href="https://1aim.com/">1aim</a>
38+
&ndash; {{text networking-production-testimonial-1aim-attribution}}
5839
</p>
5940
</div>
6041
</div>

templates/what/networking.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
44
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
5-
<h1>Networking</h1>
5+
<h1>{{text networking-header}}</h1>
66
</div>
77
</header>
88

0 commit comments

Comments
 (0)