Skip to content

Commit 20da0bb

Browse files
mattwang44ken71301
andauthored
Translate library/pickletools.po (#659)
* feat: translate `library/pickletools.po` * fix(library/pickletools): apply review suggestions * Apply suggestions from code review Co-authored-by: Payon <[email protected]> --------- Co-authored-by: Payon <[email protected]>
1 parent da87e44 commit 20da0bb

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

library/pickletools.po

+33-10
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+
# Adrian Liaw <[email protected]>, 2018
6+
# Matt Wang <[email protected]>, 2023
67
msgid ""
78
msgstr ""
89
"Project-Id-Version: Python 3.12\n"
910
"Report-Msgid-Bugs-To: \n"
1011
"POT-Creation-Date: 2023-10-12 00:03+0000\n"
1112
"PO-Revision-Date: 2018-05-23 16:07+0000\n"
12-
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
13+
"Last-Translator: Matt Wang <mattwag44@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/pickletools.rst:2
2223
msgid ":mod:`pickletools` --- Tools for pickle developers"
23-
msgstr ""
24+
msgstr ":mod:`pickletools` --- pickle 開發者的工具"
2425

2526
#: ../../library/pickletools.rst:8
2627
msgid "**Source code:** :source:`Lib/pickletools.py`"
@@ -35,6 +36,10 @@ msgid ""
3536
"`pickle`; ordinary users of the :mod:`pickle` module probably won't find "
3637
"the :mod:`pickletools` module relevant."
3738
msgstr ""
39+
"該模組包含與 :mod:`pickle` 模組的詳細資訊相關的各種常數、一些有關實作的冗長註"
40+
"釋以及一些用於分析已 pickle 資料的有用函式。該模組的內容對於有 :mod:`pickle` "
41+
"相關工作的 Python 核心開發人員很有用;:mod:`pickle` 模組的一般使用者可能不會"
42+
"發現 :mod:`pickletools` 模組。"
3843

3944
#: ../../library/pickletools.rst:23
4045
msgid "Command line usage"
@@ -49,41 +54,47 @@ msgid ""
4954
"pickle file that you want to examine comes from an untrusted source, ``-m "
5055
"pickletools`` is a safer option because it does not execute pickle bytecode."
5156
msgstr ""
57+
"當從命令列呼叫時,``python -m pickletools`` 將拆解 (disassemble) 一個或多個 "
58+
"pickle 檔案的內容。請注意,如果你想查看儲存在 pickle 中的 Python 物件而不是 "
59+
"pickle 格式的詳細資訊,你可能需要使用 ``-m pickle``。但是,當你要檢查的 "
60+
"pickle 檔案來自不受信任的來源時,``-m pickletools`` 是一個更安全的選項,因為"
61+
"它不執行 pickle 位元組碼。"
5262

5363
#: ../../library/pickletools.rst:35
5464
msgid "For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:"
55-
msgstr ""
65+
msgstr "例如,pickle 於檔案 ``x.pickle`` 中的元組 ``(1, 2)``:"
5666

5767
#: ../../library/pickletools.rst:52
5868
msgid "Command line options"
5969
msgstr "命令列選項"
6070

6171
#: ../../library/pickletools.rst:58
6272
msgid "Annotate each line with a short opcode description."
63-
msgstr ""
73+
msgstr "用簡短的操作碼 (opcode) 描述註釋每一行。"
6474

6575
#: ../../library/pickletools.rst:62
6676
msgid "Name of a file where the output should be written."
67-
msgstr ""
77+
msgstr "應將輸出結果寫入之檔案的名稱。"
6878

6979
#: ../../library/pickletools.rst:66
7080
msgid "The number of blanks by which to indent a new MARK level."
71-
msgstr ""
81+
msgstr "新 MARK 級別縮進的空格數。"
7282

7383
#: ../../library/pickletools.rst:70
7484
msgid ""
7585
"When multiple objects are disassembled, preserve memo between disassemblies."
76-
msgstr ""
86+
msgstr "當拆解多個物件時,會在拆解間保留備忘錄。"
7787

7888
#: ../../library/pickletools.rst:75
7989
msgid ""
8090
"When more than one pickle file are specified, print given preamble before "
8191
"each disassembly."
8292
msgstr ""
93+
"當指定多個 pickle 檔案時,會在每次拆解之前印出給定的一段序言 (preamble)。"
8394

8495
#: ../../library/pickletools.rst:81
8596
msgid "Programmatic Interface"
86-
msgstr ""
97+
msgstr "程式化介面"
8798

8899
#: ../../library/pickletools.rst:86
89100
msgid ""
@@ -97,6 +108,12 @@ msgid ""
97108
"short description. The value of *annotate* is used as a hint for the column "
98109
"where annotation should start."
99110
msgstr ""
111+
"將 pickle 的符號拆解 (symbolic disassembly) 輸出到類檔案物件 *out*,預設為 "
112+
"``sys.stdout``。*pickle* 可以是字串或類檔案物件。*memo* 可以是一個 Python 字"
113+
"典,將用作 pickle 的備忘錄;它可用於對同一 pickler 建立的多個 pickle 執行拆"
114+
"解。串流中由 ``MARK`` 操作碼指示的連續級別由 *indentlevel* 空格縮進。如果為 "
115+
"*annotate* 指定非零值,則輸出中的每個操作碼都會用簡短的描述進行註釋。"
116+
"*annotate* 的值用作為註釋之起始行提示。"
100117

101118
#: ../../library/pickletools.rst:97
102119
msgid "The *annotate* argument."
@@ -110,10 +127,16 @@ msgid ""
110127
"object, of the opcode's argument; *pos* is the position at which this opcode "
111128
"is located. *pickle* can be a string or a file-like object."
112129
msgstr ""
130+
"提供 pickle 中所有操作碼的一個 :term:`iterator`,回傳形式為 ``(opcode, arg, "
131+
"pos)`` 三元組序列。*opcode* 是 :class:`OpcodeInfo` 類別的實例;*arg* 是操作碼"
132+
"引數的解碼值(作為 Python 物件);*pos* 是該操作碼所在的位置。*pickle* 可以是"
133+
"字串或類檔案物件。"
113134

114135
#: ../../library/pickletools.rst:110
115136
msgid ""
116137
"Returns a new equivalent pickle string after eliminating unused ``PUT`` "
117138
"opcodes. The optimized pickle is shorter, takes less transmission time, "
118139
"requires less storage space, and unpickles more efficiently."
119140
msgstr ""
141+
"消除未使用的 ``PUT`` 操作碼後回傳一個新的等效 pickle 字串。最佳化後的 pickle "
142+
"更短、傳輸時間更少、需要更小的儲存空間,且 unpickle 效率也更高。"

0 commit comments

Comments
 (0)