1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-13 21:55:20 +02:00
Commit Graph

72 Commits

Author SHA1 Message Date
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
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
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
Qinglin
c8470ea6ba
zh-CN: Fix wrong anchors for zh-CN pages (#1456) 2023-11-11 16:25:06 +01:00
JChaooo
f78ecd317b
Update zh-CN.po (修正25.5 impl Trait中形参实参使用错误) (#1448)
25.5 impl Trait中,
“与特征边界类似,impl Trait 语法可以在函数实参 和返回值中使用”
更正为
“与特征边界类似,impl Trait 语法可以在函数形参 和返回值中使用”
2023-11-06 23:46:05 -05:00
King
99e60e35bf
zh-CN: Fix miss htts for https (#1443)
htts => https
2023-11-03 10:34:19 +00:00
blkcor
9f56149181
zh-CN: fix typo (#1437)
There is a typo in `while let` loops chapter
2023-10-29 22:06:08 +00:00
Qinglin
1cf0a86676
zh-CN: translate android/interoperability/with-c.md (#1399)
Part of #324
2023-10-24 22:11:45 -07:00
Qinglin
33867c5752
zh-CN: translate android/interoperability/with-c/bindgen.md (#1400)
Part of #324
2023-10-24 22:11:35 -07:00
Qinglin
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
Rean Fei
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
Qinglin
b604828e2a
zh-CN: translate android/interoperability/cpp.md (#1406)
Part of #324
2023-10-24 22:07:13 -07:00
Qinglin
8ec6ff3298
zh-CN: translate exercises/android/morning.md (#1407)
Part of #324
2023-10-24 22:05:53 -07:00
Qinglin
fd3c8f2f81
zh-CN: translate android/interoperability/java.md (#1408)
Part of #324
2023-10-24 22:05:20 -07:00
liruifengv
e9c61b91c1
zh-CN: Update Index page (#1388) 2023-10-19 14:11:21 +02:00
迷渡
a06d9855ad
zh-CN: fix link (#1387) 2023-10-18 21:41:41 -05:00
Abner Chou
132c960868
zh-CN: Update zh-CN.po (#1378)
Make the day count format consistent.
2023-10-17 16:02:40 -04:00
Rean Fei
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
Martin Geisler
98f5f9a88f
Revert "Fix typo: missing n in unknown" (#1347)
Reverts google/comprehensive-rust#1344.

The edit to the Markdown file has been kept since we _do_ want to fix
the typo!
2023-10-11 11:47:04 +00:00
Noam Zaks
4eebe43f3b
Fix typo: missing n in unknown (#1344) 2023-10-11 11:30:19 +01:00
Henri F
fb3f58f7ef
zh-CN: Restores PO file structure format (#1337)
This will restore the regular structure format of the PO file (line
breaks and wrap) and does not change the content itself. Part of #324
2023-10-11 10:10:57 +08:00
Qinglin
72e2c94398
zh-CN: translate android/interoperability.md (#1225)
Part of #324
2023-10-09 15:31:50 +08:00
Henri F
5ce24aa2de
zh-CN: Solutions Translations (#1321)
Professional translations for missing exercise solutions entries #324.
This is a new attempt, after fixing the original .po file (#1312).

The diff is large mostly because of the normalization.

Co-authored-by: Zhang SIQI <zhangsiqi1988@gmail.com>
2023-10-09 14:29:28 +08:00
Henri F
6949e1b0b8
zh-CN: Day 3 Translations (#1320)
Professional translations for missing day 3 entries #324.
This is a new attempt, after fixing the original .po file (#1312).

The diff is large mostly because of the normalization.

Co-authored-by: Zhang SIQI <zhangsiqi1988@gmail.com>
2023-10-09 14:21:19 +08:00
Henri F
78dfe60bb3
zh-CN: Day 2 Translations (#1319)
Professional translations for missing day 2 entries #324
This is a new attempt, after fixing the original .po file
(https://github.com/google/comprehensive-rust/pull/1312).
The diff is large mostly because of the normalization (line breaks,
etc.)

Co-authored-by: Zhang SIQI <zhangsiqi1988@gmail.com>
2023-10-09 14:10:17 +08:00
Henri F
fdae99c3d2
zh-CN: Day 1 Translations (#1318)
Professional translations for missing day 1 entries #324
2023-10-09 13:58:57 +08:00
Henri F
fa1f19e391
zh-CN: Restores lost translations (#1312)
Addresses issue #1311

zh-CN.po stats:
```
msgfmt -o /dev/null --statistics po/zh-CN.po
1258 translated messages, 178 fuzzy translations, 1038 untranslated messages.
```
2023-10-06 08:02:48 +00:00
Henri Fontana
86cde61f60
zh_CN: .po refresh and remaining course intro translations (#1242)
Normalizes .po file and add professional translation to missing entries
before day 1.
#324
2023-09-29 11:38:31 -07:00
Martin Geisler
b3bcaacb70
Set POT-Creation-Date field in PO files (#1252)
This updates each PO file to the date when it was last touched:

    for po_file in po/*.po; do
        POT_DATE=$(git log -1 --date=short --format=%ad $po_file)
sed -i -e 's/"POT-Creation-Date:.*"/"POT-Creation-Date:
'$POT_DATE'\\n"/' $po_file
    done

The dates will be updated with `msgmerge` in the future via
https://github.com/google/mdbook-i18n-helpers/pull/87.

The dates here can be adjusted by hand if needed — the starting point
here only serves as a rough anchor to let us freeze the translations
from further updates. So if you know that you ran `msgmerge` most
recently on a given date, please update the file to that date in a later
PR.
2023-09-25 16:38:03 +02:00
Qinglin
4946146eaf
zh-CN: translate android/logging.md (#1186)
Part of #324.
2023-09-18 09:02:04 -07:00
Qinglin
3aa29c4c8e
zh-CN: translate android/aidl/client.md (#1088)
Part of #324
2023-09-06 14:20:04 +08: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
iGmainC
63ca76ac3c
zh-CN: Update Simplified Chinese Translation (#1134) 2023-08-29 08:21:04 +00: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
d5822d2f70
zh-CN: translate std (#962)
Part of #324.

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
Co-authored-by: Qinglin <prosixe@gmail.com>
2023-08-17 10:35:13 -07:00
Martin Geisler
bfccc5ce8b
zh-CN: translate traits (#961)
Part of #324.

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-08-17 10:34:01 -07:00
Qinglin
02f3c6e8eb
zh-CN: translate android/build-rules/library.md (#1077)
Part of #324
2023-08-17 10:14:35 +02:00
Qinglin
27a668b66d
zh-CN: translate android/build-rules/binary.md (#1072)
Part of #324
2023-08-17 10:14:11 +02:00
Martin Geisler
6dc3a1e013
zh-CN: translate error-handling (#968)
Part of #324.

---------

Co-authored-by: Henri Fontana <henrif75@users.noreply.github.com>
Co-authored-by: wnghl <wnghilin@gmail.com>
2023-08-17 09:26:57 +02:00
Qinglin
945f5ea892
zh-CN: translate android/aidl/server.md && android/aidl/deploy.md (#1086)
Part of #324

---------

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>
2023-08-17 00:27:57 +00:00
Qinglin
f38b8a1972
zh-CN: translate android/aidl/interface.md (#1078)
Part of #324
2023-08-14 22:21:26 +08:00
Martin Geisler
3ff9e22480
zh-CN: translate generics (#965)
* zh-CN: translate generics

Part of #324.

* Apply suggestions from code review

Co-authored-by: wnghl <wnghilin@gmail.com>

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-08-07 09:24:26 +02:00
Martin Geisler
1afd67b318
zh-CN: translate unsafe (#963)
* zh-CN: translate unsafe

Part of #324.

* Apply suggestions from code review

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>

---------

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>
2023-07-26 08:46:35 +00:00
Martin Geisler
c0e79596d4
zh-CN: translate structs (#967)
Merged, thank you!
2023-07-22 10:52:58 -07:00
wnghl
e33ed49d74
zh-CN: translation for src/basic-syntax/string-slices.md (#767) 2023-07-19 12:52:42 -04:00
Martin Geisler
a11d3afe8c
zh-CN: translate testing (#970)
Part of #324.
2023-07-19 09:29:42 +02:00
Martin Geisler
4f84a7e505
zh-CN: translate running-the-course (#861)
* zh-CN: translate running-the-course

Part of #324.

* Apply suggestions from code review

Co-authored-by: wnghl <wnghilin@gmail.com>

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-07-12 12:04:48 +02:00
Doris-Ge
365d7dc62a
zh-CN: translate basic-syntax/static-and-const.md (#877)
* zh-CN: translate basic-syntax/static-and-const.md

* Fix build error

* Update po/zh-CN.po to commit suggestions

Co-authored-by: Anlun Xu <anlunx@google.com>

---------

Co-authored-by: Anlun Xu <anlunx@google.com>
2023-07-11 10:30:05 -07:00
Martin Geisler
fe8c374d3b
zh-CN: translate memory-management (#862)
* zh-CN: translate memory-management

Part of #324.

* Apply suggestions from code review

Co-authored-by: wnghl <wnghilin@gmail.com>

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-07-03 17:46:48 +08:00