Skip to content

Commit 457cdfc

Browse files
committed
Add nomicon translate for zh-CN
1 parent 5d6bc4b commit 457cdfc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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> 命令在本地阅读,它会在您的浏览器中离线打开这些资源!

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)