1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-14 21:35:00 +02:00
Commit Graph

1359 Commits

Author SHA1 Message Date
d7ed3c59e9 Add usernames for Persian translation reviewers (#1375)
Hello,
This list is still a Draft, will be ready in a day or two.

---------

Co-authored-by: Hamid R. K. Pisghadam <kaveh@riseup.net>
Co-authored-by: Henri F <henrif75@users.noreply.github.com>
2023-10-25 19:08:56 -07:00
2d68007f98 Update README.md (#1397)
Add instructions to install Rust.

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
2023-10-25 18:23:21 +00:00
2f0c9dc053 Add Spanish reviewer to CODEOWNERS (#1422) 2023-10-25 08:10:56 -07:00
17f61463f5 Update converting-error-types.md (#1428) 2023-10-25 11:02:34 -04:00
629a5c322c fa: Adding Persian translations for sidebar items (#1427)
Part of #671
**Summary of changes:** 
- Persian version of book messages synced to original book
- Translate sidebar menu
* I just translate and double check until `# src/SUMMARY.md:333` part*
2023-10-25 17:41:54 +03:30
7bb7a48b0b uk: adding cloud-translate translations to speed up Ukrainian translation (#1425)
Updated translated version of `uk.po` file using `cloud-translate`, for
further editing
2023-10-25 13:43:57 +01:00
0e8aeabe8a Refreshed existing IT translations, and added a few more (#1391)
Still a long way to go.

Also added a small QoL improvement to the translators instructions.

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
2023-10-25 10:30:58 +01:00
1cf0a86676 zh-CN: translate android/interoperability/with-c.md (#1399)
Part of #324
2023-10-24 22:11:45 -07:00
33867c5752 zh-CN: translate android/interoperability/with-c/bindgen.md (#1400)
Part of #324
2023-10-24 22:11:35 -07:00
dd16f8755c zh-CN: translate android/interoperability/with-c/rust.md (#1401)
Part of #324


**The translation of "mangling" refers to the Chinese translation on
Wikipedia (https://en.wikipedia.org/wiki/Name_mangling#Rust).**
2023-10-24 22:08:13 -07:00
42c210b240 zh-CN: Fix usage errors of some punctuations and translate some texts (#1402)
I formatted the translation file on WSL. Worried about being failed
again, so I just improved some translations.

Update: Things seems very nice and I will continue my translating work.
Translation contributors who use Windows OS must use WSL instead of
using `dprint fmt` command on Windows itself, until the resolution that
can make the experience on Windows equal to Linux emerged.

To learn more about that, see this issue: #1394 .

---------

Co-authored-by: Emma Li <liyu1204@gmail.com>
2023-10-24 22:07:41 -07:00
b604828e2a zh-CN: translate android/interoperability/cpp.md (#1406)
Part of #324
2023-10-24 22:07:13 -07:00
8ec6ff3298 zh-CN: translate exercises/android/morning.md (#1407)
Part of #324
2023-10-24 22:05:53 -07:00
fd3c8f2f81 zh-CN: translate android/interoperability/java.md (#1408)
Part of #324
2023-10-24 22:05:20 -07:00
e6e4d50eef Be more precise about printing in compound-types.md (#1421)
Fixes #1412.
2023-10-24 11:32:34 +02:00
77c55ef10e Update hashmap.md (#1420)
Remove extra space
2023-10-24 08:01:21 +02:00
3ba21370bb Simpler character counting (#1419)
`str.chars().map(|_| 1).sum()` is just `str.chars().count()`.
2023-10-23 20:36:26 +00:00
ecd2bc863e Updated about nc and telnet in task.md (#1382)
Updated about `nc` and `telnet` with their documentation link provided
as well
Closes issue #1349
2023-10-23 18:10:26 +00:00
ce27799096 Fixes drop-down link to the correct zh-TW translation (#1416) 2023-10-23 19:34:50 +02:00
88edcd02e7 Adds Chinese Traditional to the language drop-down (#1411)
Graduates the Chinese Traditional translation to the language drop-down
selector.
Part of Chinese (Traditional) translation #684.

File stats (Rust Fundamentals):

```
msggrep -v --location=src/{exercises/,}{android,bare-metal,concurrency,async}{.md,"/*","/*/*","/*/*/*"} po/zh-CN.po | msgfmt -o /dev/null --statistics -

1315 translated messages, 146 fuzzy translations, 149 untranslated messages.
```
2023-10-23 09:20:15 -07:00
cf798ae50e Fix malformed SUMMARY.md entries (#1410)
These extra `)` were ignored by the `mdbook` parser, but they began
showing up in my testing of
https://github.com/google/mdbook-i18n-helpers/pull/100.
2023-10-23 09:26:15 -04:00
266a3d5c9f fr: translation of the "course structure" page and minor edits. (#1398)
fr: translation of the "course structure" page and minor edits.
2023-10-23 09:13:31 -04:00
696f8e1e58 zh-TW: Day 1 Translations (#1322)
Professional translations for missing day 1 entries #684

---------

Co-authored-by: Victor Hsieh <victorhsieh@gmail.com>
2023-10-22 15:16:04 -07:00
9b5bff2133 zh-TW: Day 2 Translations (#1323)
Professional translations for missing day 2 entries #684


---------

Co-authored-by: Martin Geisler <martin@geisler.net>
Co-authored-by: Emma Li <liyu1204@gmail.com>
2023-10-22 15:05:29 -07:00
b155ffd40c Adds nodmp as a zh-CN translator (#1409) 2023-10-22 15:04:01 -07:00
e44efd97c5 Update CONTRIBUTING.md with MacOS installation instructions (#1395) 2023-10-22 14:59:03 -07:00
a2bb4dab11 Rename action to check msgid changes (#1365)
The focus of the action is to check and validate changes to the `msgid`
fields, not to totally prevent such changes.

This also makes the `paths` a little more precise: we only care about
changes to `po/*.po`.
2023-10-22 16:37:34 +02:00
0c128d9357 Update std.md (#1405)
Fix typo
2023-10-22 16:29:35 +02:00
1dfb82c085 Update structs.md (#1403)
Fix markdown
2023-10-22 16:24:04 +02:00
c3abb35837 Update tuple-structs.md (#1404)
Fix markdown
2023-10-22 16:13:39 +02:00
09b565f62b feat:add fa line of tans (#1396)
Co-authored-by: danny <danykhosravi@gmail.com>
Co-authored-by: Martin Geisler <martin@geisler.net>
2023-10-21 12:08:02 +03:30
1c7dfb5b49 zh-TW: Day 3 Translations (#1324)
Professional translations for missing day 3 entries #684
2023-10-20 09:52:44 -07:00
0f0d46bb93 Add dprint instructions to CONTRIBUTING.md (#1389) 2023-10-20 13:52:36 +02:00
9637e3c607 Delete some inactive reviewers from CODEOWNERS (#1386)
These users don't have write permission to the repository, therefore
they haven't done any review so far.
2023-10-19 09:19:12 -07:00
b535ddacab Adds entry for fa.po (Persian) to CODEOWNERS, and adds one reviewer. (#1385) 2023-10-19 09:10:35 -07:00
e9c61b91c1 zh-CN: Update Index page (#1388) 2023-10-19 14:11:21 +02:00
1357f7ac57 Add comments and license text to prevent-msgid.py (#1364) 2023-10-19 09:31:06 +00:00
a06d9855ad zh-CN: fix link (#1387) 2023-10-18 21:41:41 -05:00
dd4460af06 Bump rustix from 0.38.15 to 0.38.19 (#1384)
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.38.15
to 0.38.19.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="3a53dfe16c"><code>3a53dfe</code></a>
chore: Release rustix version 0.38.19</li>
<li><a
href="55cbe8839c"><code>55cbe88</code></a>
Fixes for <code>Dir</code> on macOS, FreeBSD, and WASI.</li>
<li><a
href="31fd98ca72"><code>31fd98c</code></a>
Merge pull request from GHSA-c827-hfw6-qwvm</li>
<li><a
href="4bb2f4bbcd"><code>4bb2f4b</code></a>
Add <code>mlockall</code> and <code>munlockall</code> (<a
href="https://redirect.github.com/bytecodealliance/rustix/issues/872">#872</a>)</li>
<li><a
href="d012bcf896"><code>d012bcf</code></a>
Fixes needed by io_uring. (<a
href="https://redirect.github.com/bytecodealliance/rustix/issues/873">#873</a>)</li>
<li><a
href="5e5c0460cc"><code>5e5c046</code></a>
Add a test for <code>get_socket_nosigpipe</code>. (<a
href="https://redirect.github.com/bytecodealliance/rustix/issues/874">#874</a>)</li>
<li><a
href="1a9d12963d"><code>1a9d129</code></a>
chore: Release rustix version 0.38.18</li>
<li><a
href="112c268cd7"><code>112c268</code></a>
io-uring API updates. (<a
href="https://redirect.github.com/bytecodealliance/rustix/issues/871">#871</a>)</li>
<li><a
href="0c227041a7"><code>0c22704</code></a>
Provide {get,set}_socket_nosigpipe on NetBSD and DragonFly BSD (<a
href="https://redirect.github.com/bytecodealliance/rustix/issues/870">#870</a>)</li>
<li><a
href="a00dbd0f53"><code>a00dbd0</code></a>
chore: Release rustix version 0.38.17</li>
<li>Additional commits viewable in <a
href="https://github.com/bytecodealliance/rustix/compare/v0.38.15...v0.38.19">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rustix&package-manager=cargo&previous-version=0.38.15&new-version=0.38.19)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/google/comprehensive-rust/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 16:49:15 -04:00
c4ce2ab8a9 Format Python files with YAPF (#1360) 2023-10-18 13:56:05 -04:00
0022898ada Update pattern-matching.md (#1374)
Typo
2023-10-18 08:40:13 +02:00
b8b274165c Update luhn.rs (#1376)
Fix semicolon

I'm only learning Rust but I think it makes more sense
2023-10-18 03:53:14 +00:00
e0546608d5 Update dprint link in TRANSLATIONS.md (#1377)
Fix the `dprint` official link in the TRANSLATIONS.md file.
2023-10-17 16:02:56 -04:00
132c960868 zh-CN: Update zh-CN.po (#1378)
Make the day count format consistent.
2023-10-17 16:02:40 -04:00
01696cee53 zh-CN: Translate some contents into Chinese (Simplified) (#1373)
Made some Chinese translations. Translations might contain errors and
unproper contents.

---------

Co-authored-by: hczh <hczh@google.com>
2023-10-17 18:38:35 +00:00
c01b5ca6ed Simplify solution to Luhn exercise (#1296)
Maybe we can use bool double and make the code easier to read and
comprehend
2023-10-17 13:35:34 +00:00
0e32756795 Update TRANSLATIONS.md with details on installation and dprint usage (#1372)
Related to #1359
2023-10-16 13:02:38 -07:00
b096dca04b ja: refresh po file (#1361)
Refresh the po file for Japanese translation. Part of google#652.

Steps taken:
1. MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' \
  mdbook build -d po
1. msgmerge --update po/ja.po po/messages.pot
2023-10-16 12:35:24 -07:00
d8fa84aeee fr: Complete the translation for the page "Running the Course". (#1211)
Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-10-16 13:54:35 +00:00
f94daaea73 Add “More to Explore” sections (#1369)
From a discussion in #1313.
2023-10-16 15:42:07 +02:00