Skip to content

Commit f55985e

Browse files
authored
Merge pull request #1617 from aaranxu/translate-rbe
Add nomicon translate for zh-CN and fix dead links
2 parents 5d6bc4b + 314bbeb commit f55985e

File tree

13 files changed

+43
-0
lines changed

13 files changed

+43
-0
lines changed

locales/en-US/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ learn-rustlings = Alternatively, Rustlings guides you through downloading and se
1111
learn-rustlings-button = Do the Rustlings course!
1212
learn-rbe = If reading multiple hundreds of pages about a language isn’t your style, then Rust By Example has you covered. While the book talks about code with a lot of words, RBE shows off a bunch of code, and keeps the talking to a minimum. It also includes exercises!
1313
learn-rbe-button = Check out Rust by Example!
14+
translated-rbe = {""}
15+
translated-rbe-button = {""}
1416
1517
learn-use = Grow with Rust
1618
@@ -59,6 +61,8 @@ learn-reference-button = Read the reference
5961
learn-nomicon-alt = Two hands cradling fire
6062
learn-nomicon = The Rustonomicon is your guidebook to the dark arts of unsafe Rust. It’s also sometimes called “the ’nomicon.”
6163
learn-nomicon-button = Read the ’nomicon
64+
translated-nomicon = { "" }
65+
translated-nomicon-button = { "" }
6266
6367
learn-unstable-alt = A hand sharing sparkles
6468
learn-unstable = The Unstable Book has documentation for unstable features that you can only use with nightly Rust.

locales/es/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = Como alternativa, Rustlings te guía en la descarga y la confi
1010
learn-rustlings-button = ¡Haz el curso Rustlings!
1111
learn-rbe = Si leer cientos de páginas sobre un lenguaje no es tu estilo, entonces Rust by Example es la solución. Mientras el libro habla del código con muchas palabras, Rust by Example enseña un montón de código y limita el texto al mínimo. ¡También incluye ejercicios!
1212
learn-rbe-button = ¡Explora Rust By Example!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = Crece con Rust
1416
learn-doc-heading = Lee la documentación principal
1517
learn-doc = Toda esta documentación está también disponible en local usando el comando <code>rustup doc</code>, que mostrará todas las páginas en tu navegador sin necesidad de acceso a internet.
@@ -40,6 +42,8 @@ learn-reference-button = Lee la Referencia
4042
learn-nomicon-alt = Dos manos sosteniendo una llama
4143
learn-nomicon = El Rustonomicon es tu guía para el oscuro arte del uso de <i>unsafe</i> Rust. También se lo conoce como "el nomicon".
4244
learn-nomicon-button = Lee el "nomicon"
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = Una mano soltando chispas
4448
learn-unstable = El Unstable Book contiene documentación sobre funcionalidades inestables que puedes usar solo con Rust nightly.
4549
learn-unstable-button = Lee el Unstable Book

locales/fr/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = Sinon, "Rustlings" vous guide au travers du téléchargement e
1010
learn-rustlings-button = Faire le cours "Rustlings" !
1111
learn-rbe = Si lire plusieurs centaines de pages à propos d'un langage n'est pas votre style, alors "Rust by Example" est fait pour vous. Alors que le "Book" parle du code avec beaucoup de mots, RBE montre beaucoup de code, et limite la discussion au minimum. Ça inclut aussi des exercices !
1212
learn-rbe-button = Consulter Rust by Example !
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = S'épanouir avec Rust
1416
learn-doc-heading = Lire la documentation centrale
1517
learn-doc = Toute cette documentation est également disponible localement en utilisant la commande <code>rustup doc</code>, qui ouvrira ces ressources pour vous directement dans votre navigateur et même hors connexion !
@@ -40,6 +42,8 @@ learn-reference-button = Lire la référence
4042
learn-nomicon-alt = deux mains couvrant une flamme
4143
learn-nomicon = Le Rustonomicon est votre guide dans les arts sombres du Rust unsafe. Il est parfois appelé "le ’nomicon" .
4244
learn-nomicon-button = Lire le ’nomicon.
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = Une main lâchant des objets scintillants.
4448
learn-unstable = Le Unstable Book contient la documentation des fonctionnalités instables que vous pouvez seulement utiliser avec les versions nightly de Rust
4549
learn-unstable-button = Lire le Unstable Book

locales/it/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = In alternativa, le guide "Rustlings" ti guideranno attraverso
1010
learn-rustlings-button = Fai il corso Rustlings!
1111
learn-rbe = Se leggere centinaia di pagine di manualistica non è il tuo stile, allora "Rust by Example" fa per te. Il Libro parla di codice in maniera piuttosto prolissa, mentre RBE ti mostra il codice e pochi fronzoli: inclusi anche gli esercizi!
1212
learn-rbe-button = Vai su Rust by Example!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = Diventa esperto con Rust
1416
learn-doc-heading = Leggi la documentazione
1517
learn-doc = Tutta la documentazione è anche disponibile in locale; tramite il comando <code>rustup doc</code> si aprirà una pagina nel browser, non occorre alcuna connessione di rete!
@@ -40,6 +42,8 @@ learn-reference-button = Leggi la Reference
4042
learn-nomicon-alt = due mani che reggono un fuoco
4143
learn-nomicon = Il Rustonomicon è il tuo mauale di magia nera sul codice Rust unsafe. Noto anche come "il 'nomicon".
4244
learn-nomicon-button = Leggi il ’nomicon
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = una mano che fa scintille
4448
learn-unstable = L'Unstable Book contiene documentazione su feature non ancora stabilizzate che sono disponibili solo su Rust nightly.
4549
learn-unstable-button = Leggi il Unstable Book

locales/ja/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = あるいはRustlingsなら、コマンドライン上で、Ru
1010
learn-rustlings-button = Rustlingsコースをやってみよう!
1111
learn-rbe = ひとつの言語について何百ページも読むのがあなたの好みに合わなければ、 Rust By Exampleにお任せください。the bookはコードをたくさんの言葉で説明しますが、 RBE (Rust By Example)はたくさんのコード例を示し、説明は最小限です。練習問題もあります!
1212
learn-rbe-button = Rust by Exampleを見てみよう!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = Rustと共に成長する
1416
learn-doc-heading = コアドキュメントを読む
1517
learn-doc = このドキュメントの全てはローカルでも<code>rustup doc</code>コマンドで参照可能で、ネットワーク接続なしにブラウザで開けます!
@@ -40,6 +42,8 @@ learn-reference-button = リファレンスを読む
4042
learn-nomicon-alt = 火をそっと抱える二つの手
4143
learn-nomicon = Rustonomiconは黒魔術であるアンセーフなRustへの手引書です。しばしば「’nomicon」とも呼ばれます。
4244
learn-nomicon-button = ’nomiconを読む
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = 火花を出す手
4448
learn-unstable = Unstableブックにはnightly Rustのみで使える不安定な機能に関する記述があります。
4549
learn-unstable-button = unstableブックを読む

locales/ko/learn.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ translated-book = { "" }
77
translated-book-button = { "" }
88
learn-rustlings-button = Rustlings 코스 시작하기
99
learn-rbe-button = 예제로 알아보는 Rust 살펴보기
10+
translated-rbe = {""}
11+
translated-rbe-button = {""}
1012
learn-use = Rust로 성장하기
1113
learn-doc-heading = 핵심 문서 읽기
1214
learn-doc-std = Rust 표준 라이브러리 API에 대한 포괄적인 가이드입니다.

locales/pl/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = Alternatywnie, Rustlings przeprowadzi Cię przez pobranie i in
1010
learn-rustlings-button = Wykonaj kurs Rustlings!
1111
learn-rbe = Jeśli czytanie kilkuset stronicowej książki o języku programowania nie jest w twoim stylu, to być może bardziej spodoba Ci się Rust By Example. Podczas gdy główny podręcznik opisuje język słowami, RBE pokazuje go na przykładach kodu i zadaniach, które możesz wykonać!
1212
learn-rbe-button = Zobacz Rust by Example!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = Rozwijaj się z Rustem
1416
learn-doc-heading = Przeczytaj dokumentację języka
1517
learn-doc = Cała ta dokumentacja jest też dostępna lokalnie. Wystarczy użyć komendy <code>rustup doc</code>, aby otworzyć w przeglądarce przechowywane na dysku pliki dokumentacji. Połączenie z internetem nie jest potrzebne!
@@ -40,6 +42,8 @@ learn-reference-button = Czytaj Dokument Referencyjny
4042
learn-nomicon-alt = Dwie ręce trzymające ogień
4143
learn-nomicon = Niechaj Rustonomikon poprowadzi Cię przez czarną magię sekcji niebezpiecznego kodu Rust. Niektórzy nazywają go skrótowo po prostu "nomikonem".
4244
learn-nomicon-button = Czytaj nomikon.
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = Ręka dzieląca się iskrami
4448
learn-unstable = Podręcznik Niestabilności dokumentuje niestabilne funkcje języka które są dostępne jedynie w wersjach nightly.
4549
learn-unstable-button = Czytaj podręcznik niestabilności

locales/pt-BR/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = Alternativamente, <i>Rustlings</i> te guiará através do proc
1010
learn-rustlings-button = Faça o curso <i>Rustlings</i>!
1111
learn-rbe = Se ler centenas de páginas sobre uma linguagem não for o seu estilo, então o Rust por Exemplo tem a solução. Enquanto o livro fala sobre código usando muitas palavras, o RPE trás muitas linhas de código e limita o texto ao mínimo. Também inclui exercícios!
1212
learn-rbe-button = Veja o livro Rust por Exemplos!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = Cresça com Rust
1416
learn-doc-heading = Leia a documentação principal
1517
learn-doc = Toda a documentação também está disponível localmente usando o comando <code>rustup doc</code>, que irá apresentar todos esses recursos no seu navegador sem precisar de acesso a internet.
@@ -40,6 +42,8 @@ learn-reference-button = Leia a referência
4042
learn-nomicon-alt = Duas mãos carregando fogo
4143
learn-nomicon = O Rustnomicon é o seu guia para a arte secreta para usar <i>unsafe</i> em Rust. Algumas vezes também é chamado de "o nomicon".
4244
learn-nomicon-button = Leia o 'nomicon
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = Uma mão espalhando faíscas
4448
learn-unstable = O Livro Instável é a documentação para funcionalidades instáveis que podem ser usadas apenas no Rust <i>nightly</i>.
4549
learn-unstable-button = Leia o Livro Instável (<i>The Unstable book</i>)

locales/ru/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = Другой вариант, Rustlings, поможет вам
1010
learn-rustlings-button = Пройдите курс Rustlings!
1111
learn-rbe = Если чтение сотен страниц о языке &mdash; не ваш стиль, то вам стоит взглянуть на "Rust на примерах" ("Rust By Example", RBE). Пока "Книга" большим количеством слов рассуждает о коде, RBE показывает куски кода и сводит рассуждения к минимуму. Также она содержит упражнения!
1212
learn-rbe-button = Перейти в Rust by Example!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = Совершенствуйтесь с Rust
1416
learn-doc-heading = Прочитайте основную документацию
1517
learn-doc = Вся документация также доступна локально. Команда <code>rustup doc</code> откроет её в вашем браузере даже без сети!
@@ -40,6 +42,8 @@ learn-reference-button = Читать Reference
4042
learn-nomicon-alt = Две руки держат огонь
4143
learn-nomicon = Rustonomicon - это ваш путеводитель в тёмное искусство небезопасного Rust. Иногда его называют "’nomicon".
4244
learn-nomicon-button = Читать ’nomicon
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = Рука выпускает искры
4448
learn-unstable = Unstable Book содержит документацию о нестабильных возможностях, которые вы можете использовать только в ночной версии Rust.
4549
learn-unstable-button = Читать Unstable Book

locales/tr/learn.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ learn-reference-button = Referans'ı oku
3838
learn-nomicon-alt = Ateşi kucaklayan iki el
3939
learn-nomicon = Rustonomicon, Rust'ın emniyetsiz karanlık sanatları için bir rehber niteliğindedir. Bazen "the ’nomicon.” da denir.
4040
learn-nomicon-button = 'nomicon'u Oku
41+
translated-nomicon = { "" }
42+
translated-nomicon-button = { "" }
4143
learn-unstable-alt = Işık saçan bir el
4244
learn-unstable = Kararsız sürümle ilgili kitap, kararsız özellikler için belgelendirmelere sahiptir ve sadece Rust'ın nightly sürümü ile kullanılabilir.
4345
learn-unstable-button = Kararsız sürümle ilgili kitabı oku

locales/zh-CN/learn.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ learn-rustlings = 此外,Rustlings 课程会指导您下载并设置 Rust 工
1212
learn-rustlings-button = 学习 Rustlings 课程!
1313
learn-rbe = 如果您不喜欢阅读大量的文档来学习语言,那么《通过例子学 Rust》就能涵盖您要学的知识。虽然本书花了很多篇幅来解释代码,但它展示的代码很丰富,并且尽量减少了文字解释。它还包括很多练习!
1414
learn-rbe-button = 阅读《通过例子学 Rust》!
15+
translated-rbe = https://rustwiki.org/zh-CN/rust-by-example/
16+
translated-rbe-button = 阅读非官方翻译
1517
learn-use = 与 Rust 共同成长
1618
learn-doc-heading = 阅读核心文档
1719
learn-doc = 以下所有文档都可以用 <code>rustup doc</code> 命令在本地阅读,它会在您的浏览器中离线打开这些资源!

locales/zh-TW/learn.ftl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ learn-rustlings = 除此之外,Rustlings 課程會引導您下載並設置 Rus
1010
learn-rustlings-button = 開始 Rustlings 的課程!
1111
learn-rbe = 如果閱讀一本數百頁的書並不適合您的話,那《透過範例學習 Rust》將是您的選擇。當書本使用一堆文字教學時,《透過範例學習 Rust》則是展示各種範例,並附上最少的文字說明,同時還附有練習題!
1212
learn-rbe-button = 閱讀《透過範例學習 Rust》!
13+
translated-rbe = {""}
14+
translated-rbe-button = {""}
1315
learn-use = 與 Rust 一同成長
1416
learn-doc-heading = 閱讀核心技術文件
1517
learn-doc = 這些文件您都能在本機端使用 <code>rustup doc</code> 指令來取得,它能在沒有網路連線的狀況下使用您的瀏覽器開啟這些文件!
@@ -40,6 +42,8 @@ learn-reference-button = 閱讀《參考手冊》
4042
learn-nomicon-alt = 雙手捧著火的圖示
4143
learn-nomicon = 《Rust 祕笈》是教您 unsafe Rust 的黑魔法指南,它有時也被稱為「 ’nomicon」。
4244
learn-nomicon-button = 閱讀《Rust 祕笈》
45+
translated-nomicon = { "" }
46+
translated-nomicon-button = { "" }
4347
learn-unstable-alt = 手撒出亮光
4448
learn-unstable = 《Unstable 手冊》紀載還尚未穩定的功能,您也只能在 nightly Rust 中使用。
4549
learn-unstable-button = 閱讀《Unstable 手冊》

templates/learn/index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<p class="flex-grow-1">{{fluent "learn-rbe"}}</p>
3636
<div class="buttons">
3737
<a class="button button-secondary" href="https://doc.rust-lang.org/stable/rust-by-example/">{{fluent "learn-rbe-button"}}</a>
38+
{{#if (fluent "translated-rbe")}}<a class="button-additional" href={{fluent "translated-rbe"}}>{{fluent "translated-rbe-button"}}</a>{{/if}}
3839
</div>
3940
</div>
4041
</div>

0 commit comments

Comments
 (0)