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

34 Commits

Author SHA1 Message Date
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