Skip to content

add nomicon translate for zh-CN #1593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions locales/zh-CN/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ learn-reference-button = 阅读《参考手册》
learn-nomicon-alt = 双手捧火
learn-nomicon = 《Rust 秘典》是 Unsafe Rust 的黑魔法指南。它有时被称作“死灵书”。
learn-nomicon-button = 阅读《Rust 秘典》
translated-nomicon = https://nomicon.purewhite.io/
translated-nomicon-button = 阅读非官方翻译
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你写了“非官方”, 很好

learn-unstable-alt = 手洒星光
learn-unstable = 《未稳定特性手册》覆盖了当前只能在 nightly Rust 中使用的还未稳定的特性。
learn-unstable-button = 阅读《未稳定特性手册》
Expand Down
1 change: 1 addition & 0 deletions templates/learn/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
href="https://doc.rust-lang.org/nomicon/index.html">
{{fluent "learn-nomicon-button"}}
</a>
{{#if (fluent "translated-nomicon")}}<a class="button-additional" href={{fluent "translated-nomicon"}}>{{fluent "translated-nomicon-button"}}</a>{{/if}}
</div>
</div>

Expand Down