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

408 Commits

Author SHA1 Message Date
Abhik Banerjee
842bea8748
BN Translations: Updated translations upto 20% (#1925)
This PR aims to include the new translations and minor corrections in
the previous ones. This bumps the BN translations completion from 12% to
20%.

Ref: Issue #653

Co-authored-by: abhik-bits <127435906+abhik-bits@users.noreply.github.com>
2024-03-22 05:21:52 +00:00
Henri F
a46bb1389a
ko: CR2 Chromium translations (#1922)
Chromium translations from CR v.2

#262 #1463
2024-03-20 09:45:48 -07:00
Henri F
b4be1d0123
ko: Refreshes .po file (#1921)
This is a clean refresh, requires only a syntactic review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1921 | bat -l patch
```

#262
2024-03-15 04:59:08 -07:00
Henri F
8dbe80331b
ko: Merge CR v.2 Korean translation back into main (#1918)
This PR merges the Korean (ko) v.2 translation back to main.
This requires just a syntactical review, as the partial PRs into this
branch were reviewed already.

**The Chromium translation is still pending but I realized it's better
to get this out and start benefiting users in the other modules.**

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

gh pr diff 1918 | bat -l patch

#1463 #284

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Andriy Redko <drreta@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Geisler <mgeisler@google.com>
2024-03-12 07:34:07 -07:00
Abhik Banerjee
fa29bcf662
Refreshed Bengali Translations and Added New Translations to Bengali (#1876)
This PR aims to do the following:
1. Refresh the Bengali Translations
2. Add new translations in line with #653 to complete up to 10%.
3. Corrections to existing translations.

Edit: Recent commits bump up the % completed to 12.

---------

Co-authored-by: abhik-bits <127435906+abhik-bits@users.noreply.github.com>
Co-authored-by: Mir Wasi Ahmed <1697945+mirwasi@users.noreply.github.com>
2024-03-07 19:14:49 +00:00
Enes Aydın
a1dc31b9d7
tr: cr2 update changes (#1865)
updated for cr2 and added some translations

Part of #500
2024-03-06 13:50:53 +01:00
Henri F
437b73b24f
es: Merge CR v.2 Spanish translation back into main (#1879)
This PR merges the Spanish (es) v.2 translation back to main.
This requires just a syntactical review, as the partial PRs into this
branch were reviewed already.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

gh pr diff 1879 | bat -l patch

#1463 #284

---------

Co-authored-by: David Martínez Martí <deavid@google.com>
2024-03-05 14:38:58 -08:00
Andriy Redko
926a5c6fd0
uk: Day 3: afternoon (#1849)
uk: Day 3: afternoon

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-02-26 12:01:00 +00:00
Henri F
6a7fd259a3
pt-BR: Merge CR v.2 pt-BR translation back into main (#1846)
This PR merges the pt-BR v.2 translation back to main.
Also, it refreshes the .po file format removing the line numbers.
This requires just a syntactical review, as the partial PRs into this
branch were reviewed already.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

gh pr diff 1846 | bat -l patch

#317 #1463

---------

Co-authored-by: João Victor Mendes <mendesjoaovic@gmail.com>
Co-authored-by: azevedoalice <158203674+azevedoalice@users.noreply.github.com>
2024-02-23 09:56:53 +01:00
AdrienBaudemont
675573f0fa
fr: Updating the first few pages (up to 1.1). (#1778) 2024-02-20 11:42:12 +01:00
Andriy Redko
18ec2018d1
uk: Day 3: morning (#1826)
Day 3: morning

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-02-19 11:29:54 +00:00
Martin Geisler
a95201f027
fa: refresh translation for January 2024 (#1751)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1751 | bat -l patch
```
2024-02-16 10:37:53 -08:00
Martin Geisler
ed79a2044e
da: refresh translation for January 2024 (#1742)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1742 | bat -l patch
```
2024-02-16 10:37:09 -08:00
Diego Romero
8bbcb3e4b9
Translation correction on Update es.po (#1780)
I added a tranlation correction on the line 1287, I change "tres"
instead "cuatro", because "cuatro" is the meaningful of four in Spanish.

---------

Co-authored-by: Henri F <henrif75@users.noreply.github.com>
2024-02-16 10:29:03 -08:00
mobyw
b5b06b5aa9
zh-CN: index & preparation translation (#1800)
The po file has been refreshed. Translation range: L1173-L2241.

https://github.com/google/comprehensive-rust/issues/324

---------

Co-authored-by: Yihao Wang <42559837+AgainstEntropy@users.noreply.github.com>
2024-02-16 09:40:05 -08:00
Andriy Redko
e576b7f548
uk: Day 2: afternoon (#1802)
Day 2: afternoon (+ miscellaneous updates of previous sections)

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-02-12 11:15:04 +00:00
Michael Liendo
4d0f23e51a
feat: add and fix translation to installation caption (#1798) 2024-02-09 22:20:43 +00:00
mobyw
6fcb591585
zh-CN: SUMMARY translation (#1779)
https://github.com/google/comprehensive-rust/issues/324

---------

Co-authored-by: Yihao Wang <42559837+AgainstEntropy@users.noreply.github.com>
Co-authored-by: Henri F. <henrif75@users.noreply.github.com>
2024-02-07 18:49:05 -08:00
Michael Liendo
e74970acbc
feat: add some spanish translations and fix translations (#1790) 2024-02-07 08:31:10 +00:00
Andriy Redko
a673efbc14
uk: Day 2: morning (#1776)
Day 2: morning

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-02-02 10:39:07 +00:00
Martin Geisler
96ed0d9b23
de: refresh translation for January 2024 (#1744)
This is a clean refresh, requires only a syntaxtical review.
2024-01-29 10:53:03 +01:00
Martin Geisler
e82516f874
bn: refresh translation for January 2024 (#1743)
This is a clean refresh, requires only a syntactical review.
2024-01-29 10:52:47 +01:00
Henri F
72cdaaa29f
zh-CN: New CR2 translations with line numbers removed (#1764)
Publishes the new translations for CR2 (originally from zh-CN-cr2) #1463
which were previously reviewed.
It also removes line numbers (#1753)
#324

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1764 | bat -l patch
```
2024-01-26 18:45:20 -08:00
Henri F
0e2d1109b4
es: refresh translation for January 2024 (#1759)
From @mgeisler PRs (e.g. #1752, #1753)

This is a clean refresh, requires only a syntactic review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1759 | bat -l patch
```
2024-01-25 12:48:46 -08:00
Martin Geisler
88f089f759
el: refresh translation for January 2024 (#1745)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1745 | bat -l patch
```
2024-01-25 09:52:58 +01:00
Martin Geisler
b45d4d1a20
id: refresh translation for January 2024 (#1737)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1737 | bat -l patch
```
2024-01-25 09:52:53 +01:00
Martin Geisler
6f8ad75f96
fr: refresh translation for January 2024 (#1741)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1741 | bat -l patch
```
2024-01-25 09:52:35 +01:00
Martin Geisler
a63ab24b95
ro: refresh translation for January 2024 (#1750)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1750 | bat -l patch
```
2024-01-25 09:51:36 +01:00
Martin Geisler
00a6f76647
ja: refresh translation for January 2024 (#1752)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1752 | bat -l patch
```
2024-01-25 08:52:51 +09:00
Martin Geisler
fd1313d0fe
tr: refresh translation for January 2024 (#1740)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1740 | bat -l patch
```
2024-01-24 08:17:09 -08:00
Martin Geisler
1735ae285e
it: Fix monospace for block comments (#1754)
This should fix the formatting on
https://google.github.io/comprehensive-rust/it/control-flow-basics/conditionals.html.
2024-01-24 14:36:05 +01:00
Martin Geisler
7d2952acb8
ru: refresh translation for January 2024 (#1739)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1739 | bat -l patch
```
2024-01-24 13:28:41 +00:00
Martin Geisler
6deafe050f
pl: refresh translation for January 2024 (#1748)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1748 | bat -l patch
```
2024-01-24 13:28:06 +00:00
Martin Geisler
767f1400e8
uk: refresh translation for January 2024 (#1749)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1749 | bat -l patch
```
2024-01-24 13:27:15 +00:00
Martin Geisler
dd48150ce2
it: refresh translation for January 2024 (#1738)
This is a clean refresh, requires only a syntactical review.
2024-01-24 13:10:45 +01:00
Martin Geisler
08af38a63e
es: refresh translation for January 2024 (#1746)
This is a clean refresh, requires only a syntaxtical review.
2024-01-24 13:01:05 +01:00
Andriy Redko
ca93a26758
uk: Day 1: afternoon (#1735)
uk: Day 1: afternoon
2024-01-23 10:46:45 +00:00
Kanta Yamaoka (山岡幹太)
9b8e4b3586
ja: Translate Chapter 60 (Shared State) (#1690)
Hi, ja translation team (#652 ). Here's an MR for the chapter "Shared
States." Could you review the translations? any feedback would be
appreciated. Thank you 😄

cc: @keiichiw , @chikoski , @HidenoriKobayashi , @ternbusty 
(Retrieved translaftion draft #1636 Chapter 60 draft, after recent
`ja.po` file refresh #1676 )
2024-01-18 20:32:44 +09:00
Andriy Redko
594d8bef36
uk: Day 1: morning (#1692)
uk: Day 1: morning

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-01-15 11:02:30 +00:00
Kanta Yamaoka (山岡幹太)
dfa00b5b09
ja: refresh ja.po file (#1676)
Hi, ja-translators, #652 ! I've refreshed `ja.po` file as of today, Jan
8th 2024.
I used the following procedures. Could you review the diff? Thanks 😊 

```
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' \
  mdbook build -d po
```

```
msgmerge --update po/ja.po po/messages.pot
```
2024-01-10 21:15:02 +09:00
Andriy Redko
bdac84a966
uk: setting up and getting ready (Rust v2) (#1679)
Setting up and getting ready sections
2024-01-10 11:11:59 +00:00
Andriy Redko
981676d811
uk: Instructor notes (Rust v2) (#1652)
Instructor notes, running the course,  minor cleanups
2024-01-05 10:14:43 +00:00
Martin Geisler
e2c59ddbb5
Test translations using same source as for publish (#1492)
Before we would run `mdbook test` using the current Markdown sources.
This is subtly wrong: we publish the course using back-dated sources,
so we should therefore also run the tests using the same sources (this
ensures that the code snippets actually work).

After this commit, all translatable content lives in exactly two
directories:

- `src/`
- `third_party/`

We need to restore both directories when testing and when publishing.
This ensures consistency in the Markdown text and in the included
source code.

A new `.github/workflows/build.sh` script takes care of preparing the
two directories according to the date in the PO file (if any).

To ensure we can restore all of `third_party/` to an old commit, the
non-changing `third_party/mdbook/book.js` file has been moved to
`theme/book.js`. The file is generated by `mdbook init --theme`,
making it suitable for modification by the user (us). Symlinks have
been added to `third_party/mdbook/` to indicate that the files
ultimately came from upstream.
2024-01-04 17:04:44 +01:00
Kanta Yamaoka (山岡幹太)
b1f6851bec
ja: Translate Chapter 25 (Traits) (#1436)
Konnichiwa, JP translation folks #652. Here's a MR for **Traits**
chapter. I'm open to suggestions and feedback :) Could you take a look
at it? Thank you!
2024-01-04 16:38:34 +09:00
Martin Geisler
c9f66fd425
Format all Markdown files with dprint (#1157)
This is the result of running `dprint fmt` after removing `src/` from
the list of excluded directories.

This also reformats the Rust code: we might want to tweak this a bit in
the future since some of the changes removes the hand-formatting. Of
course, this formatting can be seen as a mis-feature, so maybe this is
good overall.

Thanks to mdbook-i18n-helpers 0.2, the POT file is nearly unchanged
after this, meaning that all existing translations remain valid! A few
messages were changed because of stray whitespace characters:

     msgid ""
     "Slices always borrow from another object. In this example, `a` has to remain "
    -"'alive' (in scope) for at least as long as our slice. "
    +"'alive' (in scope) for at least as long as our slice."
     msgstr ""

The formatting is enforced in CI and we will have to see how annoying
this is in practice for the many contributors. If it becomes annoying,
we should look into fixing dprint/check#11 so that `dprint` can annotate
the lines that need fixing directly, then I think we can consider more
strict formatting checks.

I added more customization to `rustfmt.toml`. This is to better emulate
the dense style used in the course:

- `max_width = 85` allows lines to take up the full width available in
our code blocks (when taking margins and the line numbers into account).
- `wrap_comments = true` ensures that we don't show very long comments
in the code examples. I edited some comments to shorten them and avoid
unnecessary line breaks — please trim other unnecessarily long comments
when you see them! Remember we're writing code for slides 😄
- `use_small_heuristics = "Max"` allows for things like struct literals
and if-statements to take up the full line width configured above.

The formatting settings apply to all our Rust code right now — I think
we could improve this with https://github.com/dprint/dprint/issues/711
which lets us add per-directory `dprint` configuration files. However,
the `inherit: true` setting is not yet implemented (as far as I can
tell), so a nested configuration file will have to copy most or all of
the top-level file.
2023-12-31 00:15:07 +01:00
Andriy Redko
f43e72e0ad
uk: Table of content translation (Rust v2) (#1613)
Table of content translation (Rust v2)

Signed-off-by: Andriy Redko <drreta@gmail.com>
2023-12-27 12:01:24 +00:00
ompugao
897c13ad84
ja: Fix a typo in ja.po (#1612)
Fix a typo in ja.po: "完結" -> "簡潔"
2023-12-25 20:05:07 +09:00
Martin Geisler
6c84b0aaf4
da: Translations for the other resources page (#1488) 2023-12-21 13:36:59 +00:00
Andriy Redko
75145070de
uk: Regenerate translation for Comprehensive Rust v2 (#1598)
uk: Regenerate translation for Comprehensive Rust v2

Signed-off-by: Andriy Redko <drreta@gmail.com>
2023-12-19 13:19:22 +00:00
Amin Sharifi
9a6a16e4ee
fa: Translate Part 6.x, 7, .., 15.x, 16.1 , .. , 16.5 (#1453)
Part of #671
- Translate Part  `6.x`, `7`, `..`, `15.x`, `16.1` , `..` , `16.5`
2023-12-17 14:14:53 +03:30