1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-14 14:10:05 +02:00
Commit Graph

1351 Commits

Author SHA1 Message Date
Henri Fontana
b8a01241ad
es: Translations - Day 3 Morning (#1174)
Part of #284
2023-09-09 12:58:33 -07:00
Henri Fontana
b4fa57f426
es: Translations - Bare Metal (#1177)
Part of Spanish translation #284
2023-09-09 11:22:55 -07:00
Henri Fontana
dfbc4add25
es: Translations - Android (#1176)
Part of #284
2023-09-09 11:09:48 -07:00
Henri Fontana
5e18033708
es: Translations - Day 2 Afternoon (#1173)
Part of #284
2023-09-09 10:58:16 -07:00
Makarevich
91c4df3644
ru: day 2, afternoon; more control loops translation (#1095) 2023-09-08 17:18:17 +00:00
Henri Fontana
43dc4018f1
es: Translations - introduction (ch.1 and 2) (#1144)
Part of #282 and #284
2023-09-08 09:00:06 -07:00
Henri Fontana
c76f96c435
es: Translations - Day 2 Morning (#1170)
Part of #284
2023-09-08 08:45:35 -07:00
AdrienBaudemont
5205fd232e
fr: Update the fr.po file with new English messages (msgmerge). (#1180) 2023-09-08 14:36:13 +02:00
Martin Geisler
67a98bd895
fa: Publish the in-progress Persian translation (#1183)
This serves as a small demo of right-to-left script in mdbook.
2023-09-08 10:48:05 +02:00
Henri Fontana
1b437ead9b
es: Translations - Day 1 Afternoon (#1169)
Part of #284
2023-09-07 09:40:09 +01:00
Henri Fontana
1c0eaa86cb
es : Translations - Final words and solutions (#1181)
Part of #284
2023-09-07 09:39:43 +01:00
Varun Somani
3813d0b6f1
Add test case for invalid non digit cc number (#1182)
Adding this test case to handle case where we have non-numeric cc number
along with a valid cc number. This is discovered when we filter with
is_numeric() instead of !is_whitespace() all test case does pass. To
handle such scenario adding this test case.
2023-09-07 08:30:18 +00:00
Martin Geisler
09d1265cbb
Add support for right-to-left languages (#1165)
This updates our `mdbook` version to the latest version in Git. I copied
the `index.hbs` file from that version and back-ported our changes into
it. I checked English and Danish locally and they both look fine.

The new version has support for right-to-left languages:
https://github.com/rust-lang/mdBook/pull/1641.

We have an in-progress Persian translation. Download the `fa.zip`
artifact after building the PR to check how it looks. I checked Persian
locally and it looks mirrored like I expect (but we will need someone
who can read Persian to actually verify this).

Fixes #1164.
2023-09-07 09:50:44 +02:00
Henri Fontana
8bacabbafa
es: Translations - Day 1 morning (#1167)
Part of #284
2023-09-06 14:10:33 -07:00
Qinglin
3aa29c4c8e
zh-CN: translate android/aidl/client.md (#1088)
Part of #324
2023-09-06 14:20:04 +08:00
Antonio Linhart
11087c8411
Add typos to CI (#1158)
Hi all!

This CL fixes #1093:
* Avoids including current false-positives in the checking of typos
* Excludes localization-related files, as `typos` works with
  English words
* Fixes existing typos caught in the repo

Tested this in CI with a typo and it showed up in the list of actions!

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
2023-09-05 20:21:59 +00:00
Md. Rasel Mandol
4c08d2c399
bn: Refresh most strings (#1162)
After PR #1124 , many source strings have been changed. Fixed most of
them.
2023-09-05 18:50:42 +01:00
AdrienBaudemont
661c9bd729
fr: Updates to the "Why Rust?" page, including fixing issue 1074. Fixes google/comprehensive-rust#1074 (#1159)
Updates to the "Why Rust?" page, including fixing issue 1074.
Fixes google/comprehensive-rust#1074
2023-09-05 13:12:21 +02:00
c6c7
5e72cf5687
Bump proc-macro2 from 1.0.50 to 1.0.66 in /src/bare-metal/microcontro… (#1160)
…llers/examples

The proc-macro2 dependency at 1.0.50 results in a build error mentioning
an unknown feature `proc_macro_span_shrink` that no longer exists in
nightly. Per https://github.com/rust-lang/rust/issues/113152, updating
proc-macro2 to the latest version fixes the error.

The build error I saw before updating the proc-macro2 dependency was the
following:

```
> cargo build --bin minimal
   Compiling proc-macro2 v1.0.50
   Compiling bare-metal v0.2.5
   Compiling typenum v1.16.0
   Compiling nrf52833-hal v0.14.1
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/chcl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.50/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

   Compiling cortex-m v0.7.7
For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
```
2023-09-04 11:50:12 +01:00
Martin Geisler
55f6a8428e
Remove memory management comparison (#1049)
This is a follow-up to #998 and the discussion in #1049. The
comparison page is now gone: like @randomPoison said, it feels
redundant and I also mostly skip over it when teaching the class.

I also took out some duplication in the Rust memory management page. I
would be up for simplifying the whole chapter down to one or two
slides as @djmitche suggests: that would leave us with more time for
covering ownership.
2023-09-01 11:32:48 -04:00
Martin Geisler
c6af2a0d37
Mention how long each course day is (#1155)
Most classes run with 2.5 hours for the morning session and 2.5 hours
for the afternoon session.

I have tried running the course as 2 × 2.5 hours and 2 × 3 hours. My
experience was that people ended up getting really worn out after
spending 6 hours in total on Rust (7 hours including a lunch break).
However, the experience varies from group to group, so this is just a
recommendation.
2023-09-01 14:13:37 +01:00
Martin Geisler
91e87e2da7
Explain that Rust Fundamentals == first 3 days (#1156) 2023-09-01 13:43:20 +01:00
Henri Fontana
4dfb1ba526
es: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1143)
I'm preparing several PRs to submit the Spanish translation, but I need
first to normalize the existing es.po file, otherwise the PRs will be
humongous.
Part of #330, #282, #284.
2023-09-01 11:23:24 +02:00
Martin Geisler
45133b26a6
Add a link back to the canonical home (#1141)
This is a follow-up to #1140 to further ensure that people can find the
canonical home for the course.
2023-08-31 09:46:22 +02:00
Kanta Yamaoka (山岡幹太)
55583b469b
ja: Translate chapter 49.2 (bounded channels) (#1139)
Hi, JA translators! (#652) I've added translations for "bounded
channels". This is a tiny MR, but I'm open to suggestions. Have a good
day!
2023-08-31 12:02:13 +09:00
Qinglin
430d76ba35
zh-CN: translate android/aidl/changing.md (#1087)
Part of #324
2023-08-30 22:34:23 +02:00
Qinglin
8edb95ef93
zh-CN: translate android/aidl/implementation.md (#1085)
Part of #324
2023-08-30 22:34:07 +02:00
Martin Geisler
8b1bed7db9
Insert <link rel="canonical"> elements (#1140)
This prevents duplicate search results in case copies of the material is
being left visible on the web. See the Search Central
documentation[1] for details.

The implementation here should mostly go away when
https://github.com/google/mdbook-i18n-helpers/issues/70 is implemented.

[1]: https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls
2023-08-30 22:28:34 +02:00
Martin Geisler
6827f62151
Remove hints about preserving reference links (#1138)
With mdbook-i18n-helpers 0.2, reference links are automatically turned
into inline links in the PO files. This means that translators no longer
have to deal with link references in one message and link definitions in
another.
2023-08-30 09:21:43 +02:00
iGmainC
63ca76ac3c
zh-CN: Update Simplified Chinese Translation (#1134) 2023-08-29 08:21:04 +00:00
Frances Wingerter
890c46a90c
Fix some exercise location mixups in Day 2 (#1136)
Should supersede #1135, I think.
2023-08-28 18:53:22 +00:00
Jiyong Park
0e4df4b505
ko: Update translation (#1116) 2023-08-28 16:53:27 +02:00
Henri Fontana
e921cb0506
pt-BR: Refresh .po file and clean up new fuzzy entries (#1125)
Part of #330, #317 , #893
2023-08-28 08:43:02 -03:00
Henri Fontana
e6c1974000
pl: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1129)
Part of #330, #282, #399
2023-08-26 16:34:23 +02:00
Henri Fontana
eb9c6e7b03
ja: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1128)
Part of #330, #282, #652
2023-08-26 16:33:50 +02:00
Henri Fontana
70fd872d40
ru: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1130)
Part of #330, #282, #326
2023-08-26 16:33:05 +02:00
Henri Fontana
f492aa6368
uk: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1132)
Part of #330, #282, #836
2023-08-26 16:30:50 +02:00
Henri Fontana
a40488965f
tr: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1131)
Part of #330, #282, #500
2023-08-26 16:30:35 +02:00
Henri Fontana
c49080f148
el: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1126)
Part of #330, #282, #283
2023-08-26 16:29:43 +02:00
Henri Fontana
00b8b969e0
id: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1127)
Part of #330, #282, #439
2023-08-26 16:29:24 +02:00
Henri Fontana
2d5a121c0e
bn: Refresh .po file after mdbook-i18n-helpers 0.2.2 (#1124)
Part of #330
2023-08-26 16:26:36 +02:00
Martin Geisler
62dcb323aa
Update deep-dive titles in course structure (#1121)
I'm trying to align on these names for the additional material:

- Rust in Android
- Bare-Metal Rust
- Concurrency in Rust

It's not perfectly reflected everywhere, but this brings us a bit closer
to that.
2023-08-25 18:38:21 +02:00
rastringer
184b406900
pt-BR: Refresing translation via msgmerge #317 (#1120)
Refresing Brazilian Portuguese translation via msgmerge with new version
of mdbook-i18n-helpers and agreed Poedit settings. Issue #317, keeping
pace with #1104.
2023-08-25 09:28:44 -07:00
Frances Wingerter
d3a90373b0
Reorder material on first two days (#913)
- Morning of Day 1 still introduces the language and its high-level
goals/value proposition, and starts with the built-in data types Rust
provides, and how you define a function. 
- Afternoon of Day 1 gets a front loading of the basic control flow
structures in Rust but not the more exotic ones.
- The exercises for day 1 afternoon will be the Luhn algorithm (where we
can match on digits and enums such as `Option`.
- Morning of day 2 still has discussion of memory management.

Fixes #510.

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-08-25 17:42:31 +02:00
Martin Geisler
e55361233e
da: refresh translation (#1118)
Clean update of the file, no new translations.

Part of #286.
2023-08-24 15:06:27 -07:00
Javier Sorribes-Camargo
e5efc78736
Add @javisorribes as a reviewer for ES (#1090)
Co-authored-by: Dustin J. Mitchell <dustin@v.igoro.us>
Co-authored-by: Henri Fontana <henrif75@users.noreply.github.com>
2023-08-24 14:24:49 -07:00
Martin Geisler
4c73c23a5b
Fix extra indentation in code block (#1119) 2023-08-24 12:00:58 -04:00
Martin Geisler
14a2044aa0
zh-CN: normalize with mdbook-i18n-helpers 0.2.2 (#1097)
Before, po/zh-CN.po had these statistics:

693 translated messages, 90 fuzzy translations, 998 untranslated
messages.

Afterwards, the statistics for po/zh-CN.po is:

1079 translated messages, 121 fuzzy translations, 1267 untranslated
messages.

The number of translated messages changed from 39% to 44%.

With this change, it becomes important to use the latest version of
mdbook-i18n-helpers when viewing the translation locally. To update to
the latest version, run

    cargo install mdbook-i18n-helpers

You will now be able to serve the translation locally.

Part of #330.
2023-08-23 11:19:51 -07:00
Martin Geisler
98f4296975
tr: normalize with mdbook-i18n-helpers 0.2.2 (#1098)
Before, po/tr.po had these statistics:

164 translated messages, 6 fuzzy translations, 1611 untranslated
messages.

Afterwards, the statistics for po/tr.po is:

165 translated messages, 6 fuzzy translations, 2296 untranslated
messages.

The number of translated messages changed from 9% to 7%.

With this change, it becomes important to use the latest version of
mdbook-i18n-helpers when viewing the translation locally. To update to
the latest version, run

    cargo install mdbook-i18n-helpers

You will now be able to serve the translation locally.

Part of #330.
2023-08-23 11:19:22 -07:00
Martin Geisler
6ed836d9b7
uk: normalize with mdbook-i18n-helpers 0.2.2 (#1099)
Before, po/uk.po had these statistics:

63 translated messages, 15 fuzzy translations, 1703 untranslated
messages.

Afterwards, the statistics for po/uk.po is:

104 translated messages, 19 fuzzy translations, 2344 untranslated
messages.

The number of translated messages stayed at 4%.

With this change, it becomes important to use the latest version of
mdbook-i18n-helpers when viewing the translation locally. To update to
the latest version, run

    cargo install mdbook-i18n-helpers

You will now be able to serve the translation locally.

Part of #330.
2023-08-23 11:18:33 -07:00