diff --git a/po/zh-CN.po b/po/zh-CN.po index 8e8fc925a4db..7dc56040c2b3 100644 --- a/po/zh-CN.po +++ b/po/zh-CN.po @@ -12844,38 +12844,42 @@ msgid "" "The [CXX crate](https://cxx.rs/) makes it possible to do safe " "interoperability between Rust and C++." msgstr "" +"[CXX crate](https://cxx.rs/) 使得在 Rust 和 C++ 之间进行安全的互操作成为可" +"能。" #: src/android/interoperability/cpp.md:6 msgid "The overall approach looks like this:" -msgstr "" +msgstr "整体的方法如下:" #: src/android/interoperability/cpp.md:10 msgid "" "See the [CXX tutorial](https://cxx.rs/tutorial.html) for an full example of " "using this." msgstr "" +"请参阅 [CXX tutorial](https://cxx.rs/tutorial.html) ,了解有关使用的完整示" +"例。" #: src/android/interoperability/cpp.md:14 msgid "" "At this point, the instructor should switch to the [CXX tutorial](https://" "cxx.rs/tutorial.html)." -msgstr "" +msgstr "此时,讲师应该该切换到 [CXX tutorial](https://cxx.rs/tutorial.html)。" #: src/android/interoperability/cpp.md:16 msgid "Walk the students through the tutorial step by step." -msgstr "" +msgstr "逐步引导学生按照教程一步步操作。" #: src/android/interoperability/cpp.md:18 msgid "" "Highlight how CXX presents a clean interface without unsafe code in _both " "languages_." -msgstr "" +msgstr "突出展示 CXX 在 _两种语言_ 中都提供了一个没有不安全代码的干净接口。" #: src/android/interoperability/cpp.md:20 msgid "" "Show the correspondence between [Rust and C++ types](https://cxx.rs/bindings." "html):" -msgstr "" +msgstr "展示 [Rust 和 C++类型](https://cxx.rs/bindings.html) 之间的对应关系:" #: src/android/interoperability/cpp.md:22 msgid "" @@ -12884,12 +12888,17 @@ msgid "" "types, `rust::String` in C++ can be easily constructed from a C++ `std::" "string`, making it very ergonomic to use." msgstr "" +"解释 Rust 的 `String` 无法直接映射到 C++ 的 `std::string `(后者不符合UTF-8不" +"变性)。展示尽管类型不同,但在 C++ 中,可以很容易地从 C++ 的 `std::string` 构" +"造 `rust::String` ,使得使用起来非常方便。" #: src/android/interoperability/cpp.md:28 msgid "" "Explain that a Rust function returning `Result` becomes a function " "which throws a `E` exception in C++ (and vice versa)." msgstr "" +"解释 Rust 中返回 `Result ` 的函数在 C++ 中会变成抛出 `E` 异常的函数(反" +"之亦然)。" #: src/android/interoperability/java.md:1 msgid "Interoperability with Java"