1
- # SOME DESCRIPTIVE TITLE.
2
1
# Copyright (C) 2001-2022, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
3
#
6
- #, fuzzy
4
+ # Translators:
5
+ # Matt Wang <mattwang44@gmail.com>, 2022
7
6
msgid ""
8
7
msgstr ""
9
8
"Project-Id-Version : Python 3.11\n "
10
9
"Report-Msgid-Bugs-To : \n "
11
10
"POT-Creation-Date : 2022-10-15 20:43+0000\n "
12
- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
- "Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
14
- "Language-Team : LANGUAGE <LL@li.org>\n "
11
+ "PO-Revision-Date : 2022-11-18 01:56+0800\n "
12
+ "Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
13
+ "Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
+ "tw)\n "
15
15
"Language : zh_TW\n "
16
16
"MIME-Version : 1.0\n "
17
17
"Content-Type : text/plain; charset=UTF-8\n "
18
18
"Content-Transfer-Encoding : 8bit\n "
19
+ "X-Generator : Poedit 3.2\n "
19
20
20
21
#: ../../library/tomllib.rst:2
21
22
msgid ":mod:`tomllib` --- Parse TOML files"
@@ -31,6 +32,8 @@ msgid ""
31
32
"Language, `https://toml.io <https://toml.io/en/>`_). This module does not "
32
33
"support writing TOML."
33
34
msgstr ""
35
+ "此模組提供了剖析 TOML (Tom’s Obvious Minimal Language, `https://toml.io "
36
+ "<https://toml.io/en/>`_) 的一個介面,此模組並不支援寫入 TOML。"
34
37
35
38
#: ../../library/tomllib.rst:22
36
39
msgid ""
@@ -39,6 +42,9 @@ msgid ""
39
42
"familiar to users of the standard library :mod:`marshal` and :mod:`pickle` "
40
43
"modules."
41
44
msgstr ""
45
+ "`Tomli-W 套件 <https://pypi.org/project/tomli-w/>`__\\ 是一個 TOML 編寫器,可"
46
+ "以與此模組結合使用,以提供標準函式庫中 :mod:`marshal` 和 :mod:`pickle` 模組之"
47
+ "使用者所熟悉的寫入 API。"
42
48
43
49
#: ../../library/tomllib.rst:29
44
50
msgid ""
@@ -47,17 +53,22 @@ msgid ""
47
53
"recommended replacement for this module for editing already existing TOML "
48
54
"files."
49
55
msgstr ""
56
+ "`TOML 工具套件 <https://pypi.org/project/tomlkit/>`__\\ 是一個保留風格且具有"
57
+ "讀寫能力的 TOML 函式庫。若要編輯已存在的 TOML 文件,建議用它來替換此模組。"
50
58
51
59
#: ../../library/tomllib.rst:35
52
60
msgid "This module defines the following functions:"
53
- msgstr ""
61
+ msgstr "此模組定義了以下函式: "
54
62
55
63
#: ../../library/tomllib.rst:39
56
64
msgid ""
57
65
"Read a TOML file. The first argument should be a readable and binary file "
58
66
"object. Return a :class:`dict`. Convert TOML types to Python using this :ref:"
59
67
"`conversion table <toml-to-py-table>`."
60
68
msgstr ""
69
+ "讀取一個 TOML 檔案。第一個引數應為一個可讀取的二進制檔案物件。回傳一個 :"
70
+ "class:`dict`。用這個\\ :ref:`轉換表 <toml-to-py-table>`\\ 將 TOML 型別轉換成 "
71
+ "Python 的。"
61
72
62
73
#: ../../library/tomllib.rst:43
63
74
msgid ""
@@ -67,25 +78,32 @@ msgid ""
67
78
"Decimal`). The callable must not return a :class:`dict` or a :class:`list`, "
68
79
"else a :exc:`ValueError` is raised."
69
80
msgstr ""
81
+ "*parse_float* 會被呼叫於要解碼的每個 TOML 浮點數字串。預設情況下,這相當於 "
82
+ "``float(num_str)``。若有使用另一種資料型別或剖析器的 TOML 浮點數(例如 :"
83
+ "class:`decimal.Decimal`),這就派得上用場。可呼叫物件不得回傳 :class:`dict` "
84
+ "或 :class:`list`,否則會引發 :exc:`ValueError`。"
70
85
71
86
#: ../../library/tomllib.rst:49 ../../library/tomllib.rst:58
72
87
msgid "A :exc:`TOMLDecodeError` will be raised on an invalid TOML document."
73
- msgstr ""
88
+ msgstr "不合格的 TOML 文件會使得 :exc:`TOMLDecodeError` 被引發。 "
74
89
75
90
#: ../../library/tomllib.rst:54
76
91
msgid ""
77
92
"Load TOML from a :class:`str` object. Return a :class:`dict`. Convert TOML "
78
93
"types to Python using this :ref:`conversion table <toml-to-py-table>`. The "
79
94
"*parse_float* argument has the same meaning as in :func:`load`."
80
95
msgstr ""
96
+ "自一個 :class:`str` 物件匯入成 TOML。回傳一個 :class:`dict`。用這個\\ :ref:`"
97
+ "轉換表 <toml-to-py-table>`\\ 轉換 TOML 型別成 Python 的。\\ *parse_float* 引"
98
+ "數和 :func:`load` 中的相同。"
81
99
82
100
#: ../../library/tomllib.rst:61
83
101
msgid "The following exceptions are available:"
84
- msgstr ""
102
+ msgstr "以下為可用的例外: "
85
103
86
104
#: ../../library/tomllib.rst:65
87
105
msgid "Subclass of :exc:`ValueError`."
88
- msgstr ""
106
+ msgstr ":exc:`ValueError` 的子類別。 "
89
107
90
108
#: ../../library/tomllib.rst:69
91
109
msgid "Examples"
@@ -94,14 +112,20 @@ msgstr "範例"
94
112
#: ../../library/tomllib.rst:71
95
113
msgid "Parsing a TOML file::"
96
114
msgstr ""
115
+ "剖析一個 TOML 檔案:\n"
116
+ "\n"
117
+ "::"
97
118
98
119
#: ../../library/tomllib.rst:78
99
120
msgid "Parsing a TOML string::"
100
121
msgstr ""
122
+ "剖析一個 TOML 字串:\n"
123
+ "\n"
124
+ "::"
101
125
102
126
#: ../../library/tomllib.rst:91
103
127
msgid "Conversion Table"
104
- msgstr ""
128
+ msgstr "轉換表 "
105
129
106
130
#: ../../library/tomllib.rst:96
107
131
msgid "TOML"
@@ -141,7 +165,7 @@ msgstr "float"
141
165
142
166
#: ../../library/tomllib.rst:104
143
167
msgid "float (configurable with *parse_float*)"
144
- msgstr ""
168
+ msgstr "float(可透過 *parse_float* 調整) "
145
169
146
170
#: ../../library/tomllib.rst:106
147
171
msgid "boolean"
@@ -153,33 +177,34 @@ msgstr "bool"
153
177
154
178
#: ../../library/tomllib.rst:108
155
179
msgid "offset date-time"
156
- msgstr "offset date-time"
180
+ msgstr "偏移日期時間 ( offset date-time) "
157
181
158
182
#: ../../library/tomllib.rst:108
159
183
msgid ""
160
184
"datetime.datetime (``tzinfo`` attribute set to an instance of ``datetime."
161
185
"timezone``)"
162
186
msgstr ""
187
+ "datetime.datetime(設定 ``tzinfo`` 屬性為 ``datetime.timezone`` 的實例)"
163
188
164
189
#: ../../library/tomllib.rst:110
165
190
msgid "local date-time"
166
- msgstr "local date-time"
191
+ msgstr "本地日期時間 ( local date-time) "
167
192
168
193
#: ../../library/tomllib.rst:110
169
194
msgid "datetime.datetime (``tzinfo`` attribute set to ``None``)"
170
- msgstr ""
195
+ msgstr "datetime.datetime(設定 ``tzinfo`` 為 ``None``) "
171
196
172
197
#: ../../library/tomllib.rst:112
173
198
msgid "local date"
174
- msgstr "local date"
199
+ msgstr "本地日期 ( local date) "
175
200
176
201
#: ../../library/tomllib.rst:112
177
202
msgid "datetime.date"
178
203
msgstr "datetime.date"
179
204
180
205
#: ../../library/tomllib.rst:114
181
206
msgid "local time"
182
- msgstr "local time"
207
+ msgstr "本地時間 ( local time) "
183
208
184
209
#: ../../library/tomllib.rst:114
185
210
msgid "datetime.time"
0 commit comments