Skip to content

Commit a78ad38

Browse files
committed
根據discussion 547之建議修改 serialize, deserialize的譯文。
1 parent 59aa815 commit a78ad38

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

library/json.po

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# Translators:
66
# Asoul Yang <azx754@gmail.com>, 2016
7+
# SkyLull <jk881222@gmail.com>, 2024
8+
79
msgid ""
810
msgstr ""
911
"Project-Id-Version: Python 3.12\n"
@@ -102,7 +104,7 @@ msgid ""
102104
msgstr ""
103105
"JSON 語法是 `YAML <https://yaml.org/>`_ 1.2 語法的一種子集合。"
104106
"所以如果使用預設的設定的話(準確來說,使用預設的 *separators* 分隔符設定的話),這個模組的輸出也符合 YAML 1.0 和 1.1 的子集合規範。"
105-
"因此你也可以利用這個模組來當作 YAML 的序列化工具(serializer)。"
107+
"因此你也可以利用這個模組來當作 YAML 的串聯化工具(serializer)。"
106108

107109
#: ../../library/json.rst:130
108110
msgid ""
@@ -121,7 +123,7 @@ msgid ""
121123
"supporting :term:`file-like object`) using this :ref:`conversion table <py-"
122124
"to-json-table>`."
123125
msgstr ""
124-
"參考這個列表 :ref:`conversion table <py-to-json-table>` 將 *obj* 序列化為"
126+
"參考這個列表 :ref:`conversion table <py-to-json-table>` 將 *obj* 串聯化為"
125127
"符合 JSON 格式的字串流,並寫入到 *fp* (一個支援 ``.write()`` 方法的 :term:`file-like object`)"
126128

127129
#: ../../library/json.rst:146
@@ -170,7 +172,7 @@ msgid ""
170172
"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-"
171173
"Infinity``) will be used."
172174
msgstr ""
173-
"如果 *allow_nan* 為 false(預設值:``True``\\ ),則序列化超出嚴格 JSON 規範"
175+
"如果 *allow_nan* 為 false(預設值:``True``\\ ),則串聯化超出嚴格 JSON 規範"
174176
"之範圍的 :class:`float` 值 (``nan``, ``inf``, ``-inf``) 會引發 :exc:"
175177
"`ValueError`。如果 *allow_nan* 為 true,則將使用它們的 JavaScript 等效項 "
176178
"(``NaN``, ``Infinity``, ``-Infinity``)。"
@@ -215,7 +217,7 @@ msgid ""
215217
"version of the object or raise a :exc:`TypeError`. If not specified, :exc:"
216218
"`TypeError` is raised."
217219
msgstr ""
218-
"如果有指定本參數,*default* 應該是一個為無法序列化的物件呼叫的函式。它應該傳回物件"
220+
"如果有指定本參數,*default* 應該是一個為無法串聯化的物件呼叫的函式。它應該傳回物件"
219221
"的 JSON 可編碼版本或引發 :exc:`TypeError`。如果未指定,則會引發 :exc:"
220222
"`TypeError`。"
221223

@@ -233,7 +235,7 @@ msgid ""
233235
"it with the *cls* kwarg; otherwise :class:`JSONEncoder` is used."
234236
msgstr ""
235237
"若要使用自訂 :class:`JSONEncoder` 子類別(例如覆寫 :meth:`~JSONEncoder."
236-
"default` 方法來序列化其他型別的子類別),請使用關鍵字參數 *cls* 指定它;否則使"
238+
"default` 方法來串聯化其他型別的子類別),請使用關鍵字參數 *cls* 指定它;否則使"
237239
"用 :class:`JSONEncoder`。"
238240

239241
#: ../../library/json.rst:198 ../../library/json.rst:277
@@ -249,7 +251,7 @@ msgid ""
249251
"using the same *fp* will result in an invalid JSON file."
250252
msgstr ""
251253
"與 :mod:`pickle` 和 :mod:`marshal` 不同,JSON 沒有二進位分框的協定,因此嘗試重複呼叫 :func:`dump` "
252-
"來序列化多個物件到同一個 *fp* 裡將導致無效的 JSON 檔案。"
254+
"來串聯化多個物件到同一個 *fp* 裡將導致無效的 JSON 檔案。"
253255
# SkyLull: 我想這裡的 "framed protocol" 指的是 https://peps.python.org/pep-3154/#framing
254256

255257
#: ../../library/json.rst:212
@@ -258,7 +260,7 @@ msgid ""
258260
"table <py-to-json-table>`. The arguments have the same meaning as in :func:"
259261
"`dump`."
260262
msgstr ""
261-
"使用此\\ :ref:`轉換表 <json-to-py-table>`\\ 來將 *obj* 序列化為 JSON 格式 :"
263+
"使用此\\ :ref:`轉換表 <json-to-py-table>`\\ 來將 *obj* 串聯化為 JSON 格式 :"
262264
"class:`str`。這個參數的作用與 :func:`dump` 中的同名參數意義相同。"
263265

264266
#: ../../library/json.rst:218
@@ -282,7 +284,7 @@ msgid ""
282284
msgstr ""
283285
"使用此\\ :ref:`轉換表 <json-to-py-table>`\\ 來將 *fp*\\ (一個支援 ``."
284286
"read()``、包含 JSON 文件的\\ :term:`文字檔案 <text file>`\\\\ :term:`二進"
285-
"位檔案 <binary file>`\\反序列化為 Python 物件。"
287+
"位檔案 <binary file>`\\去序列化為 Python 物件。"
286288

287289
#: ../../library/json.rst:231
288290
msgid ""
@@ -375,7 +377,7 @@ msgid ""
375377
"If the data being deserialized is not a valid JSON document, a :exc:"
376378
"`JSONDecodeError` will be raised."
377379
msgstr ""
378-
"如果被反序列化(deserialized)的資料不符合 JSON 格式,將會觸發 :exc:`JSONDecodeError` 例外。"
380+
"如果被去序列化(deserialized)的資料不符合 JSON 格式,將會觸發 :exc:`JSONDecodeError` 例外。"
379381

380382
#: ../../library/json.rst:280
381383
msgid ""
@@ -391,7 +393,7 @@ msgid ""
391393
"`conversion table <json-to-py-table>`."
392394
msgstr ""
393395
"使用\\ :ref:`轉換表 <json-to-py-table>`\\ 將 *s* (一個含有 JSON 文件的 :class:`str`\\\\ :class:`bytes` 或 :class:`bytearray` "
394-
"的實例(instance))反序列化(deserialize)為一個 Python 物件"
396+
"的實例(instance))去序列化(deserialize)為一個 Python 物件"
395397

396398
#: ../../library/json.rst:290
397399
msgid "The other arguments have the same meaning as in :func:`load`."

0 commit comments

Comments
 (0)