Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Translatelibrary/tomllib.po#359

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 1 commit intopython:3.11frommattwang44:library/tomllib
Feb 18, 2023
Merged
Changes fromall 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
59 changes: 42 additions & 17 deletionslibrary/tomllib.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2022, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
# Translators:
# Matt Wang <mattwang44@gmail.com>, 2022
msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: 2022-11-18 01:56+0800\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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.2\n"

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

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

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

#: ../../library/tomllib.rst:35
msgid "This module defines the following functions:"
msgstr ""
msgstr "此模組定義了以下函式:"

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

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

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

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

#: ../../library/tomllib.rst:61
msgid "The following exceptions are available:"
msgstr ""
msgstr "以下為可用的例外:"

#: ../../library/tomllib.rst:65
msgid "Subclass of :exc:`ValueError`."
msgstr ""
msgstr ":exc:`ValueError` 的子類別。"

#: ../../library/tomllib.rst:69
msgid "Examples"
Expand All@@ -94,14 +112,20 @@ msgstr "範例"
#: ../../library/tomllib.rst:71
msgid "Parsing a TOML file::"
msgstr ""
"剖析一個 TOML 檔案:\n"
"\n"
"::"

#: ../../library/tomllib.rst:78
msgid "Parsing a TOML string::"
msgstr ""
"剖析一個 TOML 字串:\n"
"\n"
"::"

#: ../../library/tomllib.rst:91
msgid "Conversion Table"
msgstr ""
msgstr "轉換表"

#: ../../library/tomllib.rst:96
msgid "TOML"
Expand DownExpand Up@@ -141,7 +165,7 @@ msgstr "float"

#: ../../library/tomllib.rst:104
msgid "float (configurable with *parse_float*)"
msgstr ""
msgstr "float(可透過 *parse_float* 調整)"

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

#: ../../library/tomllib.rst:108
msgid "offset date-time"
msgstr "offset date-time"
msgstr "偏移日期時間 (offset date-time)"

#: ../../library/tomllib.rst:108
msgid ""
"datetime.datetime (``tzinfo`` attribute set to an instance of ``datetime."
"timezone``)"
msgstr ""
"datetime.datetime(設定 ``tzinfo`` 屬性為 ``datetime.timezone`` 的實例)"

#: ../../library/tomllib.rst:110
msgid "local date-time"
msgstr "local date-time"
msgstr "本地日期時間 (local date-time)"

#: ../../library/tomllib.rst:110
msgid "datetime.datetime (``tzinfo`` attribute set to ``None``)"
msgstr ""
msgstr "datetime.datetime(設定 ``tzinfo`` 為 ``None``)"

#: ../../library/tomllib.rst:112
msgid "local date"
msgstr "local date"
msgstr "本地日期 (local date)"

#: ../../library/tomllib.rst:112
msgid "datetime.date"
msgstr "datetime.date"

#: ../../library/tomllib.rst:114
msgid "local time"
msgstr "local time"
msgstr "本地時間 (local time)"

#: ../../library/tomllib.rst:114
msgid "datetime.time"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp