From 5d5d8637436f45d74e7f68b42ef66840eef45ae2 Mon Sep 17 00:00:00 2001 From: husohome Date: Sat, 5 Aug 2023 15:42:47 +0800 Subject: [PATCH 1/7] translated 'check reference' is Falses841u0 --- library/json.po | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index bca98e8f85..29cbcca9d7 100644 --- a/library/json.po +++ b/library/json.po @@ -132,7 +132,9 @@ msgid "" "If *check_circular* is false (default: ``True``), then the circular " "reference check for container types will be skipped and a circular reference " "will result in a :exc:`RecursionError` (or worse)." -msgstr "" +msgstr "如果 *chech_circular* 視為 false (預設是 ``True``), 那麼json將不會檢查" +"是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接" +"由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)" #: ../../library/json.rst:162 msgid "" From 339ad4c0c1bceacc166c125648163785861d69e2 Mon Sep 17 00:00:00 2001 From: husohome Date: Sat, 5 Aug 2023 15:51:03 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BE=9D=E5=BB=BA=E8=AD=B0=E6=94=B9?= =?UTF-8?q?=E7=82=BA=E5=B0=87'=E8=A6=96=E7=82=BA'=E6=94=B9=E7=82=BA'?= =?UTF-8?q?=E8=A8=AD=E7=82=BA'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 29cbcca9d7..38fae0f914 100644 --- a/library/json.po +++ b/library/json.po @@ -132,7 +132,7 @@ msgid "" "If *check_circular* is false (default: ``True``), then the circular " "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``), 那麼json將不會檢查" +msgstr "如果 *chech_circular* 設為 false (預設是 ``True``), 那麼json將不會檢查" "是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接" "由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)" From 920ab99094c581431d1f13cf77e0e42f39298b6f Mon Sep 17 00:00:00 2001 From: husohome Date: Sat, 5 Aug 2023 16:28:05 +0800 Subject: [PATCH 3/7] translated json.rst:162 to chinese --- library/json.po | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 38fae0f914..00a428c546 100644 --- a/library/json.po +++ b/library/json.po @@ -143,7 +143,11 @@ msgid "" "``inf``, ``-inf``) in strict compliance of the JSON specification. If " "*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-" "Infinity``) will be used." -msgstr "" +msgstr "如果 *allow_nan* 設為 False (預設值為 ``True``), 那麼串聯化 (serialize)" +":class:`float` 的特殊值 (``nan``, ""``inf``, ``-inf``) 會觸發 :exc:`ValueError`" +"這麼設定是為了遵守較嚴格的 JSON 規範 (strict JSON specification)。 如果設為 True," +"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值去(``NaN``," +"``Infinity``, ``-Infinity``)" #: ../../library/json.rst:168 ../../library/json.rst:452 msgid "" From 724a63d1e7fa1afa8a5b912338ebc29c13ca35f8 Mon Sep 17 00:00:00 2001 From: husohome Date: Sat, 5 Aug 2023 16:33:30 +0800 Subject: [PATCH 4/7] fixed a typo --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 00a428c546..82931d712c 100644 --- a/library/json.po +++ b/library/json.po @@ -146,7 +146,7 @@ msgid "" msgstr "如果 *allow_nan* 設為 False (預設值為 ``True``), 那麼串聯化 (serialize)" ":class:`float` 的特殊值 (``nan``, ""``inf``, ``-inf``) 會觸發 :exc:`ValueError`" "這麼設定是為了遵守較嚴格的 JSON 規範 (strict JSON specification)。 如果設為 True," -"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值去(``NaN``," +"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值 (``NaN``," "``Infinity``, ``-Infinity``)" #: ../../library/json.rst:168 ../../library/json.rst:452 From 505202d7ad198900b859de7682216d2d5770dae9 Mon Sep 17 00:00:00 2001 From: "Nick (Shun-Fu) Hu" Date: Sat, 5 Aug 2023 16:42:02 +0800 Subject: [PATCH 5/7] Update library/json.po thanks Co-authored-by: Wei-Hsiang (Matt) Wang --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 00a428c546..93c89903c5 100644 --- a/library/json.po +++ b/library/json.po @@ -132,7 +132,7 @@ msgid "" "If *check_circular* is false (default: ``True``), then the circular " "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``), 那麼json將不會檢查" +msgstr "如果 *chech_circular* 設為 false(預設是 ``True``),那麼 json 將不會檢查" "是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接" "由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)" From 3b50220d56552aa49f9e4ff72b89eb075df6f540 Mon Sep 17 00:00:00 2001 From: "Nick (Shun-Fu) Hu" Date: Sat, 5 Aug 2023 16:42:20 +0800 Subject: [PATCH 6/7] Update library/json.po thanks Co-authored-by: Wei-Hsiang (Matt) Wang --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 93c89903c5..5b2405b51e 100644 --- a/library/json.po +++ b/library/json.po @@ -134,7 +134,7 @@ msgid "" "will result in a :exc:`RecursionError` (or worse)." msgstr "如果 *chech_circular* 設為 false(預設是 ``True``),那麼 json 將不會檢查" "是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接" -"由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)" +"由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)。" #: ../../library/json.rst:162 msgid "" From e10ba5c2bcb0b4b85292178154ab28d09866f40f Mon Sep 17 00:00:00 2001 From: husohome Date: Sat, 5 Aug 2023 16:44:50 +0800 Subject: [PATCH 7/7] fixed punctuations, took out 'strict JSON specification' after its Chinese translation. --- library/json.po | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/library/json.po b/library/json.po index 82931d712c..edd537b4a7 100644 --- a/library/json.po +++ b/library/json.po @@ -132,9 +132,9 @@ msgid "" "If *check_circular* is false (default: ``True``), then the circular " "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``), 那麼json將不會檢查" -"是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接" -"由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)" +msgstr "如果 *chech_circular* 設為 false (預設是 ``True``), 那麼json將不會檢查" +"是否有循環參照 (circular reference) 的情形。如果有循環參照的情形發生,則會出直接" +"由交由 Python 本來的機制出處理錯誤,亦即 :exc:`RecursionError` (或者更糟的錯誤)。" #: ../../library/json.rst:162 msgid "" @@ -143,11 +143,10 @@ msgid "" "``inf``, ``-inf``) in strict compliance of the JSON specification. If " "*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-" "Infinity``) will be used." -msgstr "如果 *allow_nan* 設為 False (預設值為 ``True``), 那麼串聯化 (serialize)" -":class:`float` 的特殊值 (``nan``, ""``inf``, ``-inf``) 會觸發 :exc:`ValueError`" -"這麼設定是為了遵守較嚴格的 JSON 規範 (strict JSON specification)。 如果設為 True," -"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值 (``NaN``," -"``Infinity``, ``-Infinity``)" +msgstr "如果 *allow_nan* 設為 False(預設值為 ``True``),那麼串聯化 (serialize)" +":class:`float` 的特殊值 (``nan``, ``inf``, ``-inf``) 會觸發 :exc:`ValueError`," +"這麼設定是為了遵守較嚴格的 JSON 規範。如果設為 True,則串聯化這些極值不會出錯,而是" +"會被自動代換成 JavaScript 上等價的值 (``NaN``, ``Infinity``, ``-Infinity``)" #: ../../library/json.rst:168 ../../library/json.rst:452 msgid ""