Skip to content

Commit 40d0a90

Browse files
authored
Translate library/tomllib.po (#359)
1 parent a1f24ef commit 40d0a90

File tree

1 file changed

+42
-17
lines changed

1 file changed

+42
-17
lines changed

library/tomllib.po

+42-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
# SOME DESCRIPTIVE TITLE.
21
# Copyright (C) 2001-2022, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
4-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
53
#
6-
#, fuzzy
4+
# Translators:
5+
# Matt Wang <mattwang44@gmail.com>, 2022
76
msgid ""
87
msgstr ""
98
"Project-Id-Version: Python 3.11\n"
109
"Report-Msgid-Bugs-To: \n"
1110
"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"
1515
"Language: zh_TW\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
19+
"X-Generator: Poedit 3.2\n"
1920

2021
#: ../../library/tomllib.rst:2
2122
msgid ":mod:`tomllib` --- Parse TOML files"
@@ -31,6 +32,8 @@ msgid ""
3132
"Language, `https://toml.io <https://toml.io/en/>`_). This module does not "
3233
"support writing TOML."
3334
msgstr ""
35+
"此模組提供了剖析 TOML (Tom’s Obvious Minimal Language, `https://toml.io "
36+
"<https://toml.io/en/>`_) 的一個介面,此模組並不支援寫入 TOML。"
3437

3538
#: ../../library/tomllib.rst:22
3639
msgid ""
@@ -39,6 +42,9 @@ msgid ""
3942
"familiar to users of the standard library :mod:`marshal` and :mod:`pickle` "
4043
"modules."
4144
msgstr ""
45+
"`Tomli-W 套件 <https://pypi.org/project/tomli-w/>`__\\ 是一個 TOML 編寫器,可"
46+
"以與此模組結合使用,以提供標準函式庫中 :mod:`marshal` 和 :mod:`pickle` 模組之"
47+
"使用者所熟悉的寫入 API。"
4248

4349
#: ../../library/tomllib.rst:29
4450
msgid ""
@@ -47,17 +53,22 @@ msgid ""
4753
"recommended replacement for this module for editing already existing TOML "
4854
"files."
4955
msgstr ""
56+
"`TOML 工具套件 <https://pypi.org/project/tomlkit/>`__\\ 是一個保留風格且具有"
57+
"讀寫能力的 TOML 函式庫。若要編輯已存在的 TOML 文件,建議用它來替換此模組。"
5058

5159
#: ../../library/tomllib.rst:35
5260
msgid "This module defines the following functions:"
53-
msgstr ""
61+
msgstr "此模組定義了以下函式:"
5462

5563
#: ../../library/tomllib.rst:39
5664
msgid ""
5765
"Read a TOML file. The first argument should be a readable and binary file "
5866
"object. Return a :class:`dict`. Convert TOML types to Python using this :ref:"
5967
"`conversion table <toml-to-py-table>`."
6068
msgstr ""
69+
"讀取一個 TOML 檔案。第一個引數應為一個可讀取的二進制檔案物件。回傳一個 :"
70+
"class:`dict`。用這個\\ :ref:`轉換表 <toml-to-py-table>`\\ 將 TOML 型別轉換成 "
71+
"Python 的。"
6172

6273
#: ../../library/tomllib.rst:43
6374
msgid ""
@@ -67,25 +78,32 @@ msgid ""
6778
"Decimal`). The callable must not return a :class:`dict` or a :class:`list`, "
6879
"else a :exc:`ValueError` is raised."
6980
msgstr ""
81+
"*parse_float* 會被呼叫於要解碼的每個 TOML 浮點數字串。預設情況下,這相當於 "
82+
"``float(num_str)``。若有使用另一種資料型別或剖析器的 TOML 浮點數(例如 :"
83+
"class:`decimal.Decimal`),這就派得上用場。可呼叫物件不得回傳 :class:`dict` "
84+
"或 :class:`list`,否則會引發 :exc:`ValueError`。"
7085

7186
#: ../../library/tomllib.rst:49 ../../library/tomllib.rst:58
7287
msgid "A :exc:`TOMLDecodeError` will be raised on an invalid TOML document."
73-
msgstr ""
88+
msgstr "不合格的 TOML 文件會使得 :exc:`TOMLDecodeError` 被引發。"
7489

7590
#: ../../library/tomllib.rst:54
7691
msgid ""
7792
"Load TOML from a :class:`str` object. Return a :class:`dict`. Convert TOML "
7893
"types to Python using this :ref:`conversion table <toml-to-py-table>`. The "
7994
"*parse_float* argument has the same meaning as in :func:`load`."
8095
msgstr ""
96+
"自一個 :class:`str` 物件匯入成 TOML。回傳一個 :class:`dict`。用這個\\ :ref:`"
97+
"轉換表 <toml-to-py-table>`\\ 轉換 TOML 型別成 Python 的。\\ *parse_float* 引"
98+
"數和 :func:`load` 中的相同。"
8199

82100
#: ../../library/tomllib.rst:61
83101
msgid "The following exceptions are available:"
84-
msgstr ""
102+
msgstr "以下為可用的例外:"
85103

86104
#: ../../library/tomllib.rst:65
87105
msgid "Subclass of :exc:`ValueError`."
88-
msgstr ""
106+
msgstr ":exc:`ValueError` 的子類別。"
89107

90108
#: ../../library/tomllib.rst:69
91109
msgid "Examples"
@@ -94,14 +112,20 @@ msgstr "範例"
94112
#: ../../library/tomllib.rst:71
95113
msgid "Parsing a TOML file::"
96114
msgstr ""
115+
"剖析一個 TOML 檔案:\n"
116+
"\n"
117+
"::"
97118

98119
#: ../../library/tomllib.rst:78
99120
msgid "Parsing a TOML string::"
100121
msgstr ""
122+
"剖析一個 TOML 字串:\n"
123+
"\n"
124+
"::"
101125

102126
#: ../../library/tomllib.rst:91
103127
msgid "Conversion Table"
104-
msgstr ""
128+
msgstr "轉換表"
105129

106130
#: ../../library/tomllib.rst:96
107131
msgid "TOML"
@@ -141,7 +165,7 @@ msgstr "float"
141165

142166
#: ../../library/tomllib.rst:104
143167
msgid "float (configurable with *parse_float*)"
144-
msgstr ""
168+
msgstr "float(可透過 *parse_float* 調整)"
145169

146170
#: ../../library/tomllib.rst:106
147171
msgid "boolean"
@@ -153,33 +177,34 @@ msgstr "bool"
153177

154178
#: ../../library/tomllib.rst:108
155179
msgid "offset date-time"
156-
msgstr "offset date-time"
180+
msgstr "偏移日期時間 (offset date-time)"
157181

158182
#: ../../library/tomllib.rst:108
159183
msgid ""
160184
"datetime.datetime (``tzinfo`` attribute set to an instance of ``datetime."
161185
"timezone``)"
162186
msgstr ""
187+
"datetime.datetime(設定 ``tzinfo`` 屬性為 ``datetime.timezone`` 的實例)"
163188

164189
#: ../../library/tomllib.rst:110
165190
msgid "local date-time"
166-
msgstr "local date-time"
191+
msgstr "本地日期時間 (local date-time)"
167192

168193
#: ../../library/tomllib.rst:110
169194
msgid "datetime.datetime (``tzinfo`` attribute set to ``None``)"
170-
msgstr ""
195+
msgstr "datetime.datetime(設定 ``tzinfo`` 為 ``None``)"
171196

172197
#: ../../library/tomllib.rst:112
173198
msgid "local date"
174-
msgstr "local date"
199+
msgstr "本地日期 (local date)"
175200

176201
#: ../../library/tomllib.rst:112
177202
msgid "datetime.date"
178203
msgstr "datetime.date"
179204

180205
#: ../../library/tomllib.rst:114
181206
msgid "local time"
182-
msgstr "local time"
207+
msgstr "本地時間 (local time)"
183208

184209
#: ../../library/tomllib.rst:114
185210
msgid "datetime.time"

0 commit comments

Comments
 (0)