From 430dd5b4844232fa588bf66e0002df10a1abbc61 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Mon, 11 Nov 2024 02:18:35 +0800 Subject: [PATCH] fix: resolve fuzzy entries --- c-api/arg.po | 2 +- c-api/init_config.po | 14 +-- deprecations/index.po | 6 +- deprecations/pending-removal-in-3.14.po | 13 --- deprecations/pending-removal-in-3.16.po | 9 +- howto/enum.po | 4 +- howto/free-threading-python.po | 6 +- howto/functional.po | 6 +- howto/regex.po | 4 +- howto/sockets.po | 2 +- howto/timerfd.po | 4 +- library/codecs.po | 7 +- library/dis.po | 4 +- library/email.message.po | 2 +- library/glob.po | 11 +- library/importlib.metadata.po | 2 +- library/ipaddress.po | 8 +- library/pathlib.po | 138 ++++++++++-------------- library/re.po | 2 +- library/selectors.po | 2 +- library/sqlite3.po | 2 +- library/stdtypes.po | 35 +++--- library/time.po | 4 +- license.po | 88 +++++++-------- reference/datamodel.po | 66 ++++-------- reference/expressions.po | 4 +- using/configure.po | 4 +- using/ios.po | 9 +- using/mac.po | 2 +- using/windows.po | 2 +- whatsnew/2.2.po | 96 ++++++++++++++++- whatsnew/3.12.po | 6 +- whatsnew/3.13.po | 19 ++-- 33 files changed, 294 insertions(+), 289 deletions(-) diff --git a/c-api/arg.po b/c-api/arg.po index f62175c411..6e8339452f 100644 --- a/c-api/arg.po +++ b/c-api/arg.po @@ -820,7 +820,7 @@ msgstr "" #: ../../c-api/arg.rst:465 msgid "Example::" -msgstr "" +msgstr "舉例來說: ::" #: ../../c-api/arg.rst:467 msgid "" diff --git a/c-api/init_config.po b/c-api/init_config.po index 92b1a1a024..5293b616d7 100644 --- a/c-api/init_config.po +++ b/c-api/init_config.po @@ -2171,7 +2171,7 @@ msgstr "" #: ../../c-api/init_config.rst:1556 msgid "If :c:member:`~PyConfig.isolated` is zero:" -msgstr "" +msgstr "如果 :c:member:`~PyConfig.isolated` 為零:" #: ../../c-api/init_config.rst:1558 msgid "" @@ -2212,7 +2212,7 @@ msgstr "" #: ../../c-api/init_config.rst:1574 msgid "``pybuilddir.txt`` (Unix only)" -msgstr "" +msgstr "``pybuilddir.txt``\\ (僅限 Unix)" #: ../../c-api/init_config.rst:1576 msgid "If a ``._pth`` file is present:" @@ -2250,7 +2250,7 @@ msgstr "" #: ../../c-api/init_config.rst:1594 msgid "See also :c:member:`PyConfig.orig_argv` member." -msgstr "" +msgstr "也請參與 :c:member:`PyConfig.orig_argv` 成員。" #: ../../c-api/init_config.rst:1598 msgid "Multi-Phase Initialization Private Provisional API" @@ -2403,14 +2403,8 @@ msgstr "" #: ../../c-api/init_config.rst:558 msgid "main()" -msgstr "" +msgstr "main()" #: ../../c-api/init_config.rst:558 msgid "argv (in module sys)" msgstr "" - -#~ msgid "Py_RunMain()" -#~ msgstr "Py_RunMain()" - -#~ msgid "Command line arguments: :data:`sys.argv`." -#~ msgstr "命令列引數::data:`sys.argv`。" diff --git a/deprecations/index.po b/deprecations/index.po index 8be654912c..9d2c3b3c16 100644 --- a/deprecations/index.po +++ b/deprecations/index.po @@ -433,12 +433,10 @@ msgstr "" "getmarkers` 方法自 Python 3.13 被棄用。" #: ../../deprecations/pending-removal-in-3.16.rst:2 -#, fuzzy msgid "Pending removal in Python 3.16" msgstr "Python 3.16 中待移除的項目" #: ../../deprecations/pending-removal-in-3.16.rst:6 -#, fuzzy msgid "" "Setting :attr:`~module.__loader__` on a module while failing to set :attr:" "`__spec__.loader ` is deprecated. In " @@ -446,8 +444,8 @@ msgid "" "consideration by the import system or the standard library." msgstr "" "在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader " -"` 的做法已被棄用。在 Python 3.14 中," -"引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__` 。" +"` 的做法將於 Python 3.16 被棄用。在 " +"Python 3.16 中,引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__`。" #: ../../deprecations/pending-removal-in-3.16.rst:11 msgid ":mod:`array`:" diff --git a/deprecations/pending-removal-in-3.14.po b/deprecations/pending-removal-in-3.14.po index 8c230aa5f4..c471f0275a 100644 --- a/deprecations/pending-removal-in-3.14.po +++ b/deprecations/pending-removal-in-3.14.po @@ -248,16 +248,3 @@ msgid "" msgstr "" ":mod:`urllib`::class:`!urllib.parse.Quoter` 已被棄用:它並非預期的公開 API。" "(由 Gregory P. Smith 於 :gh:`88168` 貢獻。)" - -#~ msgid "The import system:" -#~ msgstr "引入系統 (import system):" - -#~ msgid "" -#~ "Setting :attr:`~module.__loader__` on a module while failing to set :attr:" -#~ "`__spec__.loader ` is deprecated. " -#~ "In Python 3.14, :attr:`!__loader__` will cease to be set or taken into " -#~ "consideration by the import system or the standard library." -#~ msgstr "" -#~ "在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader " -#~ "` 的做法已被棄用。在 Python 3.14 " -#~ "中,引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__` 。" diff --git a/deprecations/pending-removal-in-3.16.po b/deprecations/pending-removal-in-3.16.po index c396734863..eec8eb350d 100644 --- a/deprecations/pending-removal-in-3.16.po +++ b/deprecations/pending-removal-in-3.16.po @@ -16,13 +16,12 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #: ../../deprecations/pending-removal-in-3.16.rst:2 -#, fuzzy msgid "Pending removal in Python 3.16" msgstr "Python 3.16 中待移除的項目" #: ../../deprecations/pending-removal-in-3.16.rst:4 msgid "The import system:" -msgstr "" +msgstr "引入系統 (import system):" #: ../../deprecations/pending-removal-in-3.16.rst:6 msgid "" @@ -31,6 +30,9 @@ msgid "" "Python 3.16, :attr:`!__loader__` will cease to be set or taken into " "consideration by the import system or the standard library." msgstr "" +"在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader " +"` 的做法將於 Python 3.16 被棄用。在 " +"Python 3.16 中,引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__`。" #: ../../deprecations/pending-removal-in-3.16.rst:11 msgid ":mod:`array`:" @@ -47,9 +49,8 @@ msgstr "" "來取代 Unicode 字元。" #: ../../deprecations/pending-removal-in-3.16.rst:19 -#, fuzzy msgid ":mod:`asyncio`:" -msgstr ":mod:`sys`:" +msgstr ":mod:`asyncio`:" #: ../../deprecations/pending-removal-in-3.16.rst:21 msgid "" diff --git a/howto/enum.po b/howto/enum.po index 668b2723f2..c4f912e5cb 100644 --- a/howto/enum.po +++ b/howto/enum.po @@ -801,7 +801,7 @@ msgstr "" #: ../../howto/enum.rst:415 msgid "Then::" -msgstr "" +msgstr "然後: ::" #: ../../howto/enum.rst:417 msgid "" @@ -1238,7 +1238,7 @@ msgstr "" #: ../../howto/enum.rst:664 msgid "IntEnum" -msgstr "" +msgstr "IntEnum" #: ../../howto/enum.rst:666 msgid "" diff --git a/howto/free-threading-python.po b/howto/free-threading-python.po index 5578166a5d..519f70b2e5 100644 --- a/howto/free-threading-python.po +++ b/howto/free-threading-python.po @@ -121,11 +121,11 @@ msgstr "" #: ../../howto/free-threading-python.rst:70 msgid "https://py-free-threading.github.io/tracking/" -msgstr "" +msgstr "https://py-free-threading.github.io/tracking/" #: ../../howto/free-threading-python.rst:71 msgid "https://hugovk.github.io/free-threaded-wheels/" -msgstr "" +msgstr "https://hugovk.github.io/free-threaded-wheels/" #: ../../howto/free-threading-python.rst:75 msgid "Thread safety" @@ -229,7 +229,7 @@ msgstr "" #: ../../howto/free-threading-python.rst:135 msgid "Iterators" -msgstr "" +msgstr "疊代器" #: ../../howto/free-threading-python.rst:137 msgid "" diff --git a/howto/functional.po b/howto/functional.po index f55926dec9..a145631968 100644 --- a/howto/functional.po +++ b/howto/functional.po @@ -291,7 +291,7 @@ msgstr "" #: ../../howto/functional.rst:180 msgid "Iterators" -msgstr "" +msgstr "疊代器" #: ../../howto/functional.rst:182 msgid "" @@ -668,7 +668,7 @@ msgstr "" #: ../../howto/functional.rst:439 msgid "Generators" -msgstr "" +msgstr "產生器" #: ../../howto/functional.rst:441 msgid "" @@ -1982,7 +1982,7 @@ msgstr "https://en.wikipedia.org/wiki/Currying: currying 概念的條目。" #: ../../howto/functional.rst:1233 msgid "Python-specific" -msgstr "" +msgstr "Python 特有的" #: ../../howto/functional.rst:1235 msgid "" diff --git a/howto/regex.po b/howto/regex.po index 825d7f2aff..42467d34b9 100644 --- a/howto/regex.po +++ b/howto/regex.po @@ -661,7 +661,7 @@ msgstr "" #: ../../howto/regex.rst:363 ../../howto/regex.rst:417 #: ../../howto/regex.rst:1065 msgid "Method/Attribute" -msgstr "" +msgstr "方法/屬性" #: ../../howto/regex.rst:363 ../../howto/regex.rst:417 #: ../../howto/regex.rst:1065 @@ -1005,7 +1005,7 @@ msgstr "" #: ../../howto/regex.rst:538 msgid "Flag" -msgstr "" +msgstr "旗標" #: ../../howto/regex.rst:538 msgid "Meaning" diff --git a/howto/sockets.po b/howto/sockets.po index 982fa34fd1..168504a99e 100644 --- a/howto/sockets.po +++ b/howto/sockets.po @@ -50,7 +50,7 @@ msgstr "" #: ../../howto/sockets.rst:20 msgid "Sockets" -msgstr "" +msgstr "Sockets" #: ../../howto/sockets.rst:22 msgid "" diff --git a/howto/timerfd.po b/howto/timerfd.po index 27b4768a58..dd737358de 100644 --- a/howto/timerfd.po +++ b/howto/timerfd.po @@ -27,7 +27,7 @@ msgstr "" #: ../../howto/timerfd.rst:7 msgid "1.13" -msgstr "" +msgstr "1.13" #: ../../howto/timerfd.rst:9 msgid "" @@ -36,7 +36,7 @@ msgstr "" #: ../../howto/timerfd.rst:13 msgid "Examples" -msgstr "" +msgstr "範例" #: ../../howto/timerfd.rst:15 msgid "" diff --git a/library/codecs.po b/library/codecs.po index 5ccfe0b8b7..90de1fd8dd 100644 --- a/library/codecs.po +++ b/library/codecs.po @@ -1667,9 +1667,8 @@ msgid "cp932" msgstr "cp932" #: ../../library/codecs.rst:1135 -#, fuzzy msgid "932, ms932, mskanji, ms-kanji, windows-31j" -msgstr "932, ms932, mskanji, ms-kanji" +msgstr "932, ms932, mskanji, ms-kanji, windows-31j" #: ../../library/codecs.rst:1135 ../../library/codecs.rst:1171 #: ../../library/codecs.rst:1173 ../../library/codecs.rst:1175 @@ -1883,7 +1882,7 @@ msgstr "gb18030-2000" #: ../../library/codecs.rst:1190 msgid "hz" -msgstr "" +msgstr "hz" #: ../../library/codecs.rst:1190 msgid "hzgb, hz-gb, hz-gb-2312" @@ -2047,7 +2046,7 @@ msgstr "iso-8859-11, thai" #: ../../library/codecs.rst:1232 msgid "Thai languages" -msgstr "" +msgstr "泰語" #: ../../library/codecs.rst:1234 msgid "iso8859_13" diff --git a/library/dis.po b/library/dis.po index 3b94c682dc..6cf423905f 100644 --- a/library/dis.po +++ b/library/dis.po @@ -1970,11 +1970,11 @@ msgstr "" #: ../../library/dis.rst:1743 ../../library/dis.rst:1797 msgid "Operand" -msgstr "" +msgstr "運算元" #: ../../library/dis.rst:1743 ../../library/dis.rst:1797 msgid "Description" -msgstr "" +msgstr "描述" #: ../../library/dis.rst:1745 msgid "``INTRINSIC_1_INVALID``" diff --git a/library/email.message.po b/library/email.message.po index 49155f42d7..6be5abfbdc 100644 --- a/library/email.message.po +++ b/library/email.message.po @@ -28,7 +28,7 @@ msgstr "**原始碼:**\\ :source:`Lib/email/message.py`" #: ../../library/email.message.rst:14 msgid "[1]_" -msgstr "" +msgstr "[1]_" #: ../../library/email.message.rst:16 msgid "" diff --git a/library/glob.po b/library/glob.po index 08c7f860d9..287f0efe19 100644 --- a/library/glob.po +++ b/library/glob.po @@ -186,7 +186,7 @@ msgstr "" #: ../../library/glob.rst:131 msgid "For example:" -msgstr "" +msgstr "舉例來說:" #: ../../library/glob.rst:142 msgid "" @@ -221,10 +221,9 @@ msgstr "" #: ../../library/glob.rst:165 msgid "Examples" -msgstr "" +msgstr "範例" #: ../../library/glob.rst:167 -#, fuzzy msgid "" "Consider a directory containing the following files: :file:`1.gif`, :file:`2." "txt`, :file:`card.gif` and a subdirectory :file:`sub` which contains only " @@ -285,10 +284,9 @@ msgstr "" "['.card.gif']" #: ../../library/glob.rst:196 -#, fuzzy msgid "" "The :mod:`fnmatch` module offers shell-style filename (not path) expansion." -msgstr "Shell 風格檔案名(不是路徑)的擴展" +msgstr ":mod:`fnmatch` 模組提供了 shell 風格檔案名(不是路徑)的擴展" #: ../../library/glob.rst:199 msgid "The :mod:`pathlib` module offers high-level path objects." @@ -333,6 +331,3 @@ msgstr ". (點)" #: ../../library/glob.rst:61 msgid "**" msgstr "**" - -#~ msgid "Module :mod:`fnmatch`" -#~ msgstr ":mod:`fnmatch` 模組" diff --git a/library/importlib.metadata.po b/library/importlib.metadata.po index aef1c12901..19f0cfe625 100644 --- a/library/importlib.metadata.po +++ b/library/importlib.metadata.po @@ -72,7 +72,7 @@ msgstr "" #: ../../library/importlib.metadata.rst:55 msgid "https://importlib-metadata.readthedocs.io/" -msgstr "" +msgstr "https://importlib-metadata.readthedocs.io/" #: ../../library/importlib.metadata.rst:56 msgid "" diff --git a/library/ipaddress.po b/library/ipaddress.po index a5c2cc8284..f168829f23 100644 --- a/library/ipaddress.po +++ b/library/ipaddress.po @@ -480,7 +480,7 @@ msgstr "" #: ../../library/ipaddress.rst:405 ../../library/ipaddress.rst:789 #: ../../library/ipaddress.rst:925 msgid "Operators" -msgstr "" +msgstr "運算子" #: ../../library/ipaddress.rst:407 msgid "" @@ -491,7 +491,7 @@ msgstr "" #: ../../library/ipaddress.rst:413 msgid "Comparison operators" -msgstr "" +msgstr "比較運算子" #: ../../library/ipaddress.rst:415 msgid "" @@ -526,7 +526,7 @@ msgstr "" #: ../../library/ipaddress.rst:432 msgid "Arithmetic operators" -msgstr "" +msgstr "算術運算子" #: ../../library/ipaddress.rst:434 msgid "" @@ -879,7 +879,7 @@ msgstr "" #: ../../library/ipaddress.rst:804 msgid "Iteration" -msgstr "" +msgstr "疊代" #: ../../library/ipaddress.rst:806 msgid "" diff --git a/library/pathlib.po b/library/pathlib.po index ffd0c4ac4f..4db35f669b 100644 --- a/library/pathlib.po +++ b/library/pathlib.po @@ -23,9 +23,8 @@ msgid ":mod:`!pathlib` --- Object-oriented filesystem paths" msgstr ":mod:`!pathlib` --- 物件導向檔案系統路徑" #: ../../library/pathlib.rst:9 -#, fuzzy msgid "**Source code:** :source:`Lib/pathlib/`" -msgstr "**原始碼:**\\ :source:`Lib/pathlib.py`" +msgstr "**原始碼:**\\ :source:`Lib/pathlib/`" #: ../../library/pathlib.rst:15 msgid "" @@ -188,9 +187,8 @@ msgstr "" "'#!/bin/bash\\n'" #: ../../library/pathlib.rst:97 -#, fuzzy msgid "Exceptions" -msgstr "operations(操作)" +msgstr "例外" #: ../../library/pathlib.rst:101 msgid "" @@ -864,9 +862,8 @@ msgstr "" "''" #: ../../library/pathlib.rst:447 -#, fuzzy msgid "The last dot-separated portion of the final component, if any::" -msgstr "若存在則為最後的路徑組成的檔案副檔名: ::" +msgstr "以點分隔路徑的最後一個部分(如存在): ::" #: ../../library/pathlib.rst:449 msgid "" @@ -885,14 +882,12 @@ msgstr "" "''" #: ../../library/pathlib.rst:456 -#, fuzzy msgid "This is commonly called the file extension." -msgstr "路徑檔案副檔名的串列: ::" +msgstr "這通常被稱為檔案副檔名。" #: ../../library/pathlib.rst:460 -#, fuzzy msgid "A list of the path's suffixes, often called file extensions::" -msgstr "路徑檔案副檔名的串列: ::" +msgstr "一個路徑後綴 (suffix) 的串列,通常被稱為檔案副檔名: ::" #: ../../library/pathlib.rst:462 msgid "" @@ -912,7 +907,7 @@ msgstr "" #: ../../library/pathlib.rst:472 msgid "The final path component, without its suffix::" -msgstr "最後的路徑組成,不包括後綴 (suffix): ::" +msgstr "最後的路徑組成,不包括後綴: ::" #: ../../library/pathlib.rst:474 msgid "" @@ -1054,16 +1049,14 @@ msgstr "" "PureWindowsPath('c:/Program Files')" #: ../../library/pathlib.rst:568 -#, fuzzy msgid "" "Match this path against the provided glob-style pattern. Return ``True`` if " "matching is successful, ``False`` otherwise. For example::" msgstr "" "將路徑與 glob 形式的樣式 (glob-style pattern) 做比對。如果比對成功則回傳 " -"``True``,否則回傳 ``False``。" +"``True``,否則回傳 ``False``,例如: ::" #: ../../library/pathlib.rst:571 -#, fuzzy msgid "" ">>> PurePath('a/b.py').full_match('a/*.py')\n" "True\n" @@ -1074,12 +1067,14 @@ msgid "" ">>> PurePath('/a/b/c.py').full_match('**/*.py')\n" "True" msgstr "" -">>> PurePath('a/b.py').match('*.py')\n" +">>> PurePath('a/b.py').full_match('a/*.py')\n" "True\n" -">>> PurePath('/a/b/c.py').match('b/*.py')\n" +">>> PurePath('a/b.py').full_match('*.py')\n" +"False\n" +">>> PurePath('/a/b/c.py').full_match('/a/**')\n" "True\n" -">>> PurePath('/a/b/c.py').match('a/*.py')\n" -"False" +">>> PurePath('/a/b/c.py').full_match('**/*.py')\n" +"True" #: ../../library/pathlib.rst:581 ../../library/pathlib.rst:1291 msgid ":ref:`pathlib-pattern-language` documentation." @@ -1090,16 +1085,15 @@ msgid "As with other methods, case-sensitivity follows platform defaults::" msgstr "像其它方法一樣,是否區分大小寫會遵循平台的預設行為: ::" #: ../../library/pathlib.rst:585 -#, fuzzy msgid "" ">>> PurePosixPath('b.py').full_match('*.PY')\n" "False\n" ">>> PureWindowsPath('b.py').full_match('*.PY')\n" "True" msgstr "" -">>> PurePosixPath('b.py').match('*.PY')\n" +">>> PurePosixPath('b.py').full_match('*.PY')\n" "False\n" -">>> PureWindowsPath('b.py').match('*.PY')\n" +">>> PureWindowsPath('b.py').full_match('*.PY')\n" "True" #: ../../library/pathlib.rst:590 @@ -1108,13 +1102,12 @@ msgid "" msgstr "將 *case_sensitive* 設定成 ``True`` 或 ``False`` 會覆蓋這個行為。" #: ../../library/pathlib.rst:597 -#, fuzzy msgid "" "Match this path against the provided non-recursive glob-style pattern. " "Return ``True`` if matching is successful, ``False`` otherwise." msgstr "" -"將路徑與 glob 形式的樣式 (glob-style pattern) 做比對。如果比對成功則回傳 " -"``True``,否則回傳 ``False``。" +"將路徑與非遞迴 glob 形式的樣式 (glob-style pattern) 做比對。如果比對成功則回" +"傳 ``True``,否則回傳 ``False``。" #: ../../library/pathlib.rst:600 msgid "" @@ -1478,7 +1471,6 @@ msgstr "" "你的應用程式導致漏洞或故障): ::" #: ../../library/pathlib.rst:802 -#, fuzzy msgid "" ">>> import os\n" ">>> os.name\n" @@ -1506,7 +1498,7 @@ msgstr "" " File \"\", line 1, in \n" " File \"pathlib.py\", line 798, in __new__\n" " % (cls.__name__,))\n" -"NotImplementedError: cannot instantiate 'WindowsPath' on your system" +"UnsupportedOperation: cannot instantiate 'WindowsPath' on your system" #: ../../library/pathlib.rst:816 msgid "" @@ -1536,12 +1528,11 @@ msgid "Return a new path object from parsing a 'file' URI. For example::" msgstr "" #: ../../library/pathlib.rst:835 -#, fuzzy msgid "" ">>> p = Path.from_uri('file:///etc/hosts')\n" "PosixPath('/etc/hosts')" msgstr "" -">>> PosixPath('/etc/hosts')\n" +">>> p = Path.from_uri('file:///etc/hosts')\n" "PosixPath('/etc/hosts')" #: ../../library/pathlib.rst:838 @@ -1549,17 +1540,16 @@ msgid "On Windows, DOS device and UNC paths may be parsed from URIs::" msgstr "" #: ../../library/pathlib.rst:840 -#, fuzzy msgid "" ">>> p = Path.from_uri('file:///c:/windows')\n" "WindowsPath('c:/windows')\n" ">>> p = Path.from_uri('file://server/share')\n" "WindowsPath('//server/share')" msgstr "" -">>> PureWindowsPath('c:/', 'Users', 'Ximénez')\n" -"PureWindowsPath('c:/Users/Ximénez')\n" -">>> PureWindowsPath('//server/share/file')\n" -"PureWindowsPath('//server/share/file')" +">>> p = Path.from_uri('file:///c:/windows')\n" +"WindowsPath('c:/windows')\n" +">>> p = Path.from_uri('file://server/share')\n" +"WindowsPath('//server/share')" #: ../../library/pathlib.rst:845 msgid "Several variant forms are supported::" @@ -1584,15 +1574,14 @@ msgid "" msgstr "" #: ../../library/pathlib.rst:864 -#, fuzzy msgid "" "Represent the path as a 'file' URI. :exc:`ValueError` is raised if the path " "isn't absolute." msgstr "" -"以 ``file`` URI 來表示一個路徑。如果不是絕對路徑會引發 :exc:`ValueError`。" +"以 ``file`` URI 來表示一個路徑。如果路徑不是絕對的則會引發 :exc:" +"`ValueError`。" #: ../../library/pathlib.rst:867 -#, fuzzy msgid "" ">>> p = PosixPath('/etc/passwd')\n" ">>> p.as_uri()\n" @@ -1601,12 +1590,12 @@ msgid "" ">>> p.as_uri()\n" "'file:///c:/Windows'" msgstr "" -">>> p = PurePath('/etc')\n" -">>> str(p)\n" -"'/etc'\n" -">>> p = PureWindowsPath('c:/Program Files')\n" -">>> str(p)\n" -"'c:\\\\Program Files'" +">>> p = PosixPath('/etc/passwd')\n" +">>> p.as_uri()\n" +"'file:///etc/passwd'\n" +">>> p = WindowsPath('c:/Windows')\n" +">>> p.as_uri()\n" +"'file:///c:/Windows'" #: ../../library/pathlib.rst:876 msgid "" @@ -1727,16 +1716,15 @@ msgstr "" "PosixPath('/home/antoine/pathlib/setup.py')" #: ../../library/pathlib.rst:951 -#, fuzzy msgid "" "If a path doesn't exist or a symlink loop is encountered, and *strict* is " "``True``, :exc:`OSError` is raised. If *strict* is ``False``, the path is " "resolved as far as possible and any remainder is appended without checking " "whether it exists." msgstr "" -"如果路徑不存在且 *strict* 為 ``True``,則引發 :exc:`FileNotFoundError`。如果 " -"*strict* 為 ``False``,則將盡可能解析該路徑,並將任何剩餘部分追加到路徑中,而" -"不檢查其是否存在。如果在解析過程中遇到無窮迴圈,則引發 :exc:`RuntimeError`。" +"如果路徑不存在或遇到符號連結迴圈,且 *strict* 為 ``True``,則引發 :exc:" +"`OSError`。如果 *strict* 為 ``False``,則將盡可能解析該路徑,並將任何剩餘部分" +"追加到路徑中,而不檢查其是否存在。" #: ../../library/pathlib.rst:956 msgid "The *strict* parameter was added (pre-3.6 behavior is strict)." @@ -1869,13 +1857,12 @@ msgstr "" "False" #: ../../library/pathlib.rst:1045 -#, fuzzy msgid "" "Return ``True`` if the path points to a regular file, ``False`` if it points " "to another kind of file." msgstr "" -"如果該路徑指向一個普通檔案(或者是一個指向普通檔案的符號連結)則回傳 " -"``True``,如果指向其他類型的檔案則回傳 ``False``。" +"如果該路徑指向一個普通檔案則回傳 ``True``,如果指向其他類型的檔案則回傳 " +"``False``。" #: ../../library/pathlib.rst:1048 ../../library/pathlib.rst:1063 #: ../../library/pathlib.rst:1111 ../../library/pathlib.rst:1120 @@ -1888,30 +1875,27 @@ msgstr "" "限錯誤)則會傳遞出來。" #: ../../library/pathlib.rst:1051 -#, fuzzy msgid "" "This method normally follows symlinks; to exclude symlinks, add the argument " "``follow_symlinks=False``." msgstr "" -"此方法通常會跟隨符號連結;如果想檢查符號連結是否存在,可以加上引數 " +"此方法通常會跟隨符號連結;如果想將符號連結除外,可以加上引數 " "``follow_symlinks=False``。" #: ../../library/pathlib.rst:1060 -#, fuzzy msgid "" "Return ``True`` if the path points to a directory, ``False`` if it points to " "another kind of file." msgstr "" -"如果該路徑指向一個目錄(或者是一個指向目錄的符號連結)則回傳 ``True``,如果指" -"向其他類型的檔案則回傳 ``False``。" +"如果該路徑指向一個目錄則回傳 ``True``,如果指向其他類型的檔案則回傳 " +"``False``。" #: ../../library/pathlib.rst:1066 -#, fuzzy msgid "" "This method normally follows symlinks; to exclude symlinks to directories, " "add the argument ``follow_symlinks=False``." msgstr "" -"此方法通常會跟隨符號連結;如果想檢查符號連結是否存在,可以加上引數 " +"此方法通常會跟隨符號連結;如果想將對目錄的符號連結除外,可以加上引數 " "``follow_symlinks=False``。" #: ../../library/pathlib.rst:1075 @@ -2174,7 +2158,6 @@ msgstr "" "對到的檔案(任意類型): ::" #: ../../library/pathlib.rst:1279 -#, fuzzy msgid "" ">>> sorted(Path('.').glob('*.py'))\n" "[PosixPath('pathlib.py'), PosixPath('setup.py'), PosixPath('test_pathlib." @@ -2188,6 +2171,11 @@ msgid "" " PosixPath('setup.py'),\n" " PosixPath('test_pathlib.py')]" msgstr "" +">>> sorted(Path('.').glob('*.py'))\n" +"[PosixPath('pathlib.py'), PosixPath('setup.py'), PosixPath('test_pathlib." +"py')]\n" +">>> sorted(Path('.').glob('*/*.py'))\n" +"[PosixPath('docs/conf.py')]\n" ">>> sorted(Path('.').glob('**/*.py'))\n" "[PosixPath('build/lib/pathlib.py'),\n" " PosixPath('docs/conf.py'),\n" @@ -2223,9 +2211,8 @@ msgstr "" "``pathlib.Path.glob``。" #: ../../library/pathlib.rst:1307 ../../library/pathlib.rst:1332 -#, fuzzy msgid "The *recurse_symlinks* parameter was added." -msgstr "新增 *follow_symlinks* 參數。" +msgstr "新增 *recurse_symlinks* 參數。" #: ../../library/pathlib.rst:1313 msgid "" @@ -2235,18 +2222,16 @@ msgid "" msgstr "" #: ../../library/pathlib.rst:1321 -#, fuzzy msgid "" "Glob the given relative *pattern* recursively. This is like calling :func:" "`Path.glob` with \"``**/``\" added in front of the *pattern*." msgstr "" "遞迴地 glob 給定的相對 *pattern*。這相當於在給定的相對 *pattern* 前面加上 " -"\"``**/``\" 並呼叫 :func:`Path.glob`,其中 *patterns* 和給 :mod:`fnmatch` 的" -"相同: ::" +"\"``**/``\" 並呼叫 :func:`Path.glob`。" #: ../../library/pathlib.rst:1325 msgid ":ref:`pathlib-pattern-language` and :meth:`Path.glob` documentation." -msgstr "" +msgstr ":ref:`pathlib-pattern-language` 和 :meth:`Path.glob` 文件。" #: ../../library/pathlib.rst:1327 msgid "" @@ -2670,7 +2655,6 @@ msgid "Permissions and ownership" msgstr "" #: ../../library/pathlib.rst:1590 -#, fuzzy msgid "" "Return the name of the user owning the file. :exc:`KeyError` is raised if " "the file's user identifier (UID) isn't found in the system database." @@ -2679,12 +2663,11 @@ msgstr "" "(UID),則會引發 :exc:`KeyError`。" #: ../../library/pathlib.rst:1593 -#, fuzzy msgid "" "This method normally follows symlinks; to get the owner of the symlink, add " "the argument ``follow_symlinks=False``." msgstr "" -"此方法通常會跟隨符號連結;如果想檢查符號連結是否存在,可以加上引數 " +"此方法通常會跟隨符號連結;如果想取得符號連結的擁有者,可以加上引數 " "``follow_symlinks=False``。" #: ../../library/pathlib.rst:1596 @@ -2694,7 +2677,6 @@ msgid "" msgstr "" #: ../../library/pathlib.rst:1606 -#, fuzzy msgid "" "Return the name of the group owning the file. :exc:`KeyError` is raised if " "the file's group identifier (GID) isn't found in the system database." @@ -2703,12 +2685,11 @@ msgstr "" "發 :exc:`KeyError`。" #: ../../library/pathlib.rst:1609 -#, fuzzy msgid "" "This method normally follows symlinks; to get the group of the symlink, add " "the argument ``follow_symlinks=False``." msgstr "" -"此方法通常會跟隨符號連結;如果想檢查符號連結是否存在,可以加上引數 " +"此方法通常會跟隨符號連結;如果想取得符號連結的群組,可以加上引數 " "``follow_symlinks=False``。" #: ../../library/pathlib.rst:1612 @@ -2828,11 +2809,11 @@ msgstr "" #: ../../library/pathlib.rst:1674 msgid "Meaning" -msgstr "" +msgstr "意涵" #: ../../library/pathlib.rst:1676 msgid "\"``**/*``\"" -msgstr "" +msgstr "\"``**/*``\"" #: ../../library/pathlib.rst:1676 msgid "Any path with at least one segment." @@ -2840,7 +2821,7 @@ msgstr "" #: ../../library/pathlib.rst:1677 msgid "\"``**/*.py``\"" -msgstr "" +msgstr "\"``**/*.py``\"" #: ../../library/pathlib.rst:1677 msgid "Any path with a final segment ending \"``.py``\"." @@ -2848,7 +2829,7 @@ msgstr "" #: ../../library/pathlib.rst:1678 msgid "\"``assets/**``\"" -msgstr "" +msgstr "\"``assets/**``\"" #: ../../library/pathlib.rst:1678 msgid "Any path starting with \"``assets/``\"." @@ -2856,7 +2837,7 @@ msgstr "" #: ../../library/pathlib.rst:1679 msgid "\"``assets/**/*``\"" -msgstr "" +msgstr "\"``assets/**/*``\"" #: ../../library/pathlib.rst:1679 msgid "" @@ -2882,18 +2863,16 @@ msgid "" msgstr "" #: ../../library/pathlib.rst:1693 -#, fuzzy msgid "" "Globbing with a pattern that ends with a pathname components separator (:" "data:`~os.sep` or :data:`~os.altsep`) returns only directories." msgstr "" "如果 *pattern* 以路徑名稱組成的分隔符號(:data:`~os.sep` 或 :data:`~os." -"altsep`)作結尾則只會回傳目錄。" +"altsep`)作結尾來 glob 則只會回傳目錄。" #: ../../library/pathlib.rst:1699 -#, fuzzy msgid "Comparison to the :mod:`glob` module" -msgstr "與 :mod:`os` 模組裡的工具的對應關係" +msgstr "與 :mod:`glob` 模組的比較" #: ../../library/pathlib.rst:1701 msgid "" @@ -2942,9 +2921,8 @@ msgid "" msgstr "" #: ../../library/pathlib.rst:1724 -#, fuzzy msgid "Comparison to the :mod:`os` and :mod:`os.path` modules" -msgstr ":mod:`os` 和 :mod:`os.path`" +msgstr "與 :mod:`os` 和 :mod:`os.path` 模組的比較" #: ../../library/pathlib.rst:1726 msgid "" diff --git a/library/re.po b/library/re.po index ade794f4a6..c5ceb995d2 100644 --- a/library/re.po +++ b/library/re.po @@ -1615,7 +1615,7 @@ msgstr "" #: ../../library/re.rst:1184 msgid "Exceptions" -msgstr "" +msgstr "例外" #: ../../library/re.rst:1188 msgid "" diff --git a/library/selectors.po b/library/selectors.po index 8ba4c1202d..6b0f35f089 100644 --- a/library/selectors.po +++ b/library/selectors.po @@ -114,7 +114,7 @@ msgstr "" #: ../../library/selectors.rst:61 msgid "Constant" -msgstr "" +msgstr "常數" #: ../../library/selectors.rst:61 msgid "Meaning" diff --git a/library/sqlite3.po b/library/sqlite3.po index 868ff1167d..7d1f66f4ea 100644 --- a/library/sqlite3.po +++ b/library/sqlite3.po @@ -811,7 +811,7 @@ msgstr "" #: ../../library/sqlite3.rst:596 msgid "https://www.sqlite.org/c3ref/c_dbconfig_defensive.html" -msgstr "" +msgstr "https://www.sqlite.org/c3ref/c_dbconfig_defensive.html" #: ../../library/sqlite3.rst:597 msgid "SQLite docs: Database Connection Configuration Options" diff --git a/library/stdtypes.po b/library/stdtypes.po index 553ccea2c0..7421a5e216 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -7672,9 +7672,9 @@ msgstr "" #: ../../library/stdtypes.rst:5306 msgid "" -"Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````." +"Modules built into the interpreter are written like this: ````. If loaded from a file, they are written as ````." msgstr "" #: ../../library/stdtypes.rst:5314 @@ -7777,7 +7777,7 @@ msgstr "更多資訊請見 :ref:`instance-methods`。" #: ../../library/stdtypes.rst:5388 msgid "Code Objects" -msgstr "" +msgstr "程式碼物件" #: ../../library/stdtypes.rst:5394 msgid "" @@ -7826,7 +7826,7 @@ msgstr "" #: ../../library/stdtypes.rst:5434 msgid "The Null Object" -msgstr "" +msgstr "Null 物件" #: ../../library/stdtypes.rst:5436 msgid "" @@ -8005,6 +8005,13 @@ msgid "" "... '571186405732').to_bytes(53, 'big')\n" "..." msgstr "" +">>> import sys\n" +">>> assert sys.int_info.default_max_str_digits == 4300, sys.int_info\n" +">>> assert sys.int_info.str_digits_check_threshold == 640, sys.int_info\n" +">>> msg = int('578966293710682886880994035146873798396722250538762761564'\n" +"... '9252925514383915483333812743580549779436104706260696366600'\n" +"... '571186405732').to_bytes(53, 'big')\n" +"..." #: ../../library/stdtypes.rst:5588 msgid "Affected APIs" @@ -8179,6 +8186,15 @@ msgid "" "... elif current_limit < lower_bound:\n" "... sys.set_int_max_str_digits(lower_bound)" msgstr "" +">>> import sys\n" +">>> if hasattr(sys, \"set_int_max_str_digits\"):\n" +"... upper_bound = 68000\n" +"... lower_bound = 4004\n" +"... current_limit = sys.get_int_max_str_digits()\n" +"... if current_limit == 0 or current_limit > upper_bound:\n" +"... sys.set_int_max_str_digits(upper_bound)\n" +"... elif current_limit < lower_bound:\n" +"... sys.set_int_max_str_digits(lower_bound)" #: ../../library/stdtypes.rst:5678 msgid "If you need to disable it entirely, set it to ``0``." @@ -8963,12 +8979,3 @@ msgstr "..." #: ../../library/stdtypes.rst:5443 msgid "ellipsis literal" msgstr "ellipsis literal(刪節號)" - -#~ msgid "" -#~ ">>> int.__subclasses__()\n" -#~ "[, , , ]" -#~ msgstr "" -#~ ">>> int.__subclasses__()\n" -#~ "[, , , ]" diff --git a/library/time.po b/library/time.po index 131e633a51..b110d06f95 100644 --- a/library/time.po +++ b/library/time.po @@ -933,7 +933,7 @@ msgstr "時區名稱(如果不存在時區,則無字元)。已被棄用。 #: ../../library/time.rst:521 msgid "``%G``" -msgstr "" +msgstr "``%G``" #: ../../library/time.rst:521 msgid "" @@ -944,7 +944,7 @@ msgstr "" #: ../../library/time.rst:526 msgid "``%V``" -msgstr "" +msgstr "``%V``" #: ../../library/time.rst:526 msgid "" diff --git a/license.po b/license.po index de6467b90f..f56bcc5556 100644 --- a/license.po +++ b/license.po @@ -264,7 +264,6 @@ msgid "PSF LICENSE AGREEMENT FOR PYTHON |release|" msgstr "用於 PYTHON |release| 的 PSF 授權合約" #: ../../license.rst:94 -#, fuzzy msgid "" "1. This LICENSE AGREEMENT is between the Python Software Foundation " "(\"PSF\"), and\n" @@ -350,7 +349,7 @@ msgstr "" "derivative\n" " version, provided, however, that PSF's License Agreement and PSF's notice " "of\n" -" copyright, i.e., \"Copyright © 2001-2023 Python Software Foundation; All " +" copyright, i.e., \"Copyright © 2001-2024 Python Software Foundation; All " "Rights\n" " Reserved\" are retained in Python |release| alone or in any derivative " "version\n" @@ -1195,9 +1194,8 @@ msgid "UUencode and UUdecode functions" msgstr "UUencode 與 UUdecode 函式" #: ../../license.rst:479 -#, fuzzy msgid "The ``uu`` codec contains the following notice::" -msgstr ":mod:`uu` 模組包含以下聲明: ::" +msgstr "``uu`` 編解碼器包含以下聲明: ::" #: ../../license.rst:481 msgid "" @@ -2326,14 +2324,13 @@ msgstr "" #: ../../license.rst:1048 msgid "mimalloc" -msgstr "" +msgstr "mimalloc" #: ../../license.rst:1050 msgid "MIT License::" msgstr "" #: ../../license.rst:1052 -#, fuzzy msgid "" "Copyright (c) 2018-2021 Microsoft Corporation, Daan Leijen\n" "\n" @@ -2362,26 +2359,32 @@ msgid "" "THE\n" "SOFTWARE." msgstr "" -"Copyright (c) 2001-2006 Twisted Matrix Laboratories.\n" +"Copyright (c) 2018-2021 Microsoft Corporation, Daan Leijen\n" "\n" -"Permission is hereby granted, free of charge, to any person obtaining\n" -"a copy of this software and associated documentation files (the\n" -"\"Software\"), to deal in the Software without restriction, including\n" -"without limitation the rights to use, copy, modify, merge, publish,\n" -"distribute, sublicense, and/or sell copies of the Software, and to\n" -"permit persons to whom the Software is furnished to do so, subject to\n" -"the following conditions:\n" +"Permission is hereby granted, free of charge, to any person obtaining a " +"copy\n" +"of this software and associated documentation files (the \"Software\"), to " +"deal\n" +"in the Software without restriction, including without limitation the " +"rights\n" +"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n" +"copies of the Software, and to permit persons to whom the Software is\n" +"furnished to do so, subject to the following conditions:\n" "\n" -"The above copyright notice and this permission notice shall be\n" -"included in all copies or substantial portions of the Software.\n" +"The above copyright notice and this permission notice shall be included in " +"all\n" +"copies or substantial portions of the Software.\n" "\n" -"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" -"EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n" -"MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n" -"NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n" -"LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n" -"OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n" -"WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." +"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS " +"OR\n" +"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" +"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n" +"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n" +"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING " +"FROM,\n" +"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN " +"THE\n" +"SOFTWARE." #: ../../license.rst:1074 msgid "asyncio" @@ -2453,7 +2456,6 @@ msgid "" msgstr "" #: ../../license.rst:1110 -#, fuzzy msgid "" "Copyright (c) 2019,2020 Jeffrey Roberson \n" "\n" @@ -2478,37 +2480,25 @@ msgid "" "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n" "THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." msgstr "" -"Copyright (c) 2008-2020 Stefan Krah. All rights reserved.\n" +"Copyright (c) 2019,2020 Jeffrey Roberson \n" "\n" "Redistribution and use in source and binary forms, with or without\n" "modification, are permitted provided that the following conditions\n" "are met:\n" -"\n" "1. Redistributions of source code must retain the above copyright\n" -" notice, this list of conditions and the following disclaimer.\n" -"\n" +" notice unmodified, this list of conditions, and the following\n" +" disclaimer.\n" "2. Redistributions in binary form must reproduce the above copyright\n" " notice, this list of conditions and the following disclaimer in the\n" " documentation and/or other materials provided with the distribution.\n" "\n" -"THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS \"AS IS\" AND\n" -"ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n" -"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n" -"ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n" -"FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n" -"DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n" -"OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n" -"HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n" -"LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n" -"OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n" -"SUCH DAMAGE." - -#~ msgid "Audioop" -#~ msgstr "Audioop" - -#~ msgid "" -#~ "The audioop module uses the code base in g771.c file of the SoX project. " -#~ "https://sourceforge.net/projects/sox/files/sox/12.17.7/sox-12.17.7.tar.gz" -#~ msgstr "" -#~ "audioop 模組使用 SoX 專案的 g771.c 檔案中的程式碼。 https://sourceforge." -#~ "net/projects/sox/files/sox/12.17.7/sox-12.17.7.tar.gz" +"THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n" +"IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n" +"OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n" +"IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n" +"INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n" +"NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n" +"DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n" +"THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n" +"(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n" +"THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." diff --git a/reference/datamodel.po b/reference/datamodel.po index a9d20cdcc1..ab96edc064 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -795,7 +795,7 @@ msgstr "" #: ../../reference/datamodel.rst:659 msgid "Instance methods" -msgstr "" +msgstr "實例方法" #: ../../reference/datamodel.rst:666 msgid "" @@ -894,7 +894,7 @@ msgstr "" #: ../../reference/datamodel.rst:741 msgid "Generator functions" -msgstr "Generator(產生器)函式" +msgstr "產生器函式" #: ../../reference/datamodel.rst:747 msgid "" @@ -924,7 +924,7 @@ msgstr "" #: ../../reference/datamodel.rst:772 msgid "Asynchronous generator functions" -msgstr "" +msgstr "非同步產生器函式" #: ../../reference/datamodel.rst:778 msgid "" @@ -986,7 +986,7 @@ msgstr "" #: ../../reference/datamodel.rst:821 msgid "Built-in methods" -msgstr "" +msgstr "內建方法" #: ../../reference/datamodel.rst:828 msgid "" @@ -1014,7 +1014,7 @@ msgstr "" #: ../../reference/datamodel.rst:848 msgid "Class Instances" -msgstr "" +msgstr "類別實例" #: ../../reference/datamodel.rst:850 msgid "" @@ -1214,6 +1214,9 @@ msgid "" "cease to be set or taken into consideration by the import system or the " "standard library." msgstr "" +"在模組上設定 :attr:`!__loader__` 而沒有設定 :attr:`!__spec__.loader` 的做法已" +"被棄用。在 Python 3.16 中,引入系統或標準函式庫將不再設定或考慮 :attr:`!" +"__loader__`。" #: ../../reference/datamodel.rst:1024 msgid "" @@ -1483,10 +1486,14 @@ msgid "" ">>> A.__subclasses__()\n" "[]" msgstr "" +">>> class A: pass\n" +">>> class B(A): pass\n" +">>> A.__subclasses__()\n" +"[]" #: ../../reference/datamodel.rst:1263 msgid "Class instances" -msgstr "" +msgstr "類別實例" #: ../../reference/datamodel.rst:1271 msgid "" @@ -1564,7 +1571,7 @@ msgstr "" #: ../../reference/datamodel.rst:1362 msgid "Code objects" -msgstr "" +msgstr "程式碼物件" #: ../../reference/datamodel.rst:1366 msgid "" @@ -2343,7 +2350,7 @@ msgstr "" #: ../../reference/datamodel.rst:2043 msgid "The return value must be a string object." -msgstr "" +msgstr "回傳值必須是個字串物件。" #: ../../reference/datamodel.rst:2045 msgid "" @@ -2716,11 +2723,11 @@ msgstr "" #: ../../reference/datamodel.rst:2343 msgid "``__class__`` module attribute is now writable." -msgstr "" +msgstr "``__class__`` 模組屬性現在是可寫入的。" #: ../../reference/datamodel.rst:2346 msgid "``__getattr__`` and ``__dir__`` module attributes." -msgstr "" +msgstr "``__getattr__`` 和 ``__dir__`` 模組屬性。" #: ../../reference/datamodel.rst:2351 msgid ":pep:`562` - Module __getattr__ and __dir__" @@ -2732,7 +2739,7 @@ msgstr "" #: ../../reference/datamodel.rst:2358 msgid "Implementing Descriptors" -msgstr "" +msgstr "實作描述器" #: ../../reference/datamodel.rst:2360 msgid "" @@ -2842,7 +2849,7 @@ msgstr "" #: ../../reference/datamodel.rst:2436 msgid "Direct Call" -msgstr "" +msgstr "直接呼叫" #: ../../reference/datamodel.rst:2437 msgid "" @@ -4318,7 +4325,7 @@ msgstr "" #: ../../reference/datamodel.rst:3657 msgid "Coroutine Objects" -msgstr "" +msgstr "協程物件" #: ../../reference/datamodel.rst:3659 msgid "" @@ -5524,36 +5531,3 @@ msgstr "with" #: ../../reference/datamodel.rst:3425 msgid "context manager" msgstr "context manager(情境管理器)" - -#~ msgid ":attr:`__name__`" -#~ msgstr ":attr:`__name__`" - -#~ msgid ":attr:`__doc__`" -#~ msgstr ":attr:`__doc__`" - -#~ msgid ":attr:`__file__`" -#~ msgstr ":attr:`__file__`" - -#~ msgid ":attr:`__annotations__`" -#~ msgstr ":attr:`__annotations__`" - -#~ msgid ":attr:`~definition.__name__`" -#~ msgstr ":attr:`~definition.__name__`" - -#~ msgid ":attr:`__module__`" -#~ msgstr ":attr:`__module__`" - -#~ msgid ":attr:`~object.__dict__`" -#~ msgstr ":attr:`~object.__dict__`" - -#~ msgid ":attr:`~class.__bases__`" -#~ msgstr ":attr:`~class.__bases__`" - -#~ msgid ":attr:`__type_params__`" -#~ msgstr ":attr:`__type_params__`" - -#~ msgid ":attr:`~class.__static_attributes__`" -#~ msgstr ":attr:`~class.__static_attributes__`" - -#~ msgid ":attr:`__firstlineno__`" -#~ msgstr ":attr:`__firstlineno__`" diff --git a/reference/expressions.po b/reference/expressions.po index 48e8693491..a6d34f67a1 100644 --- a/reference/expressions.po +++ b/reference/expressions.po @@ -786,7 +786,7 @@ msgstr "" #: ../../reference/expressions.rst:682 msgid "Asynchronous generator functions" -msgstr "" +msgstr "非同步產生器函式" #: ../../reference/expressions.rst:684 msgid "" @@ -2213,7 +2213,7 @@ msgstr "" #: ../../reference/expressions.rst:1995 msgid "Operator" -msgstr "" +msgstr "運算子" #: ../../reference/expressions.rst:1995 msgid "Description" diff --git a/using/configure.po b/using/configure.po index a3a919df74..080a472bd9 100644 --- a/using/configure.po +++ b/using/configure.po @@ -479,7 +479,7 @@ msgstr "" #: ../../using/configure.rst:271 msgid "Object:" -msgstr "" +msgstr "物件:" #: ../../using/configure.rst:273 msgid "incref and decref;" @@ -2018,7 +2018,7 @@ msgstr "" #: ../../using/configure.rst:1438 msgid "Footnotes" -msgstr "" +msgstr "註腳" #: ../../using/configure.rst:1439 msgid "" diff --git a/using/ios.po b/using/ios.po index f2c2df9111..080e6a1879 100644 --- a/using/ios.po +++ b/using/ios.po @@ -1,4 +1,3 @@ -# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2024, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. @@ -19,15 +18,15 @@ msgstr "" #: ../../using/ios.rst:5 msgid "Using Python on iOS" -msgstr "" +msgstr "在 iOS 上使用 Python" #: ../../using/ios.rst:0 msgid "Authors" -msgstr "" +msgstr "作者" #: ../../using/ios.rst:8 msgid "Russell Keith-Magee (2024-03)" -msgstr "" +msgstr "Russell Keith-Magee (2024-03)" #: ../../using/ios.rst:10 msgid "" @@ -318,7 +317,7 @@ msgstr "" #: ../../using/ios.rst:200 msgid "Build Options" -msgstr "" +msgstr "建置選項" #: ../../using/ios.rst:202 msgid "User Script Sandboxing: No" diff --git a/using/mac.po b/using/mac.po index 79ab0b1827..8d8653a3f1 100644 --- a/using/mac.po +++ b/using/mac.po @@ -403,7 +403,7 @@ msgstr "" #: ../../using/mac.rst:262 msgid "(Experimental)" -msgstr "" +msgstr "(實驗性的)" #: ../../using/mac.rst:266 msgid "" diff --git a/using/windows.po b/using/windows.po index 356a255fe6..8ff3e1e9ed 100644 --- a/using/windows.po +++ b/using/windows.po @@ -688,7 +688,7 @@ msgstr "" #: ../../using/windows.rst:315 ../../using/windows.rst:501 msgid "(Experimental)" -msgstr "" +msgstr "(實驗性的)" #: ../../using/windows.rst:319 ../../using/windows.rst:505 msgid "" diff --git a/whatsnew/2.2.po b/whatsnew/2.2.po index 440d72550b..a20f58263f 100644 --- a/whatsnew/2.2.po +++ b/whatsnew/2.2.po @@ -151,7 +151,7 @@ msgstr "" #: ../../whatsnew/2.2.rst:100 msgid "Old and New Classes" -msgstr "" +msgstr "舊的和新的類別" #: ../../whatsnew/2.2.rst:102 msgid "" @@ -180,6 +180,10 @@ msgid "" " ...\n" " ..." msgstr "" +"class C(object):\n" +" def __init__ (self):\n" +" ...\n" +" ..." #: ../../whatsnew/2.2.rst:121 msgid "" @@ -205,6 +209,10 @@ msgid "" ">>> int('123')\n" "123" msgstr "" +">>> int\n" +"\n" +">>> int('123')\n" +"123" #: ../../whatsnew/2.2.rst:136 msgid "" @@ -221,6 +229,11 @@ msgid "" " return fcntl.lockf(self.fileno(), operation,\n" " length, start, whence)" msgstr "" +"class LockableFile(file):\n" +" def lock (self, operation, length=0, start=0, whence=0):\n" +" import fcntl\n" +" return fcntl.lockf(self.fileno(), operation,\n" +" length, start, whence)" #: ../../whatsnew/2.2.rst:146 msgid "" @@ -232,7 +245,7 @@ msgstr "" #: ../../whatsnew/2.2.rst:153 msgid "Descriptors" -msgstr "" +msgstr "描述器" #: ../../whatsnew/2.2.rst:155 msgid "" @@ -295,6 +308,8 @@ msgid "" "descriptor = obj.__class__.x\n" "descriptor.__get__(obj)" msgstr "" +"descriptor = obj.__class__.x\n" +"descriptor.__get__(obj)" #: ../../whatsnew/2.2.rst:189 msgid "" @@ -658,6 +673,8 @@ msgid "" "def __getitem__(self, index):\n" " return " msgstr "" +"def __getitem__(self, index):\n" +" return " #: ../../whatsnew/2.2.rst:433 msgid "" @@ -721,6 +738,21 @@ msgid "" "StopIteration\n" ">>>" msgstr "" +">>> L = [1,2,3]\n" +">>> i = iter(L)\n" +">>> print i\n" +"\n" +">>> i.next()\n" +"1\n" +">>> i.next()\n" +"2\n" +">>> i.next()\n" +"3\n" +">>> i.next()\n" +"Traceback (most recent call last):\n" +" File \"\", line 1, in ?\n" +"StopIteration\n" +">>>" #: ../../whatsnew/2.2.rst:479 msgid "" @@ -742,6 +774,11 @@ msgid "" ">>> a,b,c\n" "(1, 2, 3)" msgstr "" +">>> L = [1,2,3]\n" +">>> i = iter(L)\n" +">>> a,b,c = i\n" +">>> a,b,c\n" +"(1, 2, 3)" #: ../../whatsnew/2.2.rst:493 msgid "" @@ -769,6 +806,22 @@ msgid "" "Dec 12\n" "Oct 10" msgstr "" +">>> m = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6,\n" +"... 'Jul': 7, 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12}\n" +">>> for key in m: print key, m[key]\n" +"...\n" +"Mar 3\n" +"Feb 2\n" +"Aug 8\n" +"Sep 9\n" +"May 5\n" +"Jun 6\n" +"Jul 7\n" +"Jan 1\n" +"Apr 4\n" +"Nov 11\n" +"Dec 12\n" +"Oct 10" #: ../../whatsnew/2.2.rst:513 msgid "" @@ -815,7 +868,7 @@ msgstr "" #: ../../whatsnew/2.2.rst:543 msgid "PEP 255: Simple Generators" -msgstr "" +msgstr "PEP 255:簡單產生器" #: ../../whatsnew/2.2.rst:545 msgid "" @@ -846,6 +899,9 @@ msgid "" " for i in range(N):\n" " yield i" msgstr "" +"def generate_ints(N):\n" +" for i in range(N):\n" +" yield i" #: ../../whatsnew/2.2.rst:563 msgid "" @@ -895,6 +951,20 @@ msgid "" " File \"\", line 2, in generate_ints\n" "StopIteration" msgstr "" +">>> gen = generate_ints(3)\n" +">>> gen\n" +"\n" +">>> gen.next()\n" +"0\n" +">>> gen.next()\n" +"1\n" +">>> gen.next()\n" +"2\n" +">>> gen.next()\n" +"Traceback (most recent call last):\n" +" File \"\", line 1, in ?\n" +" File \"\", line 2, in generate_ints\n" +"StopIteration" #: ../../whatsnew/2.2.rst:601 msgid "" @@ -962,6 +1032,8 @@ msgid "" "sentence := \"Store it in the neighboring harbor\"\n" "if (i := find(\"or\", sentence)) > 5 then write(i)" msgstr "" +"sentence := \"Store it in the neighboring harbor\"\n" +"if (i := find(\"or\", sentence)) > 5 then write(i)" #: ../../whatsnew/2.2.rst:645 msgid "" @@ -986,7 +1058,7 @@ msgstr "" #: ../../whatsnew/2.2.rst:662 msgid ":pep:`255` - Simple Generators" -msgstr "" +msgstr ":pep:`255` - 簡單產生器" #: ../../whatsnew/2.2.rst:663 msgid "" @@ -1030,6 +1102,10 @@ msgid "" ">>> 2 ** 64\n" "18446744073709551616L" msgstr "" +">>> 1234567890123\n" +"1234567890123L\n" +">>> 2 ** 64\n" +"18446744073709551616L" #: ../../whatsnew/2.2.rst:695 msgid "" @@ -1266,6 +1342,12 @@ msgid "" " return g(value-1) + 1\n" " ..." msgstr "" +"def f():\n" +" ...\n" +" def g(value):\n" +" ...\n" +" return g(value-1) + 1\n" +" ..." #: ../../whatsnew/2.2.rst:863 msgid "" @@ -1344,6 +1426,12 @@ msgid "" " def g():\n" " return x" msgstr "" +"x = 1\n" +"def f():\n" +" # 下一行為語法錯誤\n" +" exec 'x=2'\n" +" def g():\n" +" return x" #: ../../whatsnew/2.2.rst:917 msgid "" diff --git a/whatsnew/3.12.po b/whatsnew/3.12.po index 2524564103..5a4af094ce 100644 --- a/whatsnew/3.12.po +++ b/whatsnew/3.12.po @@ -2553,12 +2553,10 @@ msgstr "" "getmarkers` 方法自 Python 3.13 被棄用。" #: ../../deprecations/pending-removal-in-3.16.rst:2 -#, fuzzy msgid "Pending removal in Python 3.16" msgstr "Python 3.16 中待移除的項目" #: ../../deprecations/pending-removal-in-3.16.rst:6 -#, fuzzy msgid "" "Setting :attr:`~module.__loader__` on a module while failing to set :attr:" "`__spec__.loader ` is deprecated. In " @@ -2566,8 +2564,8 @@ msgid "" "consideration by the import system or the standard library." msgstr "" "在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader " -"` 的做法已被棄用。在 Python 3.14 中," -"引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__` 。" +"` 的做法將於 Python 3.16 被棄用。在 " +"Python 3.16 中,引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__`。" #: ../../deprecations/pending-removal-in-3.16.rst:11 msgid ":mod:`array`:" diff --git a/whatsnew/3.13.po b/whatsnew/3.13.po index ff121bd3f0..bbc57bb4aa 100644 --- a/whatsnew/3.13.po +++ b/whatsnew/3.13.po @@ -286,13 +286,12 @@ msgstr "重要的移除:" #: ../../whatsnew/3.13.rst:182 msgid "" -":ref:`PEP 594 `: The remaining 19 \"dead " -"batteries\" (legacy stdlib modules) have been removed from the standard " -"library: :mod:`!aifc`, :mod:`!audioop`, :mod:`!cgi`, :mod:`!cgitb`, :mod:`!" -"chunk`, :mod:`!crypt`, :mod:`!imghdr`, :mod:`!mailcap`, :mod:`!msilib`, :mod:" -"`!nis`, :mod:`!nntplib`, :mod:`!ossaudiodev`, :mod:`!pipes`, :mod:`!" -"sndhdr`, :mod:`!spwd`, :mod:`!sunau`, :mod:`!telnetlib`, :mod:`!uu` and :mod:" -"`!xdrlib`." +":ref:`PEP 594 `: The remaining 19 \"dead batteries\" " +"(legacy stdlib modules) have been removed from the standard library: :mod:`!" +"aifc`, :mod:`!audioop`, :mod:`!cgi`, :mod:`!cgitb`, :mod:`!chunk`, :mod:`!" +"crypt`, :mod:`!imghdr`, :mod:`!mailcap`, :mod:`!msilib`, :mod:`!nis`, :mod:`!" +"nntplib`, :mod:`!ossaudiodev`, :mod:`!pipes`, :mod:`!sndhdr`, :mod:`!spwd`, :" +"mod:`!sunau`, :mod:`!telnetlib`, :mod:`!uu` and :mod:`!xdrlib`." msgstr "" ":ref:`PEP 594 `: 剩下的 19 個 \"dead batteries\" (遺留標" "準函式庫模組)已自標準函式庫中移除::mod:`!aifc`、:mod:`!audioop`、:mod:`!" @@ -3266,12 +3265,10 @@ msgstr "" "getmarkers` 方法自 Python 3.13 被棄用。" #: ../../deprecations/pending-removal-in-3.16.rst:2 -#, fuzzy msgid "Pending removal in Python 3.16" msgstr "Python 3.16 中待移除的項目" #: ../../deprecations/pending-removal-in-3.16.rst:6 -#, fuzzy msgid "" "Setting :attr:`~module.__loader__` on a module while failing to set :attr:" "`__spec__.loader ` is deprecated. In " @@ -3279,8 +3276,8 @@ msgid "" "consideration by the import system or the standard library." msgstr "" "在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader " -"` 的做法已被棄用。在 Python 3.14 中," -"引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__` 。" +"` 的做法將於 Python 3.16 被棄用。在 " +"Python 3.16 中,引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__`。" #: ../../deprecations/pending-removal-in-3.16.rst:13 msgid ""