Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5c848b3

Browse filesBrowse files
authored
feat: translate library/copyreg.po (python#779)
1 parent 4114b50 commit 5c848b3
Copy full SHA for 5c848b3

File tree

Expand file treeCollapse file tree

1 file changed

+20
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+20
-6
lines changed

‎library/copyreg.po

Copy file name to clipboardExpand all lines: library/copyreg.po
+20-6Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
1+
# Copyright (C) 2001-2023, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
5+
# Liang-Bo Wang <me@liang2.tw>, 2016
6+
# Matt Wang <mattwang44@gmail.com>, 2023
67
msgid ""
78
msgstr ""
89
"Project-Id-Version: Python 3.12\n"
910
"Report-Msgid-Bugs-To: \n"
1011
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
11-
"PO-Revision-Date: 2016-11-19 00:29+0000\n"
12-
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
12+
"PO-Revision-Date: 2023-12-29 00:29+0000\n"
13+
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1314
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1415
"tw)\n"
1516
"Language: zh_TW\n"
@@ -20,7 +21,7 @@ msgstr ""
2021

2122
#: ../../library/copyreg.rst:2
2223
msgid ":mod:`copyreg` --- Register :mod:`pickle` support functions"
23-
msgstr ""
24+
msgstr ":mod:`copyreg` --- 註冊 :mod:`pickle` 支援函式"
2425

2526
#: ../../library/copyreg.rst:7
2627
msgid "**Source code:** :source:`Lib/copyreg.py`"
@@ -34,12 +35,18 @@ msgid ""
3435
"configuration information about object constructors which are not classes. "
3536
"Such constructors may be factory functions or class instances."
3637
msgstr ""
38+
":mod:`copyreg` 模組提供了一種用以定義在 pickle 特定物件時使用之函式的方式。:"
39+
"mod:`pickle` 和 :mod:`copy` 模組在 pickle/copy 這些物件時使用這些函式。此模組"
40+
"提供有關非類別物件之建構函式的配置資訊。此類建構函式可以是工廠函式 (factory "
41+
"function) 或類別實例。"
3742

3843
#: ../../library/copyreg.rst:24
3944
msgid ""
4045
"Declares *object* to be a valid constructor. If *object* is not callable "
4146
"(and hence not valid as a constructor), raises :exc:`TypeError`."
4247
msgstr ""
48+
"宣告 *object* 是一個有效的建構函式。如果 *object* 不可呼叫(因此不可作為有效"
49+
"的建構函式),則會引發 :exc:`TypeError`。"
4350

4451
#: ../../library/copyreg.rst:30
4552
msgid ""
@@ -48,19 +55,26 @@ msgid ""
4855
"containing between two and six elements. See the :attr:`~pickle.Pickler."
4956
"dispatch_table` for more details on the interface of *function*."
5057
msgstr ""
58+
"宣告 *function* 應該用作 *type* 型別之物件的「歸約 (\"reduction\")」函式。"
59+
"*function* 必須回傳字串或包含 2 到 6 個元素的元組。有關 *function* 介面的更多"
60+
"詳細資訊,請參閱 :attr:`~pickle.Pickler.dispatch_table`。"
5161

5262
#: ../../library/copyreg.rst:35
5363
msgid ""
5464
"The *constructor_ob* parameter is a legacy feature and is now ignored, but "
5565
"if passed it must be a callable."
5666
msgstr ""
67+
"*constructor_ob* 參數是一個遺留功能,現在已被忽略,但如果要傳遞它的話則必須是"
68+
"個可呼叫物件。"
5769

5870
#: ../../library/copyreg.rst:38
5971
msgid ""
6072
"Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler "
6173
"object or subclass of :class:`pickle.Pickler` can also be used for declaring "
6274
"reduction functions."
6375
msgstr ""
76+
"請注意,pickler 物件或 :class:`pickle.Pickler` 子類別的 :attr:`~pickle."
77+
"Pickler.dispatch_table` 屬性也可用於宣告歸約函式。"
6478

6579
#: ../../library/copyreg.rst:43
6680
msgid "Example"
@@ -70,7 +84,7 @@ msgstr "範例"
7084
msgid ""
7185
"The example below would like to show how to register a pickle function and "
7286
"how it will be used:"
73-
msgstr ""
87+
msgstr "下面範例展示如何註冊一個 pickle 函式以及如何使用它:"
7488

7589
#: ../../library/copyreg.rst:9
7690
msgid "module"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.