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

55 Commits

Author SHA1 Message Date
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
Martin Geisler
b83dd9a1f9
zh-CN: translate ownership (#868)
Part of #324.
2023-06-28 09:11:39 +00:00
Martin Geisler
fe40ef54e5
zh-CN: translate cargo (#870)
* zh-CN: translate cargo

Part of #324.

* Apply suggestions from code review

Co-authored-by: Abner Chou <zhcjtht@hotmail.com>

---------

Co-authored-by: Abner Chou <zhcjtht@hotmail.com>
2023-06-28 09:01:28 +00:00
Martin Geisler
a2ff653d84
zh-CN: translate credits (#867)
Part of #324.
2023-06-28 09:17:53 +02:00
Martin Geisler
86a4bb4f89
zh-CN: translate enums (#869)
Part of #324.
2023-06-28 09:17:36 +02:00
Martin Geisler
3e26c0feed
zh-CN: translate control-flow (#866)
Part of #324.
2023-06-28 09:15:18 +02:00
Zhang Rui
f7d969787b
zh-CN: translate src/basic-syntax/variables.md, src/basic-syntax/type-inference.md (#796) (#841)
* zh-CN: translate src/basic-syntax/variables.md, src/basic-syntax/type-inference.md and some words in SUMMARY.md (#796)

* zh-CN: translate src/basic-syntax/variables.md, src/basic-syntax/type-inference.md and some words in SUMMARY.md

* Use "类型推导" for "Type Inference"

* Update translation in src/basic-syntax/type-inference.md

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

* Update translation in src/basic-syntax/variables.md

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

* Update translation in src/basic-syntax/type-inference.md

* Add newlines inside translation at src/basic-syntax/type-inference.md:28

* Revert "Update translation in src/basic-syntax/type-inference.md"

This reverts commit 5119474c1c.

* zh-CN: use `#, fuzzy` instead of FIXME comment in basic-syntax/type-inference.md

---------

Co-authored-by: Zhang Rui <me@zhrichard.me>
Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>
2023-06-27 12:55:35 -04:00
wnghl
933abb6596
zh-CN: translate src/pattern-matching/destructuring-arrays.md (#834) 2023-06-27 17:49:34 +08:00
HangDu
d5e460fddd
zh-CN: Translation for src/exercises/day-2/afternoon.md (#875)
Co-authored-by: Hang Du <hhangdu@google.com>
2023-06-25 09:58:13 +08:00
Anlun Xu
78a7f19e34
zh-CN: Add translation for pattern-matching.md (#821)
* [zh-CN] Add translation for pattern-matching.md

* Update po/zh-CN.po

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

---------

Co-authored-by: wnghl <wnghilin@gmail.com>
2023-06-20 08:54:11 +08:00
Doris-Ge
935456fccb
zh-CN: Translation for src/basic-syntax/scopes-shadowing.md (#793)
* zh-CN: Translation for src/basic-syntax/scopes-shadowing.md

* Change the translation for shadowing from 遮蔽 to 隐藏

* Address superwhd's comments
2023-06-15 09:28:39 +08:00
HangDu
9127253adf
zh-CN: translate src/welcome-day-2.md (#817)
Co-authored-by: Hang Du <hhangdu@google.com>
2023-06-14 17:34:07 +08:00
Ke Xu
bc031361ae
zh-CN: translate src/welcome-day-1.md (#805)
* zh-CN: translate src/welcome-day-1.md

* Update po/zh-CN.po

Co-authored-by: whd <7058128+superwhd@users.noreply.github.com>
2023-06-14 11:09:31 +08:00
Martin Geisler
02dea6bd28
zh-CN: Translate Concurrency morning (#785)
* zh-CN: translate the Concurrency morning

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

Co-authored-by: Anlun Xu <anlunx@google.com>
Co-authored-by: Siwei Xu <xusiwei1236@gmail.com>
Co-authored-by: wnghl <wnghilin@gmail.com>
2023-06-13 20:06:59 -07:00
Yulin Shen
c878ecd7a8
zh-CN: Translation for src/exercises/day-2/morning.md (#806) 2023-06-14 08:57:15 +08:00
Yulin Shen
c948186fc6
zh-CN: Translate for src/exercises/day-2/health-statistics.md (#807) 2023-06-14 08:56:21 +08:00
jasminewu229
6880671ba4
zh-CN: Translate src/android.md, src/android/build-rules.md, src/android/setup.md (#728)
* Update zh-Hans.po 

src/android.md, src/android/build-rules.md, src/android/setup.md

---------

Co-authored-by: suetfei <89482184+suetfei@users.noreply.github.com>
2023-06-13 18:14:36 +00:00
wnghl
d1bccb7753
zh-CN: translate basic-syntax/methods.md and some words in SUMMARY.md (#753)
* zh-CN: translate basic-syntax/methods.md and some words in SUMMARY.md

* Use "构造函数" for "constructor"
2023-06-06 09:43:47 -04:00