Skip to content

Translate library/copyreg.po #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions library/copyreg.po
Original file line number Diff line number Diff line change
@@ -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 <me@liang2.tw>, 2016
# Matt Wang <mattwang44@gmail.com>, 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 <me@liang2.tw>\n"
"PO-Revision-Date: 2023-12-29 00:29+0000\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
Expand All @@ -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`"
Expand All @@ -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 ""
Expand All @@ -48,19 +55,26 @@ 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 ""
"Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler "
"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"
Expand All @@ -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"
Expand Down