Skip to content

Translate library/__future__.po #574

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 12, 2023
Merged
Changes from all 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
78 changes: 54 additions & 24 deletions library/__future__.po
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2022, Python Software Foundation
# Copyright (C) 2001-2023, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Matt Wang <[email protected]>, 2023
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-21 17:35+0000\n"
"PO-Revision-Date: 2016-01-31 07:12+0000\n"
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
"PO-Revision-Date: 2023-08-11 02:12+0000\n"
"Last-Translator: Matt Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
Expand All @@ -20,28 +20,31 @@ msgstr ""

#: ../../library/__future__.rst:2
msgid ":mod:`__future__` --- Future statement definitions"
msgstr ""
msgstr ":mod:`__future__` --- Future 陳述式定義"

#: ../../library/__future__.rst:7
msgid "**Source code:** :source:`Lib/__future__.py`"
msgstr "**原始碼:**\\ :source:`Lib/__future__.py`"

#: ../../library/__future__.rst:11
msgid ":mod:`__future__` is a real module, and serves three purposes:"
msgstr ""
msgstr ":mod:`__future__` 是一個真正的模組,有三個用途:"

#: ../../library/__future__.rst:13
msgid ""
"To avoid confusing existing tools that analyze import statements and expect "
"to find the modules they're importing."
msgstr ""
msgstr "為了避免混淆分析引入陳述式並預期要找到它們正在引入之模組的現有工具。"

#: ../../library/__future__.rst:16
msgid ""
"To ensure that :ref:`future statements <future>` run under releases prior to "
"2.1 at least yield runtime exceptions (the import of :mod:`__future__` will "
"fail, because there was no module of that name prior to 2.1)."
msgstr ""
"確保 :ref:`future 陳述式 <future>`\\ 在 2.1 之前的版本中運行至少會產生 "
"runtime 例外( :mod:`__future__` 的引入將會失敗,因為 2.1 之前沒有該名稱的模"
"組)。"

#: ../../library/__future__.rst:20
msgid ""
Expand All @@ -50,29 +53,35 @@ msgid ""
"and can be inspected programmatically via importing :mod:`__future__` and "
"examining its contents."
msgstr ""
"記錄何時出現不相容的變更,以及何時開始強制執行這些變更。這是一種可執行文件的"
"形式,可以透過引入 :mod:`__future__` 並檢查其內容以程式化的方式進行檢查。"

#: ../../library/__future__.rst:25
msgid "Each statement in :file:`__future__.py` is of the form::"
msgstr ""
msgstr ":file:`__future__.py` 中的每個陳述式的形式如下: ::"

#: ../../library/__future__.rst:31
msgid ""
"where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both "
"are 5-tuples of the same form as :data:`sys.version_info`::"
msgstr ""
"通常,*OptionalRelease* 會小於 *MandatoryRelease*,且兩者都是與 :data:`sys."
"version_info` 形式相同的 5 元組 (5-tuple): ::"

#: ../../library/__future__.rst:41
msgid ""
"*OptionalRelease* records the first release in which the feature was "
"accepted."
msgstr ""
msgstr "*OptionalRelease* 記錄該功能首次發布時的 Python 版本。"

#: ../../library/__future__.rst:43
msgid ""
"In the case of a *MandatoryRelease* that has not yet occurred, "
"*MandatoryRelease* predicts the release in which the feature will become "
"part of the language."
msgstr ""
"如果 *MandatoryRelease* 尚未發布,*MandatoryRelease* 會預測該功能將成為該語言"
"一部分的版本。"

#: ../../library/__future__.rst:47
msgid ""
Expand All @@ -81,18 +90,22 @@ msgid ""
"statement to use the feature in question, but may continue to use such "
"imports."
msgstr ""
"否則 *MandatoryRelease* 會記錄該功能是何時成為語言的一部分;在該版本或之後的"
"版本中,模組不再需要 future 聲明來使用相關功能,但可以繼續使用此種引入方式。"

#: ../../library/__future__.rst:51
msgid ""
"*MandatoryRelease* may also be ``None``, meaning that a planned feature got "
"dropped."
msgstr ""
msgstr "*MandatoryRelease* 也可能是 ``None``,這意味著計劃中的功能被丟棄。"

#: ../../library/__future__.rst:54
msgid ""
"Instances of class :class:`_Feature` have two corresponding methods, :meth:"
"`getOptionalRelease` and :meth:`getMandatoryRelease`."
msgstr ""
":class:`_Feature` 類別的實例有兩個相應的方法::meth:`getOptionalRelease` 和 :"
"meth:`getMandatoryRelease`。"

#: ../../library/__future__.rst:57
msgid ""
Expand All @@ -101,29 +114,34 @@ msgid ""
"dynamically compiled code. This flag is stored in the :attr:`compiler_flag` "
"attribute on :class:`_Feature` instances."
msgstr ""
"*CompilerFlag* 是(位元欄位 (bitfield))旗標,應在第四個引數中傳遞給內建函"
"式 :func:`compile` 以在動態編譯的程式碼中啟用該功能。此旗標存儲在 :class:"
"`_Feature` 實例上的 :attr:`compiler_flag` 屬性中。"

#: ../../library/__future__.rst:62
msgid ""
"No feature description will ever be deleted from :mod:`__future__`. Since "
"its introduction in Python 2.1 the following features have found their way "
"into the language using this mechanism:"
msgstr ""
"不會從 :mod:`__future__` 中刪除任何功能描述。自從在 Python 2.1 中引入以來,以"
"下功能已透過這種機制引入到該語言中:"

#: ../../library/__future__.rst:67
msgid "feature"
msgstr ""
msgstr "功能"

#: ../../library/__future__.rst:67
msgid "optional in"
msgstr ""
msgstr "可選的版本"

#: ../../library/__future__.rst:67
msgid "mandatory in"
msgstr ""
msgstr "強制性的版本"

#: ../../library/__future__.rst:67
msgid "effect"
msgstr ""
msgstr "影響"

#: ../../library/__future__.rst:69
msgid "nested_scopes"
Expand All @@ -139,11 +157,11 @@ msgstr "2.2"

#: ../../library/__future__.rst:69
msgid ":pep:`227`: *Statically Nested Scopes*"
msgstr ""
msgstr ":pep:`227`: *靜態巢狀作用域 (Statically Nested Scopes)*"

#: ../../library/__future__.rst:72
msgid "generators"
msgstr ""
msgstr "generators"

#: ../../library/__future__.rst:72
msgid "2.2.0a1"
Expand All @@ -155,11 +173,11 @@ msgstr "2.3"

#: ../../library/__future__.rst:72
msgid ":pep:`255`: *Simple Generators*"
msgstr ""
msgstr ":pep:`255`: *簡單產生器 (Simple Generators)*"

#: ../../library/__future__.rst:75
msgid "division"
msgstr ""
msgstr "division"

#: ../../library/__future__.rst:75
msgid "2.2.0a2"
Expand All @@ -172,7 +190,7 @@ msgstr "3.0"

#: ../../library/__future__.rst:75
msgid ":pep:`238`: *Changing the Division Operator*"
msgstr ""
msgstr ":pep:`238`: *更改除法運算子 (Changing the Division Operator)*"

#: ../../library/__future__.rst:78
msgid "absolute_import"
Expand All @@ -185,6 +203,8 @@ msgstr "2.5.0a1"
#: ../../library/__future__.rst:78
msgid ":pep:`328`: *Imports: Multi-Line and Absolute/Relative*"
msgstr ""
":pep:`328`: *引入:多列與絕對/相對 (Imports: Multi-Line and Absolute/"
"Relative)*"

#: ../../library/__future__.rst:81
msgid "with_statement"
Expand All @@ -196,7 +216,7 @@ msgstr "2.6"

#: ../../library/__future__.rst:81
msgid ":pep:`343`: *The \"with\" Statement*"
msgstr ""
msgstr ":pep:`343`: *\"with\" 陳述式 (The \"with\" Statement)*"

#: ../../library/__future__.rst:84
msgid "print_function"
Expand All @@ -208,7 +228,7 @@ msgstr "2.6.0a2"

#: ../../library/__future__.rst:84
msgid ":pep:`3105`: *Make print a function*"
msgstr ""
msgstr ":pep:`3105`: *使 print 成為一個函式 (Make print a function)*"

#: ../../library/__future__.rst:87
msgid "unicode_literals"
Expand All @@ -217,6 +237,7 @@ msgstr "unicode_literals"
#: ../../library/__future__.rst:87
msgid ":pep:`3112`: *Bytes literals in Python 3000*"
msgstr ""
":pep:`3112`: *Python 3000 中的位元組字面值 (Bytes literals in Python 3000)*"

#: ../../library/__future__.rst:90
msgid "generator_stop"
Expand All @@ -233,10 +254,12 @@ msgstr "3.7"
#: ../../library/__future__.rst:90
msgid ":pep:`479`: *StopIteration handling inside generators*"
msgstr ""
":pep:`479`: *產生器內部的 StopIteration 處理 (StopIteration handling inside "
"generators)*"

#: ../../library/__future__.rst:93
msgid "annotations"
msgstr ""
msgstr "annotations"

#: ../../library/__future__.rst:93
msgid "3.7.0b1"
Expand All @@ -248,7 +271,7 @@ msgstr "TBD [1]_"

#: ../../library/__future__.rst:93
msgid ":pep:`563`: *Postponed evaluation of annotations*"
msgstr ""
msgstr ":pep:`563`: *推遲對註釋的求值 (Postponed evaluation of annotations)*"

#: ../../library/__future__.rst:100
msgid ""
Expand All @@ -260,11 +283,18 @@ msgid ""
"[email protected]/message/VIZEBX5EYMSYIJNDBF6DMUMZOCWHARSO/>`__). No "
"final decision has been made yet. See also :pep:`563` and :pep:`649`."
msgstr ""
"之前原本計劃在 Python 3.10 中強制使用 ``from __future__ import "
"annotations``,但 Python 指導委員會 (Python Steering Council) 兩次決議推遲這"
"一變動(`Python 3.10 的公告 <https://mail.python.org/archives/list/python-"
"[email protected]/message/CLVXXPQ2T2LQ5MP2Y53VVQFCXYWQJHKZ/>`__;`Python 3.11 的"
"公告 <https://mail.python.org/archives/list/[email protected]/message/"
"VIZEBX5EYMSYIJNDBF6DMUMZOCWHARSO/>`__)。目前還尚未做出決定。另請參閱 :pep:"
"`563` 和 :pep:`649`。"

#: ../../library/__future__.rst:110
msgid ":ref:`future`"
msgstr ":ref:`future`"

#: ../../library/__future__.rst:111
msgid "How the compiler treats future imports."
msgstr ""
msgstr "編譯器如何處理 future 引入。"