Skip to content

Commit

Permalink
fix: resolve fuzzy entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Sep 24, 2024
1 parent 83cbec1 commit 216df63
Show file tree
Hide file tree
Showing 38 changed files with 228 additions and 539 deletions.
6 changes: 2 additions & 4 deletions c-api/exceptions.po
Original file line number Diff line number Diff line change
Expand Up @@ -1339,14 +1339,12 @@ msgid ":exc:`ProcessLookupError`"
msgstr ":exc:`ProcessLookupError`"

#: ../../c-api/exceptions.rst:1100
#, fuzzy
msgid ":c:data:`PyExc_PythonFinalizationError`"
msgstr ":c:data:`PyExc_ConnectionError`"
msgstr ":c:data:`PyExc_PythonFinalizationError`"

#: ../../c-api/exceptions.rst:1100
#, fuzzy
msgid ":exc:`PythonFinalizationError`"
msgstr ":exc:`ConnectionError`"
msgstr ":exc:`PythonFinalizationError`"

#: ../../c-api/exceptions.rst:1102
msgid ":c:data:`PyExc_RecursionError`"
Expand Down
36 changes: 18 additions & 18 deletions c-api/object.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,75 +48,75 @@ msgstr ""

#: ../../c-api/object.rst:22 ../../c-api/object.rst:27
msgid "``0``"
msgstr ""
msgstr "``0``"

#: ../../c-api/object.rst:22
msgid ":py:data:`None`"
msgstr ""
msgstr ":py:data:`None`"

#: ../../c-api/object.rst:23 ../../c-api/object.rst:28
msgid "``1``"
msgstr ""
msgstr "``1``"

#: ../../c-api/object.rst:23
msgid ":py:data:`False`"
msgstr ""
msgstr ":py:data:`False`"

#: ../../c-api/object.rst:24
msgid "``2``"
msgstr ""
msgstr "``2``"

#: ../../c-api/object.rst:24
msgid ":py:data:`True`"
msgstr ""
msgstr ":py:data:`True`"

#: ../../c-api/object.rst:25
msgid "``3``"
msgstr ""
msgstr "``3``"

#: ../../c-api/object.rst:25
msgid ":py:data:`Ellipsis`"
msgstr ""
msgstr ":py:data:`Ellipsis`"

#: ../../c-api/object.rst:26
msgid "``4``"
msgstr ""
msgstr "``4``"

#: ../../c-api/object.rst:26
msgid ":py:data:`NotImplemented`"
msgstr ""
msgstr ":py:data:`NotImplemented`"

#: ../../c-api/object.rst:27
msgid "``5``"
msgstr ""
msgstr "``5``"

#: ../../c-api/object.rst:28
msgid "``6``"
msgstr ""
msgstr "``6``"

#: ../../c-api/object.rst:29
msgid "``7``"
msgstr ""
msgstr "``7``"

#: ../../c-api/object.rst:29
msgid "``''``"
msgstr ""
msgstr "``''``"

#: ../../c-api/object.rst:30
msgid "``8``"
msgstr ""
msgstr "``8``"

#: ../../c-api/object.rst:30
msgid "``b''``"
msgstr ""
msgstr "``b''``"

#: ../../c-api/object.rst:31
msgid "``9``"
msgstr ""
msgstr "``9``"

#: ../../c-api/object.rst:31
msgid "``()``"
msgstr ""
msgstr "``()``"

#: ../../c-api/object.rst:34
msgid ""
Expand Down
11 changes: 5 additions & 6 deletions c-api/unicode.po
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ msgstr ""

#: ../../c-api/unicode.rst:521
msgid "``T``"
msgstr ""
msgstr "``T``"

#: ../../c-api/unicode.rst:523
msgid ""
Expand All @@ -710,7 +710,7 @@ msgstr ""

#: ../../c-api/unicode.rst:526
msgid "``#T``"
msgstr ""
msgstr "``#T``"

#: ../../c-api/unicode.rst:528
msgid ""
Expand All @@ -720,12 +720,11 @@ msgstr ""

#: ../../c-api/unicode.rst:531
msgid "``N``"
msgstr ""
msgstr "``N``"

#: ../../c-api/unicode.rst:532 ../../c-api/unicode.rst:537
#, fuzzy
msgid ":c:expr:`PyTypeObject*`"
msgstr ":c:expr:`PyObject*`"
msgstr ":c:expr:`PyTypeObject*`"

#: ../../c-api/unicode.rst:533
msgid ""
Expand All @@ -735,7 +734,7 @@ msgstr ""

#: ../../c-api/unicode.rst:536
msgid "``#N``"
msgstr ""
msgstr "``#N``"

#: ../../c-api/unicode.rst:538
msgid ""
Expand Down
14 changes: 6 additions & 8 deletions faq/extending.po
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ msgstr "我可以在 C++ 中建立自己的函式嗎?"
#: ../../faq/extending.rst:28
#, fuzzy
msgid ""
"Yes, using the C compatibility features found in C++. Place ``extern "
"\"C\" { ... }`` around the Python include files and put ``extern \"C\"`` "
"before each function that is going to be called by the Python interpreter. "
"Global or static C++ objects with constructors are probably not a good idea."
"Yes, using the C compatibility features found in C++. Place ``extern \"C\" "
"{ ... }`` around the Python include files and put ``extern \"C\"`` before "
"each function that is going to be called by the Python interpreter. Global "
"or static C++ objects with constructors are probably not a good idea."
msgstr ""
"是的,使用 C++ 中的 C 相容性功能。將 ``extern \"C\" { ... }`` 放在 Python 包"
"含檔案周圍,並將 ``extern \"C\"`` 放在每個將由 Python 直譯器呼叫的函式之前。"
Expand Down Expand Up @@ -474,14 +474,12 @@ msgstr ""
"目錄包含編譯 Python 擴充所需的各種檔案。"

#: ../../faq/extending.rst:252
#, fuzzy
msgid "For Red Hat, install the python3-devel RPM to get the necessary files."
msgstr "在 Red Hat 上,請安裝 python-devel RPM 來取得必要的檔案。"
msgstr "在 Red Hat 上,請安裝 python3-devel RPM 來取得必要的檔案。"

#: ../../faq/extending.rst:254
#, fuzzy
msgid "For Debian, run ``apt-get install python3-dev``."
msgstr "對於 Debian,運行 ``apt-get install python-dev``。"
msgstr "對於 Debian,運行 ``apt-get install python3-dev``。"

#: ../../faq/extending.rst:257
msgid "How do I tell \"incomplete input\" from \"invalid input\"?"
Expand Down
20 changes: 0 additions & 20 deletions faq/gui.po
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2022, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
Expand Down Expand Up @@ -139,22 +138,3 @@ msgstr ""
"最常見的原因是,繫結到的小工具並沒有「鍵盤焦點 (keyboard focus)」。請查看 Tk "
"說明文件中關於焦點命令的敘述。通常,點擊一個小工具,會讓它得到鍵盤焦點(但不"
"適用於標籤;請參閱 takefocus 選項)。"

#~ msgid ""
#~ "To get truly stand-alone applications, the Tcl scripts that form the "
#~ "library have to be integrated into the application as well. One tool "
#~ "supporting that is SAM (stand-alone modules), which is part of the Tix "
#~ "distribution (https://tix.sourceforge.net/)."
#~ msgstr ""
#~ "要得到真正獨立的應用程式,必須將構成函式庫的 Tcl 腳本也整合到應用程式中。"
#~ "一個可支援該方法的工具是 SAM(stand-alone modules,獨立模組),它是 Tix 發"
#~ "行版的一部分 (https://tix.sourceforge.net/)。"

#~ msgid ""
#~ "Build Tix with SAM enabled, perform the appropriate call to :c:func:`!"
#~ "Tclsam_init`, etc. inside Python's :file:`Modules/tkappinit.c`, and link "
#~ "with libtclsam and libtksam (you might include the Tix libraries as well)."
#~ msgstr ""
#~ "請在 SAM 被啟用的情況下建置 Tix,對 Python 的 :file:`Modules/tkappinit.c` "
#~ "中的 :c:func:`!Tclsam_init` 等函式執行適當的呼叫,並與 libtclsam 和 "
#~ "libtksam 連結(你可能也會 include Tix 函式庫)。"
5 changes: 2 additions & 3 deletions glossary.po
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,6 @@ msgid "sequence"
msgstr "sequence(序列)"

#: ../../glossary.rst:1117
#, fuzzy
msgid ""
"An :term:`iterable` which supports efficient element access using integer "
"indices via the :meth:`~object.__getitem__` special method and defines a :"
Expand All @@ -2549,8 +2548,8 @@ msgstr ""
"個 :meth:`~object.__len__` method 來回傳該序列的長度。一些內建序列型別包括 :"
"class:`list`、:class:`str`、:class:`tuple` 和 :class:`bytes`。請注意,雖然 :"
"class:`dict` 也支援 :meth:`~object.__getitem__` 和 :meth:`!__len__`,但它被視"
"為對映 (mapping) 而不是序列,因為其查找方式是使用任意的 :term:`immutable` "
"鍵,而不是整數。"
"為對映 (mapping) 而不是序列,因為其查找方式是使用任意的 :term:`hashable` 鍵,"
"而不是整數。"

#: ../../glossary.rst:1126
msgid ""
Expand Down
3 changes: 1 addition & 2 deletions howto/argparse.po
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,6 @@ msgstr ""
" print(answer)"

#: ../../howto/argparse.rst:434
#, fuzzy
msgid ""
"$ python prog.py 4 -v 3\n"
"usage: prog.py [-h] [-v {0,1,2}] square\n"
Expand Down Expand Up @@ -887,7 +886,7 @@ msgstr ""
"\n"
"options:\n"
" -h, --help show this help message and exit\n"
" -v {0,1,2}, --verbosity {0,1,2}\n"
" -v, --verbosity {0,1,2}\n"
" increase output verbosity"

#: ../../howto/argparse.rst:450
Expand Down
57 changes: 37 additions & 20 deletions howto/free-threading-extensions.po
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,23 @@ msgid ""
" return m;\n"
"}"
msgstr ""
"static struct PyModuleDef moduledef = {\n"
" PyModuleDef_HEAD_INIT,\n"
" ...\n"
"};\n"
"\n"
"PyMODINIT_FUNC\n"
"PyInit_mymodule(void)\n"
"{\n"
" PyObject *m = PyModule_Create(&moduledef);\n"
" if (m == NULL) {\n"
" return NULL;\n"
" }\n"
"#ifdef Py_GIL_DISABLED\n"
" PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);\n"
"#endif\n"
" return m;\n"
"}"

#: ../../howto/free-threading-extensions.rst:93
msgid "General API Guidelines"
Expand Down Expand Up @@ -172,7 +189,7 @@ msgstr ""

#: ../../howto/free-threading-extensions.rst:120
msgid "``PyDict_Next``"
msgstr ""
msgstr "``PyDict_Next``"

#: ../../howto/free-threading-extensions.rst:122
msgid ""
Expand Down Expand Up @@ -221,69 +238,69 @@ msgstr ""

#: ../../howto/free-threading-extensions.rst:152
msgid ":c:func:`PyList_GetItem`"
msgstr ""
msgstr ":c:func:`PyList_GetItem`"

#: ../../howto/free-threading-extensions.rst:152
msgid ":c:func:`PyList_GetItemRef`"
msgstr ""
msgstr ":c:func:`PyList_GetItemRef`"

#: ../../howto/free-threading-extensions.rst:154
msgid ":c:func:`PyDict_GetItem`"
msgstr ""
msgstr ":c:func:`PyDict_GetItem`"

#: ../../howto/free-threading-extensions.rst:154
#: ../../howto/free-threading-extensions.rst:156
msgid ":c:func:`PyDict_GetItemRef`"
msgstr ""
msgstr ":c:func:`PyDict_GetItemRef`"

#: ../../howto/free-threading-extensions.rst:156
msgid ":c:func:`PyDict_GetItemWithError`"
msgstr ""
msgstr ":c:func:`PyDict_GetItemWithError`"

#: ../../howto/free-threading-extensions.rst:158
msgid ":c:func:`PyDict_GetItemString`"
msgstr ""
msgstr ":c:func:`PyDict_GetItemString`"

#: ../../howto/free-threading-extensions.rst:158
msgid ":c:func:`PyDict_GetItemStringRef`"
msgstr ""
msgstr ":c:func:`PyDict_GetItemStringRef`"

#: ../../howto/free-threading-extensions.rst:160
msgid ":c:func:`PyDict_SetDefault`"
msgstr ""
msgstr ":c:func:`PyDict_SetDefault`"

#: ../../howto/free-threading-extensions.rst:160
msgid ":c:func:`PyDict_SetDefaultRef`"
msgstr ""
msgstr ":c:func:`PyDict_SetDefaultRef`"

#: ../../howto/free-threading-extensions.rst:162
msgid ":c:func:`PyDict_Next`"
msgstr ""
msgstr ":c:func:`PyDict_Next`"

#: ../../howto/free-threading-extensions.rst:162
msgid "none (see :ref:`PyDict_Next`)"
msgstr ""

#: ../../howto/free-threading-extensions.rst:164
msgid ":c:func:`PyWeakref_GetObject`"
msgstr ""
msgstr ":c:func:`PyWeakref_GetObject`"

#: ../../howto/free-threading-extensions.rst:164
#: ../../howto/free-threading-extensions.rst:166
msgid ":c:func:`PyWeakref_GetRef`"
msgstr ""
msgstr ":c:func:`PyWeakref_GetRef`"

#: ../../howto/free-threading-extensions.rst:166
msgid ":c:func:`PyWeakref_GET_OBJECT`"
msgstr ""
msgstr ":c:func:`PyWeakref_GET_OBJECT`"

#: ../../howto/free-threading-extensions.rst:168
msgid ":c:func:`PyImport_AddModule`"
msgstr ""
msgstr ":c:func:`PyImport_AddModule`"

#: ../../howto/free-threading-extensions.rst:168
msgid ":c:func:`PyImport_AddModuleRef`"
msgstr ""
msgstr ":c:func:`PyImport_AddModuleRef`"

#: ../../howto/free-threading-extensions.rst:171
msgid ""
Expand Down Expand Up @@ -336,15 +353,15 @@ msgstr ""

#: ../../howto/free-threading-extensions.rst:210
msgid ":c:func:`PyGILState_Ensure` and :c:func:`PyGILState_Release`"
msgstr ""
msgstr ":c:func:`PyGILState_Ensure` 和 :c:func:`PyGILState_Release`"

#: ../../howto/free-threading-extensions.rst:211
msgid ":c:func:`PyEval_SaveThread` and :c:func:`PyEval_RestoreThread`"
msgstr ""
msgstr ":c:func:`PyEval_SaveThread` 和 :c:func:`PyEval_RestoreThread`"

#: ../../howto/free-threading-extensions.rst:212
msgid ":c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS`"
msgstr ""
msgstr ":c:macro:`Py_BEGIN_ALLOW_THREADS` 和 :c:macro:`Py_END_ALLOW_THREADS`"

#: ../../howto/free-threading-extensions.rst:214
msgid ""
Expand Down Expand Up @@ -435,7 +452,7 @@ msgstr ""

#: ../../howto/free-threading-extensions.rst:271
msgid "Windows"
msgstr ""
msgstr "Windows"

#: ../../howto/free-threading-extensions.rst:273
msgid ""
Expand Down
Loading

0 comments on commit 216df63

Please sign in to comment.