Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: resolve fuzzy entries
  • Loading branch information
mattwang44 committed Dec 24, 2025
commit 553a17c683199b09f17d7887a8d9740a4dcd48d3
11 changes: 3 additions & 8 deletions glossary.po
Original file line number Diff line number Diff line change
Expand Up @@ -2380,9 +2380,8 @@ msgid "See also :term:`module`."
msgstr "另請參閱 :term:`module`\\ (模組)。"

#: ../../glossary.rst:1071
#, fuzzy
msgid "native code"
msgstr "bytecode(位元組碼)"
msgstr ""

#: ../../glossary.rst:1073
msgid ""
Expand Down Expand Up @@ -2915,9 +2914,8 @@ msgstr ""
"'email.mime.text'"

#: ../../glossary.rst:1317
#, fuzzy
msgid "race condition"
msgstr "garbage collection(垃圾回收)"
msgstr ""

#: ../../glossary.rst:1319
msgid ""
Expand Down Expand Up @@ -3005,11 +3003,8 @@ msgid ""
msgstr ""

#: ../../glossary.rst:1368
#, fuzzy
msgid "See also :term:`lock` and :term:`deadlock`."
msgstr ""
"另請參閱 :term:`regular package`\\ (正規套件)和 :term:`namespace "
"package`\\ (命名空間套件)。"
msgstr "另請參閱 :term:`lock` 和 :term:`deadlock`。"

#: ../../glossary.rst:1369
msgid "REPL"
Expand Down
12 changes: 5 additions & 7 deletions library/ast.po
Original file line number Diff line number Diff line change
Expand Up @@ -406,17 +406,16 @@ msgid ""
msgstr ""

#: ../../library/ast.rst:144
#, fuzzy
msgid ""
"Previous versions of Python provided the AST classes :class:`!ast.Num`, :"
"class:`!ast.Str`, :class:`!ast.Bytes`, :class:`!ast.NameConstant` and :class:"
"`!ast.Ellipsis`, which were deprecated in Python 3.8. These classes were "
"removed in Python 3.14, and their functionality has been replaced with :"
"class:`ast.Constant`."
msgstr ""
"舊的類別 :class:`!ast.Num`、:class:`!ast.Str`、:class:`!ast.Bytes`、:class:`!"
"ast.NameConstant` 和 :class:`!ast.Ellipsis` 仍然可用,但它們將在未來的 "
"Python 釋出版本中移除。與此同時,實例化它們將回傳不同類別的實例。"
"過去的 Python 版本提供了 AST 類別 :class:`!ast.Num`、:class:`!ast.Str`、:class:`!ast.Bytes`"
"、:class:`!ast.NameConstant` 和 :class:`!ast.Ellipsis`,這些類別在 Python 3.8 中已被棄用。"
"這些類別在 Python 3.14 中被移除,其功能已被 :class:`ast.Constant` 取代。"

#: ../../library/ast.rst:152
msgid ""
Expand Down Expand Up @@ -4264,16 +4263,15 @@ msgstr ""
"`NodeTransformer`。"

#: ../../library/ast.rst:2439
#, fuzzy
msgid ""
"Methods :meth:`!visit_Num`, :meth:`!visit_Str`, :meth:`!visit_Bytes`, :meth:"
"`!visit_NameConstant` and :meth:`!visit_Ellipsis` will not be called in "
"Python 3.14+. Add the :meth:`visit_Constant` method instead to handle all "
"constant nodes."
msgstr ""
":meth:`!visit_Num`、:meth:`!visit_Str`、:meth:`!visit_Bytes`、:meth:`!"
"visit_NameConstant` 和 :meth:`!visit_Ellipsis` 方法現已棄用,並且不會在未來的"
"Python 版本中被呼叫。新增 :meth:`visit_Constant` 方法來處理所有常數節點。"
"visit_NameConstant` 和 :meth:`!visit_Ellipsis` 方法在 Python 3.14+ 中將不會被呼叫。"
"請改為新增 :meth:`visit_Constant` 方法來處理所有常數節點。"

#: ../../library/ast.rst:2447
msgid ""
Expand Down
6 changes: 2 additions & 4 deletions library/enum.po
Original file line number Diff line number Diff line change
Expand Up @@ -1706,11 +1706,10 @@ msgstr ""
"說,是成員名稱的小寫版本。如果混用 *auto()* 和手動指定值的話要特別注意。"

#: ../../library/enum.rst:950
#, fuzzy
msgid ""
"*auto* instances are only resolved when at the top level of an assignment, "
"either by itself or as part of a tuple:"
msgstr "*auto* 實例只有在最上層的賦值時才會被解析:"
msgstr "*auto* 實例只有在最上層的賦值時才會被解析,不論是獨自一個或作為元組的一部分:"

#: ../../library/enum.rst:953
msgid "``FIRST = auto()`` will work (auto() is replaced with ``1``);"
Expand All @@ -1725,12 +1724,11 @@ msgstr ""
"用來建立列舉成員 ``SECOND``;"

#: ../../library/enum.rst:956
#, fuzzy
msgid ""
"``THREE = [auto(), -3]`` will *not* work (``[<auto instance>, -3]`` is used "
"to create the ``THREE`` enum member)"
msgstr ""
"``THREE = [auto(), -3]`` *無法*\\ 運作(\\ ``<auto 實例>, -3`` 會被用來建立列"
"``THREE = [auto(), -3]`` *無法*\\ 運作(``[<auto instance>, -3]`` 會被用來建立列"
"舉成員 ``THREE``)"

#: ../../library/enum.rst:961
Expand Down
3 changes: 1 addition & 2 deletions library/exceptions.po
Original file line number Diff line number Diff line change
Expand Up @@ -1085,13 +1085,12 @@ msgstr ""
"除了 :exc:`OSError` 的那些屬性之外,:exc:`BlockingIOError` 有多一個屬性:"

#: ../../library/exceptions.rst:738
#, fuzzy
msgid ""
"An integer containing the number of **bytes** written to the stream before "
"it blocked. This attribute is available when using the buffered I/O classes "
"from the :mod:`io` module."
msgstr ""
"一個整數,內容為在其阻塞之前,已寫進串流的字元數。當使用 :mod:`io` 模組裡的緩"
"一個整數,內容為在其阻塞之前,已寫進串流的\\ **位元組**\\ 數。當使用 :mod:`io` 模組裡的緩"
"衝 I/O 類別時這個屬性是可用的。"

#: ../../library/exceptions.rst:744
Expand Down
33 changes: 19 additions & 14 deletions library/stdtypes.po
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ msgid "negated object identity"
msgstr "否定的物件識別性"

#: ../../library/stdtypes.rst:167
#, fuzzy
msgid ""
"Unless stated otherwise, objects of different types never compare equal. The "
"``==`` operator is always defined but for some object types (for example, "
Expand All @@ -315,7 +314,7 @@ msgid ""
"raise a :exc:`TypeError` exception when one of the arguments is a complex "
"number."
msgstr ""
"除了不同的數值型別外,不同型別的物件不能進行相等比較。運算子 ``==`` 總有定"
"除非有另外聲明,不同型別的物件不能進行相等比較。運算子 ``==`` 總有定"
"義,但在某些物件型別(例如,class 物件)時,運算子會等同於 :keyword:`is`。其"
"他運算子 ``<``、``<=``、``>`` 及 ``>=`` 皆僅在有意義的部分有所定義;例如,當"
"其中一個引數為複數時,將引發一個 :exc:`TypeError` 的例外。"
Expand Down Expand Up @@ -3545,7 +3544,6 @@ msgid ""
msgstr ""

#: ../../library/stdtypes.rst:2266
#, fuzzy
msgid ""
">>> 'Python'.ljust(10)\n"
"'Python '\n"
Expand All @@ -3554,17 +3552,16 @@ msgid ""
">>> 'Monty Python'.ljust(10, '.')\n"
"'Monty Python'"
msgstr ""
">>> 'Python'.center(10)\n"
"' Python '\n"
">>> 'Python'.center(10, '-')\n"
"'--Python--'\n"
">>> 'Python'.center(4)\n"
"'Python'"
">>> 'Python'.ljust(10)\n"
"'Python '\n"
">>> 'Python'.ljust(10, '.')\n"
"'Python....'\n"
">>> 'Monty Python'.ljust(10, '.')\n"
"'Monty Python'"

#: ../../library/stdtypes.rst:2275
#, fuzzy
msgid "See also :meth:`rjust`."
msgstr "另請參閱 :meth:`split`。"
msgstr "另請參閱 :meth:`rjust`。"

#: ../../library/stdtypes.rst:2280
msgid ""
Expand Down Expand Up @@ -4392,6 +4389,16 @@ msgid ""
">>> f'{one_third = :~>10}~'\n"
"'one_third = ~~~~~~~1/3~'"
msgstr ""
">>> from fractions import Fraction\n"
">>> one_third = Fraction(1, 3)\n"
">>> f'{one_third:.6f}'\n"
"'0.333333'\n"
">>> f'{one_third:_^+10}'\n"
"'___+1/3___'\n"
">>> >>> f'{one_third!r:_^20}'\n"
"'___Fraction(1, 3)___'\n"
">>> f'{one_third = :~>10}~'\n"
"'one_third = ~~~~~~~1/3~'"

#: ../../library/stdtypes.rst:2802
msgid "Template String Literals (t-strings)"
Expand Down Expand Up @@ -7759,7 +7766,6 @@ msgstr ""
"(traceback) 資訊。否則,所有三個引數都是 ``None``。"

#: ../../library/stdtypes.rst:5461
#, fuzzy
msgid ""
"Returning a true value from this method will cause the :keyword:`with` "
"statement to suppress the exception and continue execution with the "
Expand All @@ -7768,8 +7774,7 @@ msgid ""
msgstr ""
"從此方法回傳 true 值將導致 :keyword:`with` 陳述式抑制例外並繼續執行緊接著 :"
"keyword:`!with` 陳述式之後的陳述式。否則,該例外將在該方法執行完畢後繼續傳播 "
"(propagate)。執行此方法期間發生的例外會取代 :keyword:`!with` 陳述式主體中發生"
"的任何例外。"
"(propagate)。"

#: ../../library/stdtypes.rst:5466
msgid ""
Expand Down
3 changes: 1 addition & 2 deletions reference/compound_stmts.po
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ msgid ""
msgstr ""

#: ../../reference/compound_stmts.rst:386
#, fuzzy
msgid ""
">>> try:\n"
"... raise BlockingIOError\n"
Expand All @@ -459,7 +458,7 @@ msgstr ""
"... except* BlockingIOError as e:\n"
"... print(repr(e))\n"
"...\n"
"ExceptionGroup('', (BlockingIOError()))"
"ExceptionGroup('', (BlockingIOError(),))"

#: ../../reference/compound_stmts.rst:393
msgid ""
Expand Down
28 changes: 25 additions & 3 deletions reference/lexical_analysis.po
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,10 @@ msgid ""
">>> f'{who.title()} expects the {nationality} Inquisition!'\n"
"'Nobody expects the Spanish Inquisition!'"
msgstr ""
">>> who = 'nobody'\n"
">>> nationality = 'Spanish'\n"
">>> f'{who.title()} expects the {nationality} Inquisition!'\n"
"'Nobody expects the Spanish Inquisition!'"

#: ../../reference/lexical_analysis.rst:1064
msgid ""
Expand All @@ -1588,6 +1592,8 @@ msgid ""
">>> print(f'{{...}}')\n"
"{...}"
msgstr ""
">>> print(f'{{...}}')\n"
"{...}"

#: ../../reference/lexical_analysis.rst:1070
msgid ""
Expand Down Expand Up @@ -1625,6 +1631,8 @@ msgid ""
">>> f'{(half := 1/2)}, {half * 42}'\n"
"'0.5, 21.0'"
msgstr ""
">>> f'{(half := 1/2)}, {half * 42}'\n"
"'0.5, 21.0'"

#: ../../reference/lexical_analysis.rst:1097
msgid ""
Expand Down Expand Up @@ -1674,6 +1682,9 @@ msgid ""
">>> f'Repeated:{f' hello {name}' * 3}'\n"
"'Repeated: hello world hello world hello world'"
msgstr ""
">>> name = 'world'\n"
">>> f'Repeated:{f' hello {name}' * 3}'\n"
"'Repeated: hello world hello world hello world'"

#: ../../reference/lexical_analysis.rst:1120
msgid "Portable Python programs should not use more than 5 levels of nesting."
Expand Down Expand Up @@ -1738,6 +1749,9 @@ msgid ""
">>> f'{number:20.7f}'\n"
"' 14.3000000'"
msgstr ""
">>> number = 14.3\n"
">>> f'{number:20.7f}'\n"
"' 14.3000000'"

#: ../../reference/lexical_analysis.rst:1159
msgid "Top-level format specifiers may include nested replacement fields::"
Expand All @@ -1750,6 +1764,10 @@ msgid ""
">>> f'{number:{field_size}.{precision}f}'\n"
"' 14.3000000'"
msgstr ""
">>> field_size = 20\n"
">>> precision = 7\n"
">>> f'{number:{field_size}.{precision}f}'\n"
"' 14.3000000'"

#: ../../reference/lexical_analysis.rst:1166
msgid ""
Expand All @@ -1765,6 +1783,11 @@ msgid ""
">>> f'{number:{field_size:05}}'\n"
"'00000000000000000003'"
msgstr ""
">>> number = 3\n"
">>> f'{number:{field_size}}'\n"
"' 3'\n"
">>> f'{number:{field_size:05}}'\n"
"'00000000000000000003'"

#: ../../reference/lexical_analysis.rst:1175
msgid ""
Expand All @@ -1779,7 +1802,6 @@ msgid ""
msgstr ""

#: ../../reference/lexical_analysis.rst:1181
#, fuzzy
msgid ""
">>> def foo():\n"
"... f\"Not a docstring\"\n"
Expand All @@ -1790,8 +1812,8 @@ msgstr ""
">>> def foo():\n"
"... f\"Not a docstring\"\n"
"...\n"
">>> foo.__doc__ is None\n"
"True"
">>> print(foo.__doc__)\n"
"None"

#: ../../reference/lexical_analysis.rst:1189
msgid ":pep:`498` -- Literal String Interpolation"
Expand Down
7 changes: 3 additions & 4 deletions sphinx.po
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ msgid "Show source"
msgstr "顯示原始碼"

#: ../../tools/templates/customsourcelink.html:14
#, fuzzy
msgid "Show translation source"
msgstr "顯示原始碼"
msgstr "顯示翻譯原始碼"

#: ../../tools/templates/download.html:2
#: ../../tools/templates/indexsidebar.html:1
Expand Down Expand Up @@ -142,8 +141,8 @@ msgid ""
"copy of the CPython repository.\n"
msgstr ""
"\n"
"我們不再提供預先建置好的說明文件 PDF 檔案。\n"
"要建立 PDF 歸檔,請遵循\n"
"我們不再提供預先建置好的說明文件 PDF 檔案。"
"要建立 PDF 歸檔,請遵循"
"<a href=\"https://devguide.python.org/documentation/start-documenting/"
"#building-the-documentation\">開發者指南</a>中的說明,並在 CPython 程式碼儲存"
"庫的 <code>Doc/</code> 目錄中執行 <code>make dist-pdf</code>。\n"
Expand Down
10 changes: 6 additions & 4 deletions tutorial/controlflow.po
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,6 @@ msgid "Here is an example of a multi-line docstring::"
msgstr "下面是多行說明字串的一個範例: ::"

#: ../../tutorial/controlflow.rst:1047
#, fuzzy
msgid ""
">>> def my_function():\n"
"... \"\"\"Do nothing, but document it.\n"
Expand All @@ -2163,14 +2162,17 @@ msgstr ""
">>> def my_function():\n"
"... \"\"\"不做任何事,但有文件說明。\n"
"...\n"
"... 不,真的,它什麼都不做。\n"
"... 它真的什麼都不做:\n"
"... \"\"\"\n"
"... pass\n"
"...\n"
">>> print(my_function.__doc__)\n"
"Do nothing, but document it.\n"
"不做任何事,但有文件說明。\n"
"\n"
"它真的什麼都不做:\n"
"\n"
"No, really, it doesn't do anything."
" >>> my_function()\n"
" >>>"

#: ../../tutorial/controlflow.rst:1069
msgid "Function Annotations"
Expand Down