8000 editing json.po, up to line 832 · python/python-docs-zh-tw@b097b0f · GitHub
[go: up one dir, main page]

Skip to content

Commit b097b0f

Browse files
committed
editing json.po, up to line 832
1 parent ad4fff0 commit b097b0f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

library/json.po

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,23 @@ msgstr "對基本 Python 物件階層進行編碼: ::"
6868

6969
#: ../../library/json.rst:48
7070
msgid "Compact encoding::"
71-
msgstr "改用緊湊型編碼方式::"
71+
msgstr "改用緊湊型編碼方式::"
7272

7373
#: ../../library/json.rst:54
7474
msgid "Pretty printing::"
75-
msgstr "美化輸出:"
75+
msgstr "美化輸出: ::"
7676

7777
#: ../../library/json.rst:63
7878
msgid "Decoding JSON::"
7979
msgstr "JSON 解碼: ::"
8080

8181
#: ../../library/json.rst:75
8282
msgid "Specializing JSON object decoding::"
83-
msgstr "自訂特殊的 JSON 解碼方式::"
83+
msgstr "自訂特殊的 JSON 解碼方式::"
8484

8585
#: ../../library/json.rst:90
8686
msgid "Extending :class:`JSONEncoder`::"
87-
msgstr "在 :class:`JSONEncoder` 裡自行擴充額外的編碼方法::"
87+
msgstr "在 :class:`JSONEncoder` 裡自行擴充額外的編碼方法::"
8888

8989
#: ../../library/json.rst:108
9090
msgid "Using :mod:`json.tool` from the shell to validate and pretty-print:"
@@ -675,13 +675,13 @@ msgid ""
675675
"`~JSONEncoder.default` like this::"
676676
msgstr ""
677677
"舉例來說,想要讓編碼器支援任意疊代器(iterator),你可以實作這樣子的 :meth:"
678-
"`~JSONEncoder.default`::"
678+
"`~JSONEncoder.default`::"
679679

680680
#: ../../library/json.rst:501
681681
msgid ""
682682
"Return a JSON string representation of a Python data structure, *o*. For "
683683
"example::"
684-
msgstr "回傳一個 Python 資料結構物件 *o* 的 JSON 的字串表示。例如::"
684+
msgstr "回傳一個 Python 資料結構物件 *o* 的 JSON 的字串表示。例如::"
685685

686686
# 執行下列程式後能證明他的回傳物件是generator
687687
# >>> import json
@@ -695,7 +695,7 @@ msgid ""
695695
"available. For example::"
696696
msgstr ""
697697
"將物件 *o* 編碼,並將結果統整為一個能依序產生(yield)各結果字串的生成器物件"
698-
"(generator)。如下例::"
698+
"(generator)。如下例::"
699699

700700
#: ../../library/json.rst:518
701701
msgid "Exceptions"
@@ -767,7 +767,7 @@ msgid ""
767767
"under default settings."
768768
msgstr ""
769769
"不過 RFC 准許遵循 RFC 的剖析器接受不合規的文字輸入,所以技術上來說若以預設設"
770-
"定運作,本模組的去串列化器是符合 RFC 規範的。"
770+
"定運作,本模組的去串列化器(deserializer)是符合 RFC 規範的。"
771771

772772
#: ../../library/json.rst:568
773773
msgid "Character Encodings"
@@ -779,17 +779,17 @@ msgid ""
779779
"UTF-32, with UTF-8 being the recommended default for maximum "
780780
"interoperability."
781781
msgstr ""
782-
"RFC 規定要求 JSON 必須以 UTF-8、UTF-16 或 UTF-32 格式編碼。並推薦以 UTF-8 編"
783-
"碼以達成最良好的互通性。"
782+
"RFC 要求 JSON 必須以 UTF-8、UTF-16 或 UTF-32 格式編碼。並推薦以 UTF-8 編"
783+
"碼以達成最佳的互通性。"
784784

785785
#: ../../library/json.rst:573
786786
msgid ""
787787
"As permitted, though not required, by the RFC, this module's serializer sets "
788788
"*ensure_ascii=True* by default, thus escaping the output so that the "
789789
"resulting strings only contain ASCII characters."
790790
msgstr ""
791-
"RFC 准許但並不要求編碼器的 *ensure_ascii=True* 是預設值,但本模組依然實作了此"
792-
"一選項作為預設,因此本模組會轉義所有非 ASCII 字元。"
791+
"RFC 准許但並不強制編碼器的 *ensure_ascii=True* 行為是預設值,但本模組依然實作了此"
792+
"一選項作為預設,因此本模組預設會轉義所有非 ASCII 字元。"
793793

794794
#: ../../library/json.rst:577
795795
msgid ""
@@ -811,7 +811,7 @@ msgid ""
811811
msgstr ""
812812
"RFC 禁止在文件的開頭加上端序記號(BOM),因此本模組的串列化器(serializer)也"
813813
"不會在輸出中加入端序記號。RFC 允許但不強制 JSON 去串列化器(deserializer)忽"
814-
"略文件初始的端序記號,因此本模組的去串列化器將在遭遇端序記號時引發 :exc:"
814+
"略文件初始的端序記號,因此本模組的去串列化器將在遭遇位於文件開頭的端序記號時引發 :exc:"
815815
"`ValueError` 例外。"
816816

817817
#: ../../library/json.rst:588
@@ -822,10 +822,13 @@ msgid ""
822822
"By default, this module accepts and outputs (when present in the original :"
823823
"class:`str`) code points for such sequences."
824824
msgstr ""
825+
"RFC 並未明確禁止 JSON 文件包含無法對應有效 Unicode 字元的位元組序列(例如未配對的 UTF-16 代理對(surrogate "
826+
"pairs)),但這個特性的確可能會引起相容性問題。預設情況下,當原始輸入的 :class:`str` "
827+
"中存在此類序列時,該模組將接受並輸出這些序列的編碼位置(code points)。"
825828

826829
#: ../../library/json.rst:596
827830
msgid "Infinite and NaN Number Values"
828-
msgstr ""
831+
msgstr "正負無限與非數值"
829832

830833
#: ../../library/json.rst:598
831834
msgid ""

0 commit comments

Comments
 (0)
0