diff --git a/library/copyreg.po b/library/copyreg.po index 8ffdcc46f5..8ef24ec53c 100644 --- a/library/copyreg.po +++ b/library/copyreg.po @@ -1,15 +1,16 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) 2001-2022, Python Software Foundation +# Copyright (C) 2001-2023, Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: +# Liang-Bo Wang , 2016 +# Matt Wang , 2023 msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-09 00:15+0000\n" -"PO-Revision-Date: 2016-11-19 00:29+0000\n" -"Last-Translator: Liang-Bo Wang \n" +"PO-Revision-Date: 2023-12-29 00:29+0000\n" +"Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -20,7 +21,7 @@ msgstr "" #: ../../library/copyreg.rst:2 msgid ":mod:`copyreg` --- Register :mod:`pickle` support functions" -msgstr "" +msgstr ":mod:`copyreg` --- 註冊 :mod:`pickle` 支援函式" #: ../../library/copyreg.rst:7 msgid "**Source code:** :source:`Lib/copyreg.py`" @@ -34,12 +35,18 @@ msgid "" "configuration information about object constructors which are not classes. " "Such constructors may be factory functions or class instances." msgstr "" +":mod:`copyreg` 模組提供了一種用以定義在 pickle 特定物件時使用之函式的方式。:" +"mod:`pickle` 和 :mod:`copy` 模組在 pickle/copy 這些物件時使用這些函式。此模組" +"提供有關非類別物件之建構函式的配置資訊。此類建構函式可以是工廠函式 (factory " +"function) 或類別實例。" #: ../../library/copyreg.rst:24 msgid "" "Declares *object* to be a valid constructor. If *object* is not callable " "(and hence not valid as a constructor), raises :exc:`TypeError`." msgstr "" +"宣告 *object* 是一個有效的建構函式。如果 *object* 不可呼叫(因此不可作為有效" +"的建構函式),則會引發 :exc:`TypeError`。" #: ../../library/copyreg.rst:30 msgid "" @@ -48,12 +55,17 @@ msgid "" "containing between two and six elements. See the :attr:`~pickle.Pickler." "dispatch_table` for more details on the interface of *function*." msgstr "" +"宣告 *function* 應該用作 *type* 型別之物件的「歸約 (\"reduction\")」函式。" +"*function* 必須回傳字串或包含 2 到 6 個元素的元組。有關 *function* 介面的更多" +"詳細資訊,請參閱 :attr:`~pickle.Pickler.dispatch_table`。" #: ../../library/copyreg.rst:35 msgid "" "The *constructor_ob* parameter is a legacy feature and is now ignored, but " "if passed it must be a callable." msgstr "" +"*constructor_ob* 參數是一個遺留功能,現在已被忽略,但如果要傳遞它的話則必須是" +"個可呼叫物件。" #: ../../library/copyreg.rst:38 msgid "" @@ -61,6 +73,8 @@ msgid "" "object or subclass of :class:`pickle.Pickler` can also be used for declaring " "reduction functions." msgstr "" +"請注意,pickler 物件或 :class:`pickle.Pickler` 子類別的 :attr:`~pickle." +"Pickler.dispatch_table` 屬性也可用於宣告歸約函式。" #: ../../library/copyreg.rst:43 msgid "Example" @@ -70,7 +84,7 @@ msgstr "範例" msgid "" "The example below would like to show how to register a pickle function and " "how it will be used:" -msgstr "" +msgstr "下面範例展示如何註冊一個 pickle 函式以及如何使用它:" #: ../../library/copyreg.rst:9 msgid "module"