From 2c1569c87f57c6ac5a0427723ff9e24bf19d1d80 Mon Sep 17 00:00:00 2001 From: isabellechiu <39623214+isabellechiu@users.noreply.github.com> Date: Sun, 6 Aug 2023 02:48:19 +0100 Subject: [PATCH 01/19] /library/datetime.rst:2485 (#549) --- library/datetime.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/datetime.po b/library/datetime.po index ae13bec8e3..c7c8a1c23b 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -2992,7 +2992,7 @@ msgstr "" #: ../../library/datetime.rst:2483 msgid "Technical Detail" -msgstr "" +msgstr "技術細節" #: ../../library/datetime.rst:2485 msgid "" From 365f1d7eda704eb6d9de6e9ff3a6dce234663512 Mon Sep 17 00:00:00 2001 From: "Wei-Hsiang (Matt) Wang" Date: Sun, 6 Aug 2023 09:48:55 +0800 Subject: [PATCH 02/19] Translate datetime.rst:754 (#548) * datetime.rst:754 * Apply suggestions from code review --- library/datetime.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/datetime.po b/library/datetime.po index c7c8a1c23b..6fb7f3edc9 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -1019,6 +1019,9 @@ msgstr "用法範例:\\ :class:`date`" #: ../../library/datetime.rst:754 msgid "Example of counting days to an event::" msgstr "" +"計算一個事件的天數的範例: \n" +"\n" +"::" #: ../../library/datetime.rst:773 msgid "More examples of working with :class:`date`:" From 8dc32847b5285a7e75717b3493df23a37b00a804 Mon Sep 17 00:00:00 2001 From: Song-Lin Tsai <55531306+Bradley-Tsai@users.noreply.github.com> Date: Sun, 6 Aug 2023 09:49:30 +0800 Subject: [PATCH 03/19] translate datetime.rst:196 (#545) --- library/datetime.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/datetime.po b/library/datetime.po index 6fb7f3edc9..15145b4666 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-07-17 17:39+0800\n" -"PO-Revision-Date: 2018-05-23 14:42+0000\n" +"PO-Revision-Date: 2023-08-05 15:55+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -17,6 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.3.2\n" #: ../../library/datetime.rst:2 msgid ":mod:`datetime` --- Basic date and time types" @@ -280,6 +281,7 @@ msgid "" "A :class:`timedelta` object represents a duration, the difference between " "two dates or times." msgstr "" +"一個 :class:`timedelta` 物件代表著一段持續時間,即兩個日期或時間之間的差異。" #: ../../library/datetime.rst:201 msgid "" From 57b526400eb6f63a594a68a0bfcca81c7a292edd Mon Sep 17 00:00:00 2001 From: ccchian <72912233+ccchian@users.noreply.github.com> Date: Sun, 6 Aug 2023 09:51:36 +0800 Subject: [PATCH 04/19] git commit rst:157 translate (#535) --- library/datetime.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/datetime.po b/library/datetime.po index 15145b4666..f76297b8f4 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -201,7 +201,7 @@ msgstr "" #: ../../library/datetime.rst:157 msgid "Common Properties" -msgstr "" +msgstr "常見屬性" #: ../../library/datetime.rst:159 msgid "" From 82959bb3b90067f58ff51bc7131adb38d2e9a6d7 Mon Sep 17 00:00:00 2001 From: neo <71454430+neo-maker-sudo@users.noreply.github.com> Date: Sun, 6 Aug 2023 09:52:07 +0800 Subject: [PATCH 05/19] feat(translate): json.po line 323 to tranditional chinese (#532) --- library/json.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/json.po b/library/json.po index bca98e8f85..6c1fa0dc14 100644 --- a/library/json.po +++ b/library/json.po @@ -320,7 +320,7 @@ msgstr "" #: ../../library/json.rst:299 msgid "The keyword argument *encoding* has been removed." -msgstr "" +msgstr "關鍵字引數 *encoding* 已經被刪除。" #: ../../library/json.rst:304 msgid "Encoders and Decoders" @@ -693,7 +693,7 @@ msgstr "" #: ../../library/json.rst:630 msgid "The *object_pairs_hook* parameter can be used to alter this behavior." -msgstr "" +msgstr "*object_parts_hook* 參數可以被使用來改變此行為。" #: ../../library/json.rst:634 msgid "Top-level Non-Object, Non-Array Values" From 29d5e0e33ad46dcf2095b51c34f13d352fd21f24 Mon Sep 17 00:00:00 2001 From: "ai.Stella" <63219262+estelladai@users.noreply.github.com> Date: Sun, 6 Aug 2023 09:57:23 +0800 Subject: [PATCH 06/19] Datetime/upstream/3.12 (#550) * translate-datetime.rst:2369 * datetime-2369-fixed-by-reviewer --------- Co-authored-by: Dai Stella Co-authored-by: Wei-Hsiang (Matt) Wang --- library/datetime.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/datetime.po b/library/datetime.po index f76297b8f4..965338c0a0 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -2657,7 +2657,7 @@ msgstr "``%m``" #: ../../library/datetime.rst:2369 msgid "Month as a zero-padded decimal number." -msgstr "" +msgstr "以零填充的並以十進位數字表示的月份。" #: ../../library/datetime.rst:2369 ../../library/datetime.rst:2381 msgid "01, 02, ..., 12" From 108d43d8fe551876b781cdd96c0dfcb0cbf6ee82 Mon Sep 17 00:00:00 2001 From: Simon Chu Date: Sun, 6 Aug 2023 10:00:17 +0800 Subject: [PATCH 07/19] translate `library/datetime.rst:2619` (#524) * docs: translate footnote 1 * fix: translate msg * fix: translate of Relativity --- library/datetime.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/datetime.po b/library/datetime.po index 965338c0a0..466089dcba 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -3193,7 +3193,7 @@ msgstr "註解" #: ../../library/datetime.rst:2619 msgid "If, that is, we ignore the effects of Relativity" -msgstr "" +msgstr "也就是說,我們會忽略相對論的效應" #: ../../library/datetime.rst:2621 msgid "" From b10fba0d21becf538e9e3b461b788be162383860 Mon Sep 17 00:00:00 2001 From: Yu-Sheng Li Date: Sun, 6 Aug 2023 10:09:58 +0800 Subject: [PATCH 08/19] Add translations to `library/json` rst:26 and rst:29 (#537) * Add translations to `library/json` rst:26 and rst:29 * fix literal code block marker * Update library/json.po Co-authored-by: RockLeon <34214497+rockleona@users.noreply.github.com> --------- Co-authored-by: RockLeon <34214497+rockleona@users.noreply.github.com> --- library/json.po | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 6c1fa0dc14..79a69680a2 100644 --- a/library/json.po +++ b/library/json.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-07-29 10:36+0000\n" -"PO-Revision-Date: 2018-05-23 16:04+0000\n" +"PO-Revision-Date: 2023-08-05 16:26+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -18,6 +18,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 3.3.2\n" #: ../../library/json.rst:2 msgid ":mod:`json` --- JSON encoder and decoder" @@ -49,10 +50,15 @@ msgid "" ":mod:`json` exposes an API familiar to users of the standard library :mod:" "`marshal` and :mod:`pickle` modules." msgstr "" +":mod:`json` 為標準函式庫 :mod:`marshal` 與 :mod:`pickle` 模組的使用者提供熟悉" +"的 API。" #: ../../library/json.rst:29 msgid "Encoding basic Python object hierarchies::" msgstr "" +"對基本 Python 物件階層進行編碼:\n" +"\n" +"::" #: ../../library/json.rst:48 msgid "Compact encoding::" From 0767c94df1371dd5631434176ef154f2100c5651 Mon Sep 17 00:00:00 2001 From: "Wei-Hsiang (Matt) Wang" Date: Sun, 6 Aug 2023 10:11:26 +0800 Subject: [PATCH 09/19] translate json title (#523) --- library/json.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/json.po b/library/json.po index 79a69680a2..7abc89f9d8 100644 --- a/library/json.po +++ b/library/json.po @@ -9,8 +9,8 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-07-29 10:36+0000\n" -"PO-Revision-Date: 2023-08-05 16:26+0800\n" -"Last-Translator: Adrian Liaw \n" +"PO-Revision-Date: 2023-08-05 15:25+0800\n" +"Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -22,7 +22,7 @@ msgstr "" #: ../../library/json.rst:2 msgid ":mod:`json` --- JSON encoder and decoder" -msgstr "" +msgstr ":mod:`json` --- JSON 編碼器與解碼器" #: ../../library/json.rst:10 msgid "**Source code:** :source:`Lib/json/__init__.py`" From 16748d7e541a1128ba1a467f8372215926d56f6a Mon Sep 17 00:00:00 2001 From: mindihx Date: Mon, 7 Aug 2023 10:20:42 +0800 Subject: [PATCH 10/19] Add translation for library/json (#555) * Add translation for library/json * Fix using single backslash to escape space --- library/json.po | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/json.po b/library/json.po index 7abc89f9d8..cb41f67af9 100644 --- a/library/json.po +++ b/library/json.po @@ -37,6 +37,12 @@ msgid "" "wikipedia.org/wiki/JavaScript>`_ object literal syntax (although it is not a " "strict subset of JavaScript [#rfc-errata]_ )." msgstr "" +"`JSON (JavaScript Object Notation) `_ 是一個輕量化的資料交" +"換格式,在 :rfc:`7159`\\ (其廢棄了 :rfc:`4627`\\ )及 `ECMA-404 `_ " +"裡面有詳細說明,它啟發自 `JavaScript `_ 的物件字面語法 (object literal syntax)(雖然它並不是 " +"JavaScript 的嚴格子集 [#rfc-errata]_\\ )。" #: ../../library/json.rst:22 msgid "" From e5ba70adec192d14617f9ac2378c5e1794a2c618 Mon Sep 17 00:00:00 2001 From: 933yee <92087014+933yee@users.noreply.github.com> Date: Tue, 8 Aug 2023 11:13:37 +0800 Subject: [PATCH 11/19] Translate library/datetime.rst:124 (#543) * Translate library/datetime.rst:124 * Apply suggestions from code review Co-authored-by: RockLeon <34214497+rockleona@users.noreply.github.com> * Update datetime.po * Update datetime.po --------- Co-authored-by: RockLeon <34214497+rockleona@users.noreply.github.com> --- library/datetime.po | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/datetime.po b/library/datetime.po index 466089dcba..fb72fca369 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -176,6 +176,8 @@ msgid "" "A duration expressing the difference between two :class:`date`, :class:`." "time`, or :class:`.datetime` instances to microsecond resolution." msgstr "" +"表示兩個 :class:`date`、:class:`.time` 或 :class:`.datetime` 實例之間時間的差" +"異,以微秒為解析度。" #: ../../library/datetime.rst:131 msgid "" From 1012ffdc23185e88bebd996538608aac2a41295e Mon Sep 17 00:00:00 2001 From: mindihx Date: Tue, 8 Aug 2023 11:23:07 +0800 Subject: [PATCH 12/19] Add translation for library/json (#527) * Add translation for library/json * Refine sentence in library/json --- library/json.po | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/json.po b/library/json.po index cb41f67af9..caf0fc8a96 100644 --- a/library/json.po +++ b/library/json.po @@ -50,6 +50,8 @@ msgid "" "string may cause the decoder to consume considerable CPU and memory " "resources. Limiting the size of data to be parsed is recommended." msgstr "" +"當剖析無法信任來源的 JSON 資料時要小心。一段惡意的 JSON 字串可能會導致" +"解碼器耗費大量 CPU 與記憶體資源。建議限制剖析資料的大小。" #: ../../library/json.rst:26 msgid "" From d763c97d06ea0ae0c66fc32548c43c48c4cf1e71 Mon Sep 17 00:00:00 2001 From: Payon Date: Tue, 8 Aug 2023 23:48:26 +0800 Subject: [PATCH 13/19] :memo: docs(3.12): translate library/json.rst:63 (#542) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :memo: docs(3.12): translate library/json.rst:63 for procedure test purpose, translate /library/json.rst:63 * :memo: docs(3.12): translate library/json.rst:63 通順語句與空格修正 * :memo: docs(3.12): translate library/json.rst:63 fix rst issue --------- Co-authored-by: 鄭宇辰 Co-authored-by: Wei-Hsiang (Matt) Wang --- library/json.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/json.po b/library/json.po index caf0fc8a96..bcefe6b644 100644 --- a/library/json.po +++ b/library/json.po @@ -79,6 +79,9 @@ msgstr "美化輸出:" #: ../../library/json.rst:63 msgid "Decoding JSON::" msgstr "" +"JSON 解碼:\n" +"\n" +"::" #: ../../library/json.rst:75 msgid "Specializing JSON object decoding::" From 83eb81cdd8457565db485294c2fdfcd34797a24a Mon Sep 17 00:00:00 2001 From: Griiid Date: Thu, 10 Aug 2023 15:52:36 +0800 Subject: [PATCH 14/19] Translate library/datetime.rst:2501 (#526) * Translate library/datetime.rst:2501 * Translate library/datetime.rst:2501, remove spaces * Update library/datetime.rst:2501, punctuation mark * Update library/datetime.rst:2501, 'format code' * Update library/datetime.rst:2505 --------- Co-authored-by: Wei-Hsiang (Matt) Wang --- library/datetime.po | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/library/datetime.po b/library/datetime.po index fb72fca369..2f31daeb0b 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-07-17 17:39+0800\n" -"PO-Revision-Date: 2023-08-05 15:55+0800\n" -"Last-Translator: Adrian Liaw \n" +"PO-Revision-Date: 2023-08-07 10:20+0800\n" +"Last-Translator: Griiid \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -3026,13 +3026,18 @@ msgid "" "by ``time.strptime``." msgstr "" +# format code 在這份文件第一次出現的地方是 ../../library/datetime.rst:739,應該要改成在那邊註記 (format code) #: ../../library/datetime.rst:2501 +#, fuzzy msgid "" "For :class:`.time` objects, the format codes for year, month, and day should " "not be used, as :class:`time` objects have no such values. If they're used " "anyway, ``1900`` is substituted for the year, and ``1`` for the month and " "day." msgstr "" +"對 :class:`.time` 物件來說,不應該使用年、月、日的格式碼 (format code),因" +"為 :class:`time` 物件並沒有這些值。如果使用這些格式碼,年份會以 ``1900`` 代" +"替、月及日會以 ``1`` 代替。" #: ../../library/datetime.rst:2505 msgid "" @@ -3040,6 +3045,8 @@ msgid "" "microseconds should not be used, as :class:`date` objects have no such " "values. If they're used anyway, ``0`` is substituted for them." msgstr "" +"對 :class:`.date` 物件來說,不應該使用時、分、秒、微秒的格式碼,因為 :class:" +"`date` 物件並沒有這些值。如果使用這些格式碼,這些值都會以 ``0`` 代替。" #: ../../library/datetime.rst:2509 msgid "" From 752fb89b79b1ecdacaa9a7bf517e39afeab45b91 Mon Sep 17 00:00:00 2001 From: Ivan Lee Date: Thu, 10 Aug 2023 15:55:40 +0800 Subject: [PATCH 15/19] Translated the weekday sentence (#534) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Translated the weekday sentence * Modified the error * Update library/datetime.po --------- Co-authored-by: 李逸帆 Co-authored-by: Wei-Hsiang (Matt) Wang --- library/datetime.po | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/datetime.po b/library/datetime.po index 2f31daeb0b..535cbe2beb 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -935,6 +935,8 @@ msgid "" "For example, ``date(2002, 12, 4).weekday() == 2``, a Wednesday. See also :" "meth:`isoweekday`." msgstr "" +"回傳一個代表星期幾的整數,星期一為 0、星期日為 6。" +"例如 ``date(2002, 12, 4).weekday() == 2`` 為星期三。也請參考 :meth:`isoweekday`。" #: ../../library/datetime.rst:678 msgid "" From 8092cd8e755c80b3941dcd65e34abf65d47ea996 Mon Sep 17 00:00:00 2001 From: Yang_yang <31895597+Yang92047111@users.noreply.github.com> Date: Thu, 10 Aug 2023 15:56:40 +0800 Subject: [PATCH 16/19] Translate datetime rst: 709 (#539) * Translate datetime rst: 709 * Update library/datetime.po --------- Co-authored-by: Wei-Hsiang (Matt) Wang --- library/datetime.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/datetime.po b/library/datetime.po index 535cbe2beb..038ef618c1 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -979,6 +979,9 @@ msgstr "" msgid "" "Return a string representing the date in ISO 8601 format, ``YYYY-MM-DD``::" msgstr "" +"回傳一以 ISO 8601 格式 ``YYYY-MM-DD`` 表示的日期字串:\n" +"\n" +"::" #: ../../library/datetime.rst:717 msgid "For a date *d*, ``str(d)`` is equivalent to ``d.isoformat()``." From 32ac0571106722fce7cccde8614d1447fe5b8965 Mon Sep 17 00:00:00 2001 From: PinErh Chen Date: Mon, 14 Aug 2023 21:31:22 +0800 Subject: [PATCH 17/19] translate datetime.rst:872 (#540) * translate datetime.rst:872 * Update library/datetime.po --------- Co-authored-by: Wei-Hsiang (Matt) Wang --- library/datetime.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/datetime.po b/library/datetime.po index 038ef618c1..c1c3fd3e5d 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -1134,6 +1134,9 @@ msgid "" "going through a :func:`time.time` timestamp (for example, this may be " "possible on platforms supplying the C :c:func:`gettimeofday` function)." msgstr "" +"如果選用的引數 *tz* 為 ``None`` 或未指定,則會像是 :meth:`today`,但盡可能提" +"供比透過 :func:`time.time` 取得的時間戳記更多位數的資訊(例如,這在有提供 C " +":c:func:`gettimeofday` 函式的平台上可能可行)。" #: ../../library/datetime.rst:878 msgid "" From a47a97d56f7a0cf3b05a1df245cbe1b36f6e84a4 Mon Sep 17 00:00:00 2001 From: "Nick (Shun-Fu) Hu" Date: Mon, 14 Aug 2023 21:37:06 +0800 Subject: [PATCH 18/19] translated 'check reference' is Falses841u0 (#525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * translated 'check reference' is Falses841u0 * 依建議改為將'視為'改為'設為' * Update library/json.po --------- Co-authored-by: Wei-Hsiang (Matt) Wang --- library/json.po | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/json.po b/library/json.po index bcefe6b644..34790dc35c 100644 --- a/library/json.po +++ b/library/json.po @@ -150,6 +150,9 @@ msgid "" "reference check for container types will be skipped and a circular reference " "will result in a :exc:`RecursionError` (or worse)." msgstr "" +"如果 *chech_circular* 設為 false(預設是 ``True``),則針對不同容器型別的循環" +"參照 (circular reference) 的檢查將會被跳過,若有循環參照則最後將引發 :exc:" +"`RecursionError` (或者更糟的錯誤)。" #: ../../library/json.rst:162 msgid "" From 4df35a7d2b9f81ce53ac94accb34eacf611d0bc8 Mon Sep 17 00:00:00 2001 From: ccchian <72912233+ccchian@users.noreply.github.com> Date: Mon, 14 Aug 2023 21:37:59 +0800 Subject: [PATCH 19/19] New branch2 (#544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * git commit rst:157 translate * 改rst:179 * Update library/datetime.po --------- Co-authored-by: Wei-Hsiang (Matt) Wang --- library/datetime.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/datetime.po b/library/datetime.po index c1c3fd3e5d..3f4ecc4e75 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -250,7 +250,7 @@ msgstr "``d.tzinfo.utcoffset(d)`` 不會回傳 ``None``" #: ../../library/datetime.rst:179 msgid "Otherwise, *d* is naive." -msgstr "" +msgstr "否則 *d* 會是 naive 的。" #: ../../library/datetime.rst:181 msgid "A :class:`.time` object *t* is aware if both of the following hold:"