From ac6397402b523ca89151c4b1ffb60e90acfaecc8 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 28 May 2019 11:32:04 -0700 Subject: [PATCH] Use localization strings in networking page --- locales/en-US/networking.ftl | 72 +++++++++++++++++++ .../what/networking/get-started.hbs | 12 ++-- .../components/what/networking/pitch.hbs | 26 +++---- .../components/what/networking/production.hbs | 34 ++------- templates/what/networking.hbs | 2 +- 5 files changed, 96 insertions(+), 50 deletions(-) create mode 100644 locales/en-US/networking.ftl diff --git a/locales/en-US/networking.ftl b/locales/en-US/networking.ftl new file mode 100644 index 000000000..1741c0a5c --- /dev/null +++ b/locales/en-US/networking.ftl @@ -0,0 +1,72 @@ +## templates/what/networking.hbs + +networking-header = Networking + +## templates/components/what/networking/get-started.hbs + +networking-get-started-header = Get started! +networking-get-started = Rust has a growing ecosystem of easy-to-use libraries for the web. Here are just two examples: +networking-get-started-post-json = POST some JSON +networking-get-started-take-json = Handle a JSON POST +networking-get-started-reqwest = Learn more about reqwest +networking-get-started-rocket = Learn more about Rocket + +## templates/components/what/networking/pitch.hbs + +networking-pitch-why = Why Rust? +networking-pitch-footprint-header = Low footprint +networking-pitch-footprint = + Take control over resource usage to keep memory and CPU footprint to a minimum. + Get help from the compiler to make sure you’ve got it right. + And do this with an ecosystem that is productive and pleasant to use. +networking-pitch-footprint-alt = A feather + + +networking-pitch-secure-header = Secure and reliable +networking-pitch-secure = + Rust’s powerful type checker prevents whole classes of bugs. + Make sure you know exactly when and where state is shared and mutated. + Get help catching points of failure — before deployment. +networking-pitch-secure-alt = A shield + + +networking-pitch-concurrent-header = Concurrent at scale +networking-pitch-concurrent = + Use any mixture of concurrency approaches that works for you. + Rust will make sure you don’t accidentally share state between threads or tasks. + It empowers you to squeeze every last bit of scaling, fearlessly. +networking-pitch-concurrent-alt = Connected gears + + +## templates/components/what/networking/production.hbs + +networking-production = Production use + +networking-production-testimonial-mozilla = + Migrating our Push connection infrastructure to Rust has provided us with an easier to maintain + code-base with a focus on correctness while delivering fantastic performance. We are now + handling up to 20 million websocket connections at once during peak hours with Rust servers. +networking-production-testimonial-mozilla-attribution = Benjamin Bangert, Staff Engineer, Mozilla + +networking-production-testimonial-buoyant = + Rust is foundational to the Linkerd project’s technology roadmap. Its type system allows us to + build modular, testable, composable units without sacrificing runtime performance. What’s been + most surprising, though, is how Rust’s lifetime/borrow checking system allows us to avoid large + classes of resource leaks. After 2 years, I really can’t imagine using any other language for + the job. +networking-production-testimonial-buoyant-attribution = Oliver Gould, CTO, Buoyant + +networking-production-testimonial-1aim = + Rust's powerful type system enables safe refactoring and catches many classes of bugs at + compile time. Its low footprint and high performance, complemented by guaranteed memory safety + and rock-solid error handling make it perfect for writing security critical and complex + business logic for our backend. The ultra-high stability means that our Rust applications are + the last part of our stack we ever have to worry about. We have been running a almost 100% Rust + backend in production since end of 2015 and it has never failed us so far! + +networking-production-testimonial-1aim-attribution = Yann Leretaille, 1aim + + + + + diff --git a/templates/components/what/networking/get-started.hbs b/templates/components/what/networking/get-started.hbs index 35ccf514e..cb872be6d 100644 --- a/templates/components/what/networking/get-started.hbs +++ b/templates/components/what/networking/get-started.hbs @@ -1,28 +1,28 @@
-

Get started!

+

{{text networking-get-started-header}}

-

Rust has a growing ecosystem of easy-to-use libraries for the web. Here are just two examples: +

{{text networking-get-started}}

diff --git a/templates/components/what/networking/pitch.hbs b/templates/components/what/networking/pitch.hbs index d1b6ef6c4..8e6107220 100644 --- a/templates/components/what/networking/pitch.hbs +++ b/templates/components/what/networking/pitch.hbs @@ -1,41 +1,35 @@
-

Why Rust?

+

{{text networking-pitch-why}}

- A feather -

Low footprint

+ {{text networking-pitch-footprint-alt}} +

{{text networking-pitch-footprint-header}}

- Take control over resource usage to keep memory and CPU footprint to a minimum. - Get help from the compiler to make sure you’ve got it right. - And do this with an ecosystem that is productive and pleasant to use. + {{text networking-pitch-footprint}}

- A shield -

Secure and reliable

+ {{text networking-pitch-secure-alt}} +

{{text networking-pitch-secure-header}}

- Rust’s powerful type checker prevents whole classes of bugs. - Make sure you know exactly when and where state is shared and mutated. - Get help catching points of failure — before deployment. + {{text networking-pitch-secure}}

- Connected gears -

Concurrent at scale

+ {{text networking-pitch-concurrent-alt}} +

{{text networking-pitch-concurrent-header}}

- Use any mixture of concurrency approaches that works for you. - Rust will make sure you don’t accidentally share state between threads or tasks. - It empowers you to squeeze every last bit of scaling, fearlessly. + {{text networking-pitch-concurrent}}

diff --git a/templates/components/what/networking/production.hbs b/templates/components/what/networking/production.hbs index 8b31f4b2e..7885695a1 100644 --- a/templates/components/what/networking/production.hbs +++ b/templates/components/what/networking/production.hbs @@ -1,7 +1,7 @@
-

Production use

+

{{text networking-production}}

@@ -10,29 +10,17 @@ firefox
-
- Migrating our Push connection infrastructure to Rust has provided us with an easier to maintain - code-base with a focus on correctness while delivering fantastic performance. We are now - handling up to 20 million websocket connections at once during peak hours with Rust servers. -
+
{{text networking-production-testimonial-mozilla}}

- – Benjamin Bangert, Staff Engineer, - Mozilla + – {{text networking-production-testimonial-mozilla-attribution}}

-
- Rust is foundational to the Linkerd project’s technology roadmap. Its type system allows us to - build modular, testable, composable units without sacrificing runtime performance. What’s been - most surprising, though, is how Rust’s lifetime/borrow checking system allows us to avoid large - classes of resource leaks. After 2 years, I really can’t imagine using any other language for - the job. -
+
{{text networking-production-testimonial-buoyant}}

- – Oliver Gould, CTO, - Buoyant + – {{text networking-production-testimonial-buoyant-attribution}}

@@ -44,17 +32,9 @@ 1aim
-
- Rust's powerful type system enables safe refactoring and catches many classes of bugs at - compile time. Its low footprint and high performance, complemented by guaranteed memory safety - and rock-solid error handling make it perfect for writing security critical and complex - business logic for our backend. The ultra-high stability means that our Rust applications are - the last part of our stack we ever have to worry about. We have been running a almost 100% Rust - backend in production since end of 2015 and it has never failed us so far! -
+
{{text networking-production-testimonial-1aim}}

- – Yann Leretaille, - 1aim + – {{text networking-production-testimonial-1aim-attribution}}

diff --git a/templates/what/networking.hbs b/templates/what/networking.hbs index 145f7ae43..006a8709f 100644 --- a/templates/what/networking.hbs +++ b/templates/what/networking.hbs @@ -2,7 +2,7 @@
-

Networking

+

{{text networking-header}}