From 75cbdeb5be84768830b961f166a332444d771d4f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 15 Feb 2023 00:19:42 +0000 Subject: [PATCH 1/4] sync with cpython 4aeae286 --- c-api/dict.po | 9 +++++---- c-api/object.po | 6 +++--- faq/programming.po | 8 ++++---- library/abc.po | 6 +++--- library/collections.abc.po | 14 +++++++------- library/collections.po | 27 +++++++++++++++------------ library/datetime.po | 6 +++--- library/fractions.po | 8 ++++---- library/functools.po | 4 ++-- library/graphlib.po | 8 +++++--- library/inspect.po | 6 +++--- library/operator.po | 7 ++++--- library/pathlib.po | 8 ++++---- library/stdtypes.po | 23 ++++++++++++----------- library/typing.po | 6 +++--- reference/datamodel.po | 8 ++++---- 16 files changed, 81 insertions(+), 73 deletions(-) diff --git a/c-api/dict.po b/c-api/dict.po index 3e236cf2e1..8c51accdff 100644 --- a/c-api/dict.po +++ b/c-api/dict.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-06 00:23+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2017-09-22 18:26+0000\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -98,9 +98,10 @@ msgstr "" #: ../../c-api/dict.rst:83 msgid "" -"Remove the entry in dictionary *p* with key *key*. *key* must be hashable; " -"if it isn't, :exc:`TypeError` is raised. If *key* is not in the dictionary, :" -"exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure." +"Remove the entry in dictionary *p* with key *key*. *key* must be :term:" +"`hashable`; if it isn't, :exc:`TypeError` is raised. If *key* is not in the " +"dictionary, :exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on " +"failure." msgstr "" #: ../../c-api/dict.rst:91 diff --git a/c-api/object.po b/c-api/object.po index 81fda35c64..e5fa820beb 100644 --- a/c-api/object.po +++ b/c-api/object.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-15 20:43+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 14:32+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -301,8 +301,8 @@ msgstr "" #: ../../c-api/object.rst:284 msgid "" -"Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and " -"return ``-1``. This function receives special treatment when stored in a " +"Set a :exc:`TypeError` indicating that ``type(o)`` is not :term:`hashable` " +"and return ``-1``. This function receives special treatment when stored in a " "``tp_hash`` slot, allowing a type to explicitly indicate to the interpreter " "that it is not hashable." msgstr "" diff --git a/faq/programming.po b/faq/programming.po index 2108f978e8..383f597fe0 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-29 00:16+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2023-02-18 13:52+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -3033,9 +3033,9 @@ msgstr "" #: ../../faq/programming.rst:1982 #, fuzzy msgid "" -"The *lru_cache* approach works with methods that have hashable arguments. " -"It creates a reference to the instance unless special efforts are made to " -"pass in weak references." +"The *lru_cache* approach works with methods that have :term:`hashable` " +"arguments. It creates a reference to the instance unless special efforts " +"are made to pass in weak references." msgstr "" "*lru_cache* 方法適用於具有可散列引數的方法。除非特別努力傳遞弱引用,否則它會" "建立對實例的引用。" diff --git a/library/abc.po b/library/abc.po index 051401df67..91de226afc 100644 --- a/library/abc.po +++ b/library/abc.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-10-26 16:47+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 14:38+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -39,8 +39,8 @@ msgid "" "The :mod:`collections` module has some concrete classes that derive from " "ABCs; these can, of course, be further derived. In addition, the :mod:" "`collections.abc` submodule has some ABCs that can be used to test whether a " -"class or instance provides a particular interface, for example, if it is " -"hashable or if it is a mapping." +"class or instance provides a particular interface, for example, if it is :" +"term:`hashable` or if it is a mapping." msgstr "" #: ../../library/abc.rst:27 diff --git a/library/collections.abc.po b/library/collections.abc.po index 05fccba50f..2912b7540a 100644 --- a/library/collections.abc.po +++ b/library/collections.abc.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-15 20:43+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 14:41+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -34,7 +34,7 @@ msgstr "**原始碼:**\\ :source:`Lib/_collections_abc.py`" msgid "" "This module provides :term:`abstract base classes ` " "that can be used to test whether a class provides a particular interface; " -"for example, whether it is hashable or whether it is a mapping." +"for example, whether it is :term:`hashable` or whether it is a mapping." msgstr "" #: ../../library/collections.abc.rst:27 @@ -275,8 +275,8 @@ msgstr ":class:`MutableSet`" #: ../../library/collections.abc.rst:151 msgid "``__contains__``, ``__iter__``, ``__len__``, ``add``, ``discard``" msgstr "" -"``__contains__``\\ 、\\ ``__iter__``\\ 、\\ ``__len__``\\ 、\\ ``add``" -"\\ 、\\ ``discard``" +"``__contains__``\\ 、\\ ``__iter__``\\ 、\\ ``__len__``\\ 、\\ " +"``add``\\ 、\\ ``discard``" #: ../../library/collections.abc.rst:151 msgid "" @@ -620,9 +620,9 @@ msgstr "" msgid "" "The :class:`Set` mixin provides a :meth:`_hash` method to compute a hash " "value for the set; however, :meth:`__hash__` is not defined because not all " -"sets are hashable or immutable. To add set hashability using mixins, " -"inherit from both :meth:`Set` and :meth:`Hashable`, then define ``__hash__ = " -"Set._hash``." +"sets are :term:`hashable` or immutable. To add set hashability using " +"mixins, inherit from both :meth:`Set` and :meth:`Hashable`, then define " +"``__hash__ = Set._hash``." msgstr "" #: ../../library/collections.abc.rst:415 diff --git a/library/collections.po b/library/collections.po index 59474796b7..d8a65cb472 100644 --- a/library/collections.po +++ b/library/collections.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-02-26 00:11+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2022-03-01 01:14+0800\n" "Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -70,7 +70,8 @@ msgid ":class:`Counter`" msgstr ":class:`Counter`" #: ../../library/collections.rst:28 -msgid "dict subclass for counting hashable objects" +#, fuzzy +msgid "dict subclass for counting :term:`hashable` objects" msgstr "dict 的子類別,用來計算可雜湊 (hashable) 物件的數量" #: ../../library/collections.rst:29 @@ -225,9 +226,9 @@ msgid "" "reference to ``d.parents`` is equivalent to: ``ChainMap(*d.maps[1:])``." msgstr "" "回傳一個包含除了第一個以外所有其他對映的新 :class:`ChainMap` 的特性,可用於需" -"要跳過第一個對映的搜索。使用情境類似於在\\ :term:`巢狀作用域 `" -"\\ 當中使用 :keyword:`nonlocal` 關鍵字,也可與內建函式 :func:`super` 做類比。" -"引用 ``d.parents`` 等同於 ``ChainMap(*d.maps[1:])``。" +"要跳過第一個對映的搜索。使用情境類似於在\\ :term:`巢狀作用域 `\\ 當中使用 :keyword:`nonlocal` 關鍵字,也可與內建函式 :func:`super` " +"做類比。引用 ``d.parents`` 等同於 ``ChainMap(*d.maps[1:])``。" #: ../../library/collections.rst:102 msgid "" @@ -352,8 +353,9 @@ msgstr "" "::" #: ../../library/collections.rst:244 +#, fuzzy msgid "" -"A :class:`Counter` is a :class:`dict` subclass for counting hashable " +"A :class:`Counter` is a :class:`dict` subclass for counting :term:`hashable` " "objects. It is a collection where elements are stored as dictionary keys and " "their counts are stored as dictionary values. Counts are allowed to be any " "integer value including zero or negative counts. The :class:`Counter` class " @@ -839,10 +841,11 @@ msgid "" "popleft`; otherwise, it can be cycled back to the end with the :meth:`~deque." "rotate` method::" msgstr "" -"一個\\ `輪詢調度器 `_" -"\\ 可以透過在 :class:`deque` 中放入 iterator 來實現,值自當前 iterator 的位" -"置 0 取出,如果 iterator 已經消耗完畢就用 :meth:`~deque.popleft` 將其從佇列中" -"移除,否則利用 :meth:`~deque.rotate` 來將其移至佇列尾端:\n" +"一個\\ `輪詢調度器 `_\\ 可以透過在 :class:`deque` 中放入 iterator 來實現,值自" +"當前 iterator 的位置 0 取出,如果 iterator 已經消耗完畢就用 :meth:`~deque." +"popleft` 將其從佇列中移除,否則利用 :meth:`~deque.rotate` 來將其移至佇列尾" +"端:\n" "\n" "::" @@ -1474,8 +1477,8 @@ msgid "" "The items, keys, and values :term:`views ` of :class:" "`OrderedDict` now support reverse iteration using :func:`reversed`." msgstr "" -":class:`OrderedDict` 的項 (item)、鍵與值之\\ :term:`視圖 `" -"\\ 現在可透過 :func:`reversed` 來倒序疊代。" +":class:`OrderedDict` 的項 (item)、鍵與值之\\ :term:`視圖 `\\ 現在可透過 :func:`reversed` 來倒序疊代。" #: ../../library/collections.rst:1175 msgid "" diff --git a/library/datetime.po b/library/datetime.po index 69e69d90a8..36e9ea31f9 100644 --- a/library/datetime.po +++ b/library/datetime.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-21 00:16+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 14:42+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -210,8 +210,8 @@ msgstr "" #: ../../library/datetime.rst:163 msgid "" -"Objects of these types are hashable, meaning that they can be used as " -"dictionary keys." +"Objects of these types are :term:`hashable`, meaning that they can be used " +"as dictionary keys." msgstr "" #: ../../library/datetime.rst:165 diff --git a/library/fractions.po b/library/fractions.po index ff4c819806..49dd765e1d 100644 --- a/library/fractions.po +++ b/library/fractions.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-15 20:43+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2016-01-31 07:18+0000\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -70,9 +70,9 @@ msgstr "" msgid "" "The :class:`Fraction` class inherits from the abstract base class :class:" "`numbers.Rational`, and implements all of the methods and operations from " -"that class. :class:`Fraction` instances are hashable, and should be treated " -"as immutable. In addition, :class:`Fraction` has the following properties " -"and methods:" +"that class. :class:`Fraction` instances are :term:`hashable`, and should be " +"treated as immutable. In addition, :class:`Fraction` has the following " +"properties and methods:" msgstr "" #: ../../library/fractions.rst:84 diff --git a/library/functools.po b/library/functools.po index 55ab0a8326..bb84784ca5 100644 --- a/library/functools.po +++ b/library/functools.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-25 00:16+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 16:02+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -161,7 +161,7 @@ msgstr "" #: ../../library/functools.rst:149 msgid "" "Since a dictionary is used to cache results, the positional and keyword " -"arguments to the function must be hashable." +"arguments to the function must be :term:`hashable`." msgstr "" #: ../../library/functools.rst:152 diff --git a/library/graphlib.po b/library/graphlib.po index 5d43dbe73d..ae03c6b4b3 100644 --- a/library/graphlib.po +++ b/library/graphlib.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-13 00:11+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -27,7 +27,9 @@ msgid "**Source code:** :source:`Lib/graphlib.py`" msgstr "**原始碼:**\\ :source:`Lib/graphlib.py`" #: ../../library/graphlib.rst:20 -msgid "Provides functionality to topologically sort a graph of hashable nodes." +msgid "" +"Provides functionality to topologically sort a graph of :term:`hashable` " +"nodes." msgstr "" #: ../../library/graphlib.rst:22 @@ -94,7 +96,7 @@ msgstr "" #: ../../library/graphlib.rst:87 msgid "" "Add a new node and its predecessors to the graph. Both the *node* and all " -"elements in *predecessors* must be hashable." +"elements in *predecessors* must be :term:`hashable`." msgstr "" #: ../../library/graphlib.rst:90 diff --git a/library/inspect.po b/library/inspect.po index 97f5635339..656feba57d 100644 --- a/library/inspect.po +++ b/library/inspect.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-26 00:17+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2022-10-16 06:59+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -955,7 +955,7 @@ msgid "" msgstr "" #: ../../library/inspect.rst:670 -msgid "Signature objects are picklable and hashable." +msgid "Signature objects are picklable and :term:`hashable`." msgstr "" #: ../../library/inspect.rst:675 @@ -1029,7 +1029,7 @@ msgid "" msgstr "" #: ../../library/inspect.rst:748 -msgid "Parameter objects are picklable and hashable." +msgid "Parameter objects are picklable and :term:`hashable`." msgstr "" #: ../../library/inspect.rst:753 diff --git a/library/operator.po b/library/operator.po index ced7c9af72..4708caa318 100644 --- a/library/operator.po +++ b/library/operator.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-15 20:43+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2021-12-09 23:32+0800\n" "Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -317,10 +317,11 @@ msgstr "" "r[3])``。" #: ../../library/operator.rst:329 +#, fuzzy msgid "" "The items can be any type accepted by the operand's :meth:`__getitem__` " -"method. Dictionaries accept any hashable value. Lists, tuples, and strings " -"accept an index or a slice:" +"method. Dictionaries accept any :term:`hashable` value. Lists, tuples, and " +"strings accept an index or a slice:" msgstr "" "傳入的條目可以為運算元的 :meth:`__getitem__` 所接受的任何型別。dictionary(字" "典)接受任意可雜湊 (hashable) 的值。list、tupple 和字串接受索引或切片:" diff --git a/library/pathlib.po b/library/pathlib.po index dc69edf4bf..e9b524c3e4 100644 --- a/library/pathlib.po +++ b/library/pathlib.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-31 00:17+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 16:07+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -193,9 +193,9 @@ msgstr "" #: ../../library/pathlib.rst:189 msgid "" -"Paths are immutable and hashable. Paths of a same flavour are comparable " -"and orderable. These properties respect the flavour's case-folding " -"semantics::" +"Paths are immutable and :term:`hashable`. Paths of a same flavour are " +"comparable and orderable. These properties respect the flavour's case-" +"folding semantics::" msgstr "" #: ../../library/pathlib.rst:202 diff --git a/library/stdtypes.po b/library/stdtypes.po index e7400aed72..d65ee6909a 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-25 00:16+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2022-06-12 15:22+0800\n" "Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -4089,15 +4089,15 @@ msgstr "" #: ../../library/stdtypes.rst:3768 msgid "" -"One-dimensional memoryviews of hashable (read-only) types with formats 'B', " -"'b' or 'c' are also hashable. The hash is defined as ``hash(m) == hash(m." -"tobytes())``::" +"One-dimensional memoryviews of :term:`hashable` (read-only) types with " +"formats 'B', 'b' or 'c' are also hashable. The hash is defined as ``hash(m) " +"== hash(m.tobytes())``::" msgstr "" #: ../../library/stdtypes.rst:3780 msgid "" "One-dimensional memoryviews can now be sliced. One-dimensional memoryviews " -"with formats 'B', 'b' or 'c' are now hashable." +"with formats 'B', 'b' or 'c' are now :term:`hashable`." msgstr "" #: ../../library/stdtypes.rst:3784 @@ -4952,12 +4952,13 @@ msgstr "" #: ../../library/stdtypes.rst:4702 msgid "" -"Keys views are set-like since their entries are unique and hashable. If all " -"values are hashable, so that ``(key, value)`` pairs are unique and hashable, " -"then the items view is also set-like. (Values views are not treated as set-" -"like since the entries are generally not unique.) For set-like views, all " -"of the operations defined for the abstract base class :class:`collections." -"abc.Set` are available (for example, ``==``, ``<``, or ``^``)." +"Keys views are set-like since their entries are unique and :term:" +"`hashable`. If all values are hashable, so that ``(key, value)`` pairs are " +"unique and hashable, then the items view is also set-like. (Values views " +"are not treated as set-like since the entries are generally not unique.) " +"For set-like views, all of the operations defined for the abstract base " +"class :class:`collections.abc.Set` are available (for example, ``==``, " +"``<``, or ``^``)." msgstr "" #: ../../library/stdtypes.rst:4709 diff --git a/library/typing.po b/library/typing.po index 0b97228852..25cc788b74 100644 --- a/library/typing.po +++ b/library/typing.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-08 00:17+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 16:14+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -487,8 +487,8 @@ msgstr "" msgid "" "A user-defined generic class can have ABCs as base classes without a " "metaclass conflict. Generic metaclasses are not supported. The outcome of " -"parameterizing generics is cached, and most types in the typing module are " -"hashable and comparable for equality." +"parameterizing generics is cached, and most types in the typing module are :" +"term:`hashable` and comparable for equality." msgstr "" #: ../../library/typing.rst:447 diff --git a/reference/datamodel.po b/reference/datamodel.po index 9c16bb34b6..9daacde50a 100644 --- a/reference/datamodel.po +++ b/reference/datamodel.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-01 00:18+0000\n" +"POT-Creation-Date: 2023-02-15 00:17+0000\n" "PO-Revision-Date: 2018-05-23 16:17+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -1812,9 +1812,9 @@ msgid "" "`__hash__`, its instances will not be usable as items in hashable " "collections. If a class defines mutable objects and implements an :meth:" "`__eq__` method, it should not implement :meth:`__hash__`, since the " -"implementation of hashable collections requires that a key's hash value is " -"immutable (if the object's hash value changes, it will be in the wrong hash " -"bucket)." +"implementation of :term:`hashable` collections requires that a key's hash " +"value is immutable (if the object's hash value changes, it will be in the " +"wrong hash bucket)." msgstr "" #: ../../reference/datamodel.rst:1532 From d91f176f9eee790b2a1275b58f76b7dac4439178 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 Feb 2023 00:19:55 +0000 Subject: [PATCH 2/4] sync with cpython aedf3839 --- library/configparser.po | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/configparser.po b/library/configparser.po index 6db325f6f4..687c743631 100644 --- a/library/configparser.po +++ b/library/configparser.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-31 08:13+0000\n" +"POT-Creation-Date: 2023-02-17 00:18+0000\n" "PO-Revision-Date: 2018-05-23 14:41+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -167,7 +167,7 @@ msgid "" "Please note that default values have precedence over fallback values. For " "instance, in our example the ``'CompressionLevel'`` key was specified only " "in the ``'DEFAULT'`` section. If we try to get it from the section " -"``'topsecret.server.com'``, we will always get the default, even if we " +"``'topsecret.server.example'``, we will always get the default, even if we " "specify a fallback:" msgstr "" @@ -251,8 +251,8 @@ msgstr "" #: ../../library/configparser.rst:364 msgid "" -"With ``interpolation`` set to ``None``, the parser would simply return ``" -"%(my_dir)s/Pictures`` as the value of ``my_pictures`` and ``%(home_dir)s/" +"With ``interpolation`` set to ``None``, the parser would simply return " +"``%(my_dir)s/Pictures`` as the value of ``my_pictures`` and ``%(home_dir)s/" "lumberjack`` as the value of ``my_dir``." msgstr "" @@ -532,8 +532,8 @@ msgstr "" #: ../../library/configparser.rst:669 msgid "" -"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: ``" -"\"DEFAULT\"``)" +"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: " +"``\"DEFAULT\"``)" msgstr "" #: ../../library/configparser.rst:672 @@ -542,8 +542,8 @@ msgid "" "sections or interpolation purposes is a powerful concept of this library, " "letting users create complex declarative configurations. This section is " "normally called ``\"DEFAULT\"`` but this can be customized to point to any " -"other valid section name. Some typical values include: ``\"general\"`` or ``" -"\"common\"``. The name provided is used for recognizing default sections " +"other valid section name. Some typical values include: ``\"general\"`` or " +"``\"common\"``. The name provided is used for recognizing default sections " "when reading from any source and is used when writing configuration back to " "a file. Its current value can be retrieved using the ``parser_instance." "default_section`` attribute and may be modified at runtime (i.e. to convert " From a5e48db20e3b4b66172ee154572d344d4a61496c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 18 Feb 2023 00:19:16 +0000 Subject: [PATCH 3/4] sync with cpython b7a49eb5 --- c-api/module.po | 16 ++++---- library/enum.po | 96 ++++++++++++++++++++++----------------------- library/plistlib.po | 8 ++-- 3 files changed, 59 insertions(+), 61 deletions(-) diff --git a/c-api/module.po b/c-api/module.po index 81ef073865..84049f5688 100644 --- a/c-api/module.po +++ b/c-api/module.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-06 00:23+0000\n" +"POT-Creation-Date: 2023-02-18 00:17+0000\n" "PO-Revision-Date: 2018-05-23 14:32+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -444,17 +444,17 @@ msgstr "" #: ../../c-api/module.rst:391 msgid "" -"Create a new module object, given the definition in *module* and the " -"ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` " -"with *module_api_version* set to :const:`PYTHON_API_VERSION`." +"Create a new module object, given the definition in *def* and the ModuleSpec " +"*spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` with " +"*module_api_version* set to :const:`PYTHON_API_VERSION`." msgstr "" #: ../../c-api/module.rst:399 msgid "" -"Create a new module object, given the definition in *module* and the " -"ModuleSpec *spec*, assuming the API version *module_api_version*. If that " -"version does not match the version of the running interpreter, a :exc:" -"`RuntimeWarning` is emitted." +"Create a new module object, given the definition in *def* and the ModuleSpec " +"*spec*, assuming the API version *module_api_version*. If that version does " +"not match the version of the running interpreter, a :exc:`RuntimeWarning` is " +"emitted." msgstr "" #: ../../c-api/module.rst:406 diff --git a/library/enum.po b/library/enum.po index 15fbce62af..8492f3343a 100644 --- a/library/enum.po +++ b/library/enum.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-21 00:16+0000\n" +"POT-Creation-Date: 2023-02-18 00:17+0000\n" "PO-Revision-Date: 2018-05-23 16:01+0000\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -746,109 +746,107 @@ msgid "" msgstr "" #: ../../library/enum.rst:695 -msgid "" -"Out-of-range values cause a :exc:`ValueError` to be raised. This is the " -"default for :class:`Flag`::" +msgid "Out-of-range values cause a :exc:`ValueError` to be raised::" msgstr "" -#: ../../library/enum.rst:712 +#: ../../library/enum.rst:711 msgid "" "Out-of-range values have invalid values removed, leaving a valid *Flag* " -"value::" +"value. This is the default for :class:`Flag`::" msgstr "" -#: ../../library/enum.rst:725 +#: ../../library/enum.rst:724 msgid "" "Out-of-range values lose their *Flag* membership and revert to :class:`int`. " "This is the default for :class:`IntFlag`::" msgstr "" -#: ../../library/enum.rst:738 +#: ../../library/enum.rst:737 msgid "" -"Out-of-range values are kept, and the *Flag* membership is kept. This is " -"used for some stdlib flags:" +"Out-of-range values are kept, and the *Flag* membership is kept. This is " +"used for some stdlib flags::" msgstr "" -#: ../../library/enum.rst:754 +#: ../../library/enum.rst:753 msgid "Supported ``__dunder__`` names" msgstr "" -#: ../../library/enum.rst:756 +#: ../../library/enum.rst:755 msgid "" ":attr:`~EnumType.__members__` is a read-only ordered mapping of " "``member_name``:``member`` items. It is only available on the class." msgstr "" -#: ../../library/enum.rst:759 +#: ../../library/enum.rst:758 msgid "" ":meth:`~object.__new__`, if specified, must create and return the enum " "members; it is also a very good idea to set the member's :attr:`!_value_` " "appropriately. Once all the members are created it is no longer used." msgstr "" -#: ../../library/enum.rst:765 +#: ../../library/enum.rst:764 msgid "Supported ``_sunder_`` names" msgstr "" -#: ../../library/enum.rst:767 +#: ../../library/enum.rst:766 msgid "``_name_`` -- name of the member" msgstr "" -#: ../../library/enum.rst:768 +#: ../../library/enum.rst:767 msgid "" "``_value_`` -- value of the member; can be set / modified in ``__new__``" msgstr "" -#: ../../library/enum.rst:770 +#: ../../library/enum.rst:769 msgid "" "``_missing_`` -- a lookup function used when a value is not found; may be " "overridden" msgstr "" -#: ../../library/enum.rst:772 +#: ../../library/enum.rst:771 msgid "" "``_ignore_`` -- a list of names, either as a :class:`list` or a :class:" "`str`, that will not be transformed into members, and will be removed from " "the final class" msgstr "" -#: ../../library/enum.rst:775 +#: ../../library/enum.rst:774 msgid "" "``_order_`` -- used in Python 2/3 code to ensure member order is consistent " "(class attribute, removed during class creation)" msgstr "" -#: ../../library/enum.rst:777 +#: ../../library/enum.rst:776 msgid "" "``_generate_next_value_`` -- used to get an appropriate value for an enum " "member; may be overridden" msgstr "" -#: ../../library/enum.rst:782 +#: ../../library/enum.rst:781 msgid "" "For standard :class:`Enum` classes the next value chosen is the last value " "seen incremented by one." msgstr "" -#: ../../library/enum.rst:785 +#: ../../library/enum.rst:784 msgid "" "For :class:`Flag` classes the next value chosen will be the next highest " "power-of-two, regardless of the last value seen." msgstr "" -#: ../../library/enum.rst:788 +#: ../../library/enum.rst:787 msgid "``_missing_``, ``_order_``, ``_generate_next_value_``" msgstr "``_missing_``\\ 、\\ ``_order_``\\ 、\\ ``_generate_next_value_``" -#: ../../library/enum.rst:789 +#: ../../library/enum.rst:788 msgid "``_ignore_``" msgstr "``_ignore_``" -#: ../../library/enum.rst:794 +#: ../../library/enum.rst:793 msgid "Utilities and Decorators" msgstr "" -#: ../../library/enum.rst:798 +#: ../../library/enum.rst:797 msgid "" "*auto* can be used in place of a value. If used, the *Enum* machinery will " "call an *Enum*'s :meth:`~Enum._generate_next_value_` to get an appropriate " @@ -859,58 +857,58 @@ msgid "" "manually specified values." msgstr "" -#: ../../library/enum.rst:806 +#: ../../library/enum.rst:805 msgid "" "*auto* instances are only resolved when at the top level of an assignment:" msgstr "" -#: ../../library/enum.rst:808 +#: ../../library/enum.rst:807 msgid "``FIRST = auto()`` will work (auto() is replaced with ``1``);" msgstr "" -#: ../../library/enum.rst:809 +#: ../../library/enum.rst:808 msgid "" "``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` " "is" msgstr "" -#: ../../library/enum.rst:810 +#: ../../library/enum.rst:809 msgid "used to create the ``SECOND`` enum member;" msgstr "" -#: ../../library/enum.rst:811 +#: ../../library/enum.rst:810 msgid "" "``THREE = [auto(), -3]`` will *not* work (``, -3`` is used to " "create the ``THREE`` enum member)" msgstr "" -#: ../../library/enum.rst:816 +#: ../../library/enum.rst:815 msgid "" "In prior versions, ``auto()`` had to be the only thing on the assignment " "line to work properly." msgstr "" -#: ../../library/enum.rst:819 +#: ../../library/enum.rst:818 msgid "" "``_generate_next_value_`` can be overridden to customize the values used by " "*auto*." msgstr "" -#: ../../library/enum.rst:822 +#: ../../library/enum.rst:821 msgid "" "in 3.13 the default ``_generate_next_value_`` will always return the highest " "member value incremented by 1, and will fail if any member is an " "incompatible type." msgstr "" -#: ../../library/enum.rst:828 +#: ../../library/enum.rst:827 msgid "" "A decorator similar to the built-in *property*, but specifically for " "enumerations. It allows member attributes to have the same names as members " "themselves." msgstr "" -#: ../../library/enum.rst:832 +#: ../../library/enum.rst:831 msgid "" "the *property* and the member must be defined in separate classes; for " "example, the *value* and *name* attributes are defined in the *Enum* class, " @@ -918,29 +916,29 @@ msgid "" "``name``." msgstr "" -#: ../../library/enum.rst:841 +#: ../../library/enum.rst:840 msgid "" "A :keyword:`class` decorator specifically for enumerations. It searches an " "enumeration's :attr:`~EnumType.__members__`, gathering any aliases it finds; " "if any are found :exc:`ValueError` is raised with the details::" msgstr "" -#: ../../library/enum.rst:859 +#: ../../library/enum.rst:858 msgid "" "A :keyword:`class` decorator specifically for enumerations. Members from :" "class:`EnumCheck` are used to specify which constraints should be checked on " "the decorated enumeration." msgstr "" -#: ../../library/enum.rst:867 +#: ../../library/enum.rst:866 msgid "A decorator for use in enums: its target will become a member." msgstr "" -#: ../../library/enum.rst:873 +#: ../../library/enum.rst:872 msgid "A decorator for use in enums: its target will not become a member." msgstr "" -#: ../../library/enum.rst:879 +#: ../../library/enum.rst:878 msgid "" "A decorator to change the :class:`str() ` and :func:`repr` of an enum " "to show its members as belonging to the module instead of its class. Should " @@ -948,41 +946,41 @@ msgid "" "namespace (see :class:`re.RegexFlag` for an example)." msgstr "" -#: ../../library/enum.rst:889 +#: ../../library/enum.rst:888 msgid "Return a list of all power-of-two integers contained in a flag *value*." msgstr "" -#: ../../library/enum.rst:896 +#: ../../library/enum.rst:895 msgid "Notes" msgstr "" -#: ../../library/enum.rst:898 +#: ../../library/enum.rst:897 msgid ":class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag`" msgstr "" -#: ../../library/enum.rst:900 +#: ../../library/enum.rst:899 msgid "" "These three enum types are designed to be drop-in replacements for existing " "integer- and string-based values; as such, they have extra limitations:" msgstr "" -#: ../../library/enum.rst:903 +#: ../../library/enum.rst:902 msgid "``__str__`` uses the value and not the name of the enum member" msgstr "" -#: ../../library/enum.rst:905 +#: ../../library/enum.rst:904 msgid "" "``__format__``, because it uses ``__str__``, will also use the value of the " "enum member instead of its name" msgstr "" -#: ../../library/enum.rst:908 +#: ../../library/enum.rst:907 msgid "" "If you do not need/want those limitations, you can either create your own " "base class by mixing in the ``int`` or ``str`` type yourself::" msgstr "" -#: ../../library/enum.rst:915 +#: ../../library/enum.rst:914 msgid "or you can reassign the appropriate :meth:`str`, etc., in your enum::" msgstr "" diff --git a/library/plistlib.po b/library/plistlib.po index fd4018673b..9775c40d86 100644 --- a/library/plistlib.po +++ b/library/plistlib.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-09-29 00:11+0000\n" +"POT-Creation-Date: 2023-02-18 00:17+0000\n" "PO-Revision-Date: 2016-01-31 07:27+0000\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" @@ -28,8 +28,8 @@ msgstr "**原始碼:**\\ :source:`Lib/plistlib.py`" #: ../../library/plistlib.rst:19 msgid "" -"This module provides an interface for reading and writing the \"property list" -"\" files used by Apple, primarily on macOS and iOS. This module supports " +"This module provides an interface for reading and writing the \"property " +"list\" files used by Apple, primarily on macOS and iOS. This module supports " "both binary and XML plist files." msgstr "" @@ -221,6 +221,6 @@ msgstr "範例" msgid "Generating a plist::" msgstr "" -#: ../../library/plistlib.rst:180 +#: ../../library/plistlib.rst:182 msgid "Parsing a plist::" msgstr "" From 0276d389e5b1a73ed949c7bbaf095f5c6bb6155e Mon Sep 17 00:00:00 2001 From: "Matt.Wang" Date: Sat, 18 Feb 2023 14:49:52 +0800 Subject: [PATCH 4/4] fix: resolve fuzzy entries --- faq/programming.po | 7 +++---- library/collections.po | 15 +++++++-------- library/operator.po | 8 ++++---- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/faq/programming.po b/faq/programming.po index 383f597fe0..ca9f4b0497 100644 --- a/faq/programming.po +++ b/faq/programming.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-02-15 00:17+0000\n" -"PO-Revision-Date: 2023-02-18 13:52+0800\n" +"PO-Revision-Date: 2023-02-18 14:48+0800\n" "Last-Translator: Adrian Liaw \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -3031,14 +3031,13 @@ msgstr "" "積的方法結果也會累積。他們可以不受限制地成長。" #: ../../faq/programming.rst:1982 -#, fuzzy msgid "" "The *lru_cache* approach works with methods that have :term:`hashable` " "arguments. It creates a reference to the instance unless special efforts " "are made to pass in weak references." msgstr "" -"*lru_cache* 方法適用於具有可散列引數的方法。除非特別努力傳遞弱引用,否則它會" -"建立對實例的引用。" +"*lru_cache* 方法適用於具有\\ :term:`可雜湊 `\\ 引數的方法。除非特別" +"努力傳遞弱引用,否則它會建立對實例的引用。" #: ../../faq/programming.rst:1986 #, fuzzy diff --git a/library/collections.po b/library/collections.po index d8a65cb472..830860fa10 100644 --- a/library/collections.po +++ b/library/collections.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-02-15 00:17+0000\n" -"PO-Revision-Date: 2022-03-01 01:14+0800\n" +"PO-Revision-Date: 2023-02-18 14:48+0800\n" "Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -20,7 +20,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 3.0.1\n" +"X-Generator: Poedit 3.2.2\n" #: ../../library/collections.rst:2 msgid ":mod:`collections` --- Container datatypes" @@ -70,9 +70,8 @@ msgid ":class:`Counter`" msgstr ":class:`Counter`" #: ../../library/collections.rst:28 -#, fuzzy msgid "dict subclass for counting :term:`hashable` objects" -msgstr "dict 的子類別,用來計算可雜湊 (hashable) 物件的數量" +msgstr "dict 的子類別,用來計算\\ :term:`可雜湊 `\\ 物件的數量" #: ../../library/collections.rst:29 msgid ":class:`OrderedDict`" @@ -353,7 +352,6 @@ msgstr "" "::" #: ../../library/collections.rst:244 -#, fuzzy msgid "" "A :class:`Counter` is a :class:`dict` subclass for counting :term:`hashable` " "objects. It is a collection where elements are stored as dictionary keys and " @@ -361,9 +359,10 @@ msgid "" "integer value including zero or negative counts. The :class:`Counter` class " "is similar to bags or multisets in other languages." msgstr "" -":class:`Counter` 是 :class:`dict` 的子類別,用來計算可雜湊物件的數量。它是將" -"物件與其計數作為字典的鍵值對儲存的集合容器。計數可以是包含 0 與負數的任何整數" -"值。:class:`Counter` 類別類似其他程式語言中的 bags 或 multisets。" +":class:`Counter` 是 :class:`dict` 的子類別,用來計算\\ :term:`可雜湊 " +"`\\ 物件的數量。它是將物件與其計數作為字典的鍵值對儲存的集合容器。" +"計數可以是包含 0 與負數的任何整數值。:class:`Counter` 類別類似其他程式語言中" +"的 bags 或 multisets。" #: ../../library/collections.rst:250 msgid "" diff --git a/library/operator.po b/library/operator.po index 4708caa318..5db83f4ab9 100644 --- a/library/operator.po +++ b/library/operator.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Python 3.11\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-02-15 00:17+0000\n" -"PO-Revision-Date: 2021-12-09 23:32+0800\n" +"PO-Revision-Date: 2023-02-18 14:49+0800\n" "Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -19,7 +19,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 3.0\n" +"X-Generator: Poedit 3.2.2\n" #: ../../library/operator.rst:2 msgid ":mod:`operator` --- Standard operators as functions" @@ -317,14 +317,14 @@ msgstr "" "r[3])``。" #: ../../library/operator.rst:329 -#, fuzzy msgid "" "The items can be any type accepted by the operand's :meth:`__getitem__` " "method. Dictionaries accept any :term:`hashable` value. Lists, tuples, and " "strings accept an index or a slice:" msgstr "" "傳入的條目可以為運算元的 :meth:`__getitem__` 所接受的任何型別。dictionary(字" -"典)接受任意可雜湊 (hashable) 的值。list、tupple 和字串接受索引或切片:" +"典)接受任意\\ :term:`可雜湊 `\\ 的值。list、tupple 和字串接受索引" +"或切片:" #: ../../library/operator.rst:343 msgid ""