1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-17 07:11:27 +02:00
comprehensive-rust/src
Martin Geisler d0e0e5c1af
Skip some untranslatable code blocks (#1258)
This builds on the work of @dyoo in
https://github.com/google/mdbook-i18n-helpers/pull/69: by adding a
special `<!-- mdbook-xgettext: skip -->` comment, we can skip the
following code block.

I also modified a few code blocks to remove translatable text: variable
names are not expected to be translated, so it’s fine to have a line
with `println!("foo: {foo}")` in the code block.

This PR removes 36 messages from the POT file. The number of lines drop
by 633 (3%).

Part of #1257.
2023-09-26 17:04:46 +02:00
..
android Add speaker notes for CXX page (#1060) 2023-08-11 13:00:10 +02:00
async typo: removed duplicate "seconds" after 500ms (#1190) 2023-09-09 23:13:59 -07:00
bare-metal Add typos to CI (#1158) 2023-09-05 20:21:59 +00:00
basic-syntax Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
cargo Mention backwards compatibility (#1068) 2023-08-13 15:25:25 +02:00
concurrency Expand "iff" to "if and only if" (#1051) 2023-08-04 12:52:36 +01:00
control-flow Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
enums Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
error-handling Add that the ? operator works with From<Err> (#1059) 2023-08-09 16:48:15 +02:00
exercises Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
generics Restructure Day-3 morning (#503) 2023-03-30 13:25:34 +01:00
hello-world Add suggestion to use rustup doc (#770) 2023-06-10 18:01:57 -04:00
memory-management Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
methods Update receiver.md (#661) 2023-05-23 12:57:38 +00:00
modules Filesystem slide rework (#1002) 2023-07-18 13:32:45 +02:00
ownership Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
pattern-matching Minor fixes (#579) 2023-04-24 14:46:38 -04:00
running-the-course Fix link in translations.md (#1220) 2023-09-19 07:30:23 +02:00
std Replace binary_search example with try_into (#1213) 2023-09-20 15:52:10 +02:00
structs Use non-generic default (#999) 2023-07-17 22:38:48 -07:00
testing Add a file which references some useful crates to use for writing tests (#617) 2023-05-05 14:59:25 +00:00
traits Clarify distinction between Drop trait and drop function. (#1255) 2023-09-26 11:59:16 +01:00
unsafe Wrap comments at 80 columns (#592) 2023-05-03 12:00:58 +02:00
welcome-day-1 Add reference to microcontrollers as target for rust (#986) 2023-07-17 19:01:21 +02:00
why-rust Remove the overly specific 40 years reference (#988) 2023-07-17 18:57:33 +02:00
android.md Cleanup references to "Day 4" (#603) 2023-05-02 08:02:28 +02:00
async.md Add an "async" session (#496) 2023-04-14 14:06:50 +00:00
bare-metal.md Cleanup references to "Day 4" (#603) 2023-05-02 08:02:28 +02:00
basic-syntax.md Mention that the syntax is similar to Java as well. (#337) 2023-02-03 15:28:38 +00:00
cargo.md Consolidate editor recommendations in main text (#1217) 2023-09-18 18:37:59 +02:00
concurrency.md Cleanup references to "Day 4" (#603) 2023-05-02 08:02:28 +02:00
control-flow.md Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00
credits.md Fix link to LICENSE in credits.md (#813) 2023-06-14 10:17:29 +01:00
enums.md Fix typo in enums.md (#958) 2023-07-12 09:43:02 -07:00
error-handling.md Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00
generics.md Mention generic data structures as well as algorithms (#908) 2023-07-06 08:39:28 +00:00
hello-world.md Update course length in hello-world.md (#1055) 2023-08-07 21:36:54 +02:00
index.md Add a link back to the canonical home (#1141) 2023-08-31 09:46:22 +02:00
memory-management.md Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00
methods.md Fix self shorthand syntax (#1028) 2023-07-25 08:54:41 +02:00
modules.md Day2: Afternoon - speaker note details and minor cosmetic changes. (#408) 2023-02-16 03:19:25 +00:00
other-resources.md Add Too Many Lists book to other resources (#410) 2023-02-14 21:25:06 +00:00
ownership.md Skip some untranslatable code blocks (#1258) 2023-09-26 17:04:46 +02:00
pattern-matching.md Fix typo: patten -> pattern (#430) 2023-02-17 18:34:35 +09:00
running-the-course.md Mention how long each course day is (#1155) 2023-09-01 14:13:37 +01:00
std.md Mention alloc too 2023-01-23 12:44:07 +00:00
structs.md Add missing newlines around <details> (#647) 2023-05-19 09:43:44 -04:00
SUMMARY.md Add a pattern-matching exercise (#1231) 2023-09-22 13:36:57 +02:00
testing.md Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00
thanks.md Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00
traits.md Restructure Day-3 morning (#503) 2023-03-30 13:25:34 +01:00
unsafe.md Update unsafe.md (#252) 2023-01-30 13:12:51 +00:00
welcome-day-1.md Reorder material on first two days (#913) 2023-08-25 17:42:31 +02:00
welcome-day-2.md Reorder material on first two days (#913) 2023-08-25 17:42:31 +02:00
welcome-day-3.md Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00
why-rust.md Fix typo (#173) 2023-01-17 11:42:31 +00:00