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

40 Commits

Author SHA1 Message Date
Henri F
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
Henri F
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
Henri F
1c7dfb5b49
zh-TW: Day 3 Translations (#1324)
Professional translations for missing day 3 entries #684
2023-10-20 09:52:44 -07: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
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
Martin Geisler
44ef9f0113
zh-TW: normalize with mdbook-i18n-helpers 0.2.2 (#1100)
Before, po/zh-TW.po had these statistics:

492 translated messages, 55 fuzzy translations, 1234 untranslated
messages.

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

776 translated messages, 67 fuzzy translations, 1624 untranslated
messages.

The number of translated messages changed from 28% to 31%.

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 06:38:23 -07:00
hyperbola
8190fd2b5e
zh-TW: Translate async.md and async/async-await.md (#765)
Part of #684.

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
Co-authored-by: Addison Luh <hueich@users.noreply.github.com>
2023-08-17 10:16:39 +02:00
En-Shuo Hsu
52284c7d13
zh-TW: Translate android/build-rules.md (#824)
* zh-TW: Translate android/build-rules.md

* Apply suggestions from code review

Co-authored-by: Victor Hsieh <victorhsieh@gmail.com>

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
Co-authored-by: Victor Hsieh <victorhsieh@gmail.com>
2023-08-14 18:02:48 +00:00
cafeholyc
77008687f2
zh-TW: Translation for src/android/aidl/changing.md (#803)
* add translation for android/aidl/changing.md

Co-authored-by: Addison Luh <hueich@users.noreply.github.com>

* addressing comments

---------

Co-authored-by: Addison Luh <hueich@users.noreply.github.com>
2023-08-14 06:16:05 +00:00
Martin Geisler
2a1ba6eeff
zh-TW: replace "類型" with "型別" (#1069)
Fixes #1021.
2023-08-11 12:29:38 -07:00
Jonathan Hao
5c42b6c816
zh-TW: Align memory allocation translations (#1022)
According to https://rust-lang.tw/book-tw/ch04-01-what-is-ownership.html

Allocation => 配置
Deallocation => 釋放記憶體
Dropped => 被丟棄
2023-08-03 18:10:08 +09:00
Martin Geisler
14bfd7b723
zh-TW: translate std (#964)
* zh-TW: translate std

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@google.com>

* Apply suggestions from code review

* zh-TW: fix PO file syntax

We lost a few double-quotes in the editing process.

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-27 11:47:12 +02:00
Martin Geisler
e364e020cb
zh-TW: fix line breaks in lists (#1036)
* zh-TW: fix line breaks in lists

I looked through the recent PRs for the Taiwanese translations and
found that some lists items had extra line breaks (without the
necessary indentation). This PR should fix the rendering.

Part of #684.

* Apply suggestions from code review

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-27 11:37:54 +02:00
Jonathan Hao
3c6a8201bd
zh-TW: Fix indentation. (#1035) 2023-07-26 12:15:18 -04:00
Martin Geisler
707933c617
zh-TW: translate error-handling (#973)
* zh-TW: translate error-handling

Part of #684.

* Update zh-TW.po

Fix msgfmt lint error.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@google.com>

* zh-TW: remove untranslated `msgstr` entries

* zh-TW: copy code samples as-is

The code can (but doesn’t have to be) translated.

---------

Co-authored-by: Henri Fontana <henrif75@users.noreply.github.com>
Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-24 15:58:09 +00:00
Martin Geisler
34acff339d
zh-TW: translate enums (#865)
* zh-TW: translate enums

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@google.com>

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-24 15:56:59 +00:00
Martin Geisler
0a09079198
zh-TW: translate memory-management (#872)
* zh-TW: translate memory-management

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@google.com>

* Update po/zh-TW.po

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-24 15:54:11 +00:00
Martin Geisler
b8d2434719
zh-TW: translate traits (#971)
* zh-TW: translate traits

Part of #684.

* Update zh-TW.po

Fix msgfmt lint error.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@google.com>

* zh-TW: replace “特徵邊界” with “特徵界限”

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@google.com>

---------

Co-authored-by: Henri Fontana <henrif75@users.noreply.github.com>
Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-24 14:34:49 +00:00
Martin Geisler
7bd1bcc99f
zh-TW: translate structs (#969)
* zh-TW: translate structs

Part of #684.

* zh-TW: Apply suggestion to speaker notes about newtypes.

* zh-TW: Apply suggestion to speaker notes about newtypes.

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-19 21:46:41 -07:00
Martin Geisler
2cdbd933f6
zh-TW: translate unsafe (#966)
* zh-TW: translate unsafe

Part of #684.

* zh-TW: Update "read and write"

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-19 21:45:41 -07:00
Martin Geisler
c83d164233
zh-TW: translate testing (#972)
* zh-TW: translate testing

Part of #684.

* zh-TW: Apply suggestion on proptest description

---------

Co-authored-by: Jonathan Hao <phao@google.com>
2023-07-19 15:58:39 +00:00
Martin Geisler
b573caad05
zh-TW: translate control-flow (#863)
Part of #684.
2023-07-06 13:08:19 +00:00
Martin Geisler
9a23ff820b
zh-TW: translate running-the-course (#864)
* zh-TW: translate running-the-course

Part of #684.

* Apply suggestions from code review

Co-authored-by: Ming-Ying Chung <mych@chromium.org>

---------

Co-authored-by: Ming-Ying Chung <mych@chromium.org>
2023-07-05 08:47:08 +00:00
Martin Geisler
e345044f6d
zh-TW: translate credits (#873)
Part of #684.
2023-07-05 10:42:45 +02:00
Martin Geisler
03b1c0d06b
zh-TW: translate cargo (#871)
* zh-TW: translate cargo

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@chromium.org>

* Use 建構 for build instead of 建立

---------

Co-authored-by: Jonathan Hao <phao@chromium.org>
Co-authored-by: Jonathan Hao <phao@google.com>
2023-06-28 09:56:13 +02:00
Martin Geisler
b14aaf768d
zh-TW: translate ownership (#860)
* zh-TW: translate ownership

Part of #684.

* Apply suggestions from code review

Co-authored-by: Jonathan Hao <phao@chromium.org>

* Replace "擁有權" with "所有權"

* Remove "__"

---------

Co-authored-by: Jonathan Hao <phao@chromium.org>
Co-authored-by: Jonathan Hao <phao@google.com>
2023-06-28 09:20:34 +02:00
Jonathan Hao
1868ef3670
zh-TW: Translate unit-tests.md. (#840)
[zh-TW] Translate unit-tests.md.
2023-06-21 16:46:56 +09:00
Hank Chen
19780b832c
zh-TW: translation for src/control-flow/if-expressions.md (#801)
* zh-TW: translation for src/control-flow/if-expressions.md

* zh-TW: add translation for src/SUMMARY.md:98
2023-06-13 12:47:08 +00:00
Hank Chen
aaf99534e0
zh-TW: fix style in src/testing.md (#795) 2023-06-12 10:30:46 +01:00
Hank Chen
f965668f63
zh-TW: translation for src/control-flow/break-continue.md (#799)
* zh-TW: translation for src/control-flow/break-continue.md

* zh-TW: update translation for src/control-flow/break-continue.md
2023-06-12 16:48:35 +08:00
Martin Geisler
5a62f650c1
zh-TW: Translate Concurrency morning (#786)
* zh-TW: Translate Concurrency morning

* Apply suggestions from code review

Thanks @hueich!

Co-authored-by: Addison Luh <hueich@users.noreply.github.com>

---------

Co-authored-by: Addison Luh <hueich@users.noreply.github.com>
2023-06-11 13:34:57 +00:00
Jonathan Hao
ede2971a55
zh-TW: Translate testing.md and update CODEOWNERS (#774)
Translate testing.md to zh-TW and update CODEOWNERS
2023-06-09 09:07:12 +00:00
kuanhungchen
ebf1bbb5fe
zh-TW: translation for src/control-flow/blocks.md (#782)
* zh-TW: translation for src/control-flow/blocks.md

* zh-TW: update translation for src/control-flow/blocks.md
2023-06-09 06:04:08 +08:00
kuanhungchen
2eda22dced
zh-TW translation for src/control-flow.md (#781)
* zh-TW translation for src/control-flow.md

* zh-TW: update translation for src/control-flow.md
2023-06-09 06:03:13 +08:00
kuanhungchen
63d11b1240
zh-TW: translation for src/generics/methods.md (#749)
* zh-Hant: translation for src/generics/methods.md

* zh-Hant: update translation for src/generics/methods.md

* Merge remote-tracking branch 'upstream/main' into src/generics/methods.md

* update translation for src/generics/methods.md

Part of #684.
2023-06-06 14:45:57 +09:00
kuanhungchen
b1c1c04626
zh-TW: translation for src/generics/monomorphization.md (#755)
* zh-Hant: translation for src/generics/monomorphization.md

* zh-TW: update translation for src/generics/monomorphization.md
2023-06-06 10:36:47 +09:00
wnghl
6e16928ee3
zh-Hans: translate src/basic-syntax/rustdoc.md (#736)
* zh-Hans: translate src/basic-syntax/rustdoc.md

---------

Co-authored-by: suetfei <89482184+suetfei@users.noreply.github.com>
2023-06-05 09:09:00 +08:00
Ming-Ying Chung
f26b166bdf
zh-TW: Update english message from latest source (#758)
Auto-generated from the following commands:

```
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' \
mdbook build -d po
msgmerge --update po/zh-TW.po po/messages.pot
```
2023-06-02 18:10:35 +09:00
Ming-Ying Chung
1d730b0e1b
Rename zh-Hant.po to zh-TW.po and add CODEOWNER (#757)
- Add myself as the code reviewer for zh-TW, as I am already listed in
  [the
  sheet](https://docs.google.com/spreadsheets/d/1bVSJEUGkI9gcqmmA4va4y-I7LzgQUqNwnZYJsQNMBGE/edit#gid=0) for zh-Hant translation
- As mentioned in
https://github.com/google/comprehensive-rust/issues/684#issuecomment-1571700135, Traditional Chinese are used differently in HK and TW. The intention for zh-Hant.go was to cover zh-TW.
2023-06-02 09:53:41 +02:00