Skip to content

Commit d1ca57e

Browse files
committed
fix: resolve fuzzy entries
1 parent e2c33cf commit d1ca57e

File tree

16 files changed

+95
-159
lines changed

16 files changed

+95
-159
lines changed

c-api/dict.po

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ msgstr ""
8383

8484
#: ../../c-api/dict.rst:69
8585
msgid "Return a new dictionary that contains the same key-value pairs as *p*."
86-
msgstr ""
86+
msgstr "回傳一個新的字典,包含與 *p* 相同的鍵值對。"
8787

8888
#: ../../c-api/dict.rst:74
8989
msgid ""
@@ -129,7 +129,7 @@ msgstr ""
129129

130130
#: ../../c-api/dict.rst:109
131131
msgid "If the key is missing, set *\\*result* to ``NULL`` and return ``0``."
132-
msgstr ""
132+
msgstr "如果鍵不存在,將 *\\*result* 設為 ``NULL`` 並回傳 ``0``。"
133133

134134
#: ../../c-api/dict.rst:110 ../../c-api/dict.rst:207
135135
msgid "On error, raise an exception and return ``-1``."
@@ -271,7 +271,7 @@ msgstr "回傳字典中項目的數量。此與於字典呼叫 ``len(p)`` 等效
271271

272272
#: ../../c-api/dict.rst:250
273273
msgid "Similar to :c:func:`PyDict_Size`, but without error checking."
274-
msgstr ""
274+
msgstr "和 :c:func:`PyDict_Size` 類似,但沒有錯誤檢查。"
275275

276276
#: ../../c-api/dict.rst:255
277277
msgid ""
@@ -301,6 +301,13 @@ msgid ""
301301
" ...\n"
302302
"}"
303303
msgstr ""
304+
"PyObject *key, *value;\n"
305+
"Py_ssize_t pos = 0;\n"
306+
"\n"
307+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
308+
" /* 用值做一些有趣的事情... */\n"
309+
" ...\n"
310+
"}"
304311

305312
#: ../../c-api/dict.rst:276
306313
msgid ""
@@ -567,9 +574,8 @@ msgstr ""
567574
"若 *op* 是一個字典項目視圖的實例則會回傳 true。此函式每次都會執行成功。"
568575

569576
#: ../../c-api/dict.rst:483
570-
#, fuzzy
571577
msgid "Ordered Dictionaries"
572-
msgstr "dictionary(字典)"
578+
msgstr "有序字典"
573579

574580
#: ../../c-api/dict.rst:485
575581
msgid ""
@@ -579,33 +585,29 @@ msgid ""
579585
msgstr ""
580586

581587
#: ../../c-api/dict.rst:492
582-
#, fuzzy
583588
msgid ""
584589
"Type object for ordered dictionaries. This is the same object as :class:"
585590
"`collections.OrderedDict` in the Python layer."
586591
msgstr ""
587-
":c:type:`PyTypeObject` 實例代表一個 Python 字典型別。此與 Python 層中的 :"
588-
"class:`dict` 為同一個物件。"
592+
"有序字典的型別物件。此與 Python 層中的 :class:`collections.OrderedDict` 為同一個物件。"
589593

590594
#: ../../c-api/dict.rst:498
591-
#, fuzzy
592595
msgid ""
593596
"Return true if *od* is an ordered dictionary object or an instance of a "
594597
"subtype of the :class:`~collections.OrderedDict` type. This function always "
595598
"succeeds."
596599
msgstr ""
597-
"若 *p* 是一個字典物件或字典的子型別實例則會回傳 true。此函式每次都會執行成"
598-
"。"
600+
"若 *od* 是一個有序字典物件或 :class:`~collections.OrderedDict` 的子型別實例則會回傳 true。"
601+
"此函式每次都會執行成功。"
599602

600603
#: ../../c-api/dict.rst:505
601-
#, fuzzy
602604
msgid ""
603605
"Return true if *od* is an ordered dictionary object, but not an instance of "
604606
"a subtype of the :class:`~collections.OrderedDict` type. This function "
605607
"always succeeds."
606608
msgstr ""
607-
"若 *p* 是一個字典物件但並不是一個字典子型別的實例,則回傳 true。此函式每次都"
608-
"會執行成功。"
609+
"若 *od* 是一個有序字典物件但並不是一個 :class:`~collections.OrderedDict` 子型別的實例,"
610+
"則回傳 true。此函式每次都會執行成功。"
609611

610612
#: ../../c-api/dict.rst:512
611613
msgid "Analogous to :c:type:`PyDictKeys_Type` for ordered dictionaries."
@@ -620,13 +622,12 @@ msgid "Analogous to :c:type:`PyDictItems_Type` for ordered dictionaries."
620622
msgstr ""
621623

622624
#: ../../c-api/dict.rst:527
623-
#, fuzzy
624625
msgid "Return a new empty ordered dictionary, or ``NULL`` on failure."
625-
msgstr "回傳一個新的空字典,或在失敗時回傳 ``NULL``。"
626+
msgstr "回傳一個新的空有序字典,或在失敗時回傳 ``NULL``。"
626627

627628
#: ../../c-api/dict.rst:529
628629
msgid "This is analogous to :c:func:`PyDict_New`."
629-
msgstr ""
630+
msgstr "這和 :c:func:`PyDict_New` 類似。"
630631

631632
#: ../../c-api/dict.rst:534
632633
msgid ""
@@ -635,9 +636,8 @@ msgid ""
635636
msgstr ""
636637

637638
#: ../../c-api/dict.rst:537
638-
#, fuzzy
639639
msgid "This is analogous to :c:func:`PyDict_SetItem`."
640-
msgstr "另見 :c:func:`PyObject_GetItem` 函式。"
640+
msgstr "這和 :c:func:`PyDict_SetItem` 類似。"
641641

642642
#: ../../c-api/dict.rst:542
643643
msgid ""
@@ -647,45 +647,43 @@ msgstr ""
647647

648648
#: ../../c-api/dict.rst:545
649649
msgid "This is analogous to :c:func:`PyDict_DelItem`."
650-
msgstr ""
650+
msgstr "這和 :c:func:`PyDict_DelItem` 類似。"
651651

652652
#: ../../c-api/dict.rst:548
653653
msgid "These are :term:`soft deprecated` aliases to ``PyDict`` APIs:"
654654
msgstr ""
655655

656656
#: ../../c-api/dict.rst:555
657657
msgid "``PyODict``"
658-
msgstr ""
658+
msgstr "``PyODict``"
659659

660660
#: ../../c-api/dict.rst:556
661661
msgid "``PyDict``"
662-
msgstr ""
662+
msgstr "``PyDict``"
663663

664664
#: ../../c-api/dict.rst:558
665-
#, fuzzy
666665
msgid ":c:func:`PyDict_GetItem`"
667-
msgstr "另見 :c:func:`PyObject_GetItem` 函式。"
666+
msgstr ":c:func:`PyDict_GetItem`"
668667

669668
#: ../../c-api/dict.rst:560
670669
msgid ":c:func:`PyDict_GetItemWithError`"
671-
msgstr ""
670+
msgstr ":c:func:`PyDict_GetItemWithError`"
672671

673672
#: ../../c-api/dict.rst:562
674-
#, fuzzy
675673
msgid ":c:func:`PyDict_GetItemString`"
676-
msgstr "另見 :c:func:`PyObject_GetItem` 函式。"
674+
msgstr ":c:func:`PyDict_GetItemString`"
677675

678676
#: ../../c-api/dict.rst:564
679677
msgid ":c:func:`PyDict_Contains`"
680-
msgstr ""
678+
msgstr ":c:func:`PyDict_Contains`"
681679

682680
#: ../../c-api/dict.rst:566
683681
msgid ":c:func:`PyDict_Size`"
684-
msgstr ""
682+
msgstr ":c:func:`PyDict_Size`"
685683

686684
#: ../../c-api/dict.rst:568
687685
msgid ":c:func:`PyDict_GET_SIZE`"
688-
msgstr ""
686+
msgstr ":c:func:`PyDict_GET_SIZE`"
689687

690688
#: ../../c-api/dict.rst:8
691689
msgid "object"
@@ -702,6 +700,3 @@ msgstr "built-in function(內建函式)"
702700
#: ../../c-api/dict.rst:242
703701
msgid "len"
704702
msgstr "len"
705-
706-
#~ msgid "PyUnicode_FromString()"
707-
#~ msgstr "PyUnicode_FromString()"

c-api/float.po

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ msgstr ""
144144

145145
#: ../../c-api/float.rst:101
146146
msgid "Equivalent to :c:macro:`!INFINITY`."
147-
msgstr ""
147+
msgstr "與 :c:macro:`!INFINITY` 等價。"
148148

149149
#: ../../c-api/float.rst:103
150150
msgid "The macro is :term:`soft deprecated`."
151-
msgstr ""
151+
msgstr "這個巨集已被\\ :term:`軟性棄用 <soft deprecated>`。"
152152

153153
#: ../../c-api/float.rst:109
154154
msgid ""
@@ -207,31 +207,35 @@ msgid ""
207207
"is normal, subnormal or zero, but not infinite or NaN. Return ``0`` "
208208
"otherwise."
209209
msgstr ""
210+
"如果給定的浮點數 *X* 是有限的(即為正規數 (normal)、次正規數 (subnormal) 或零,但不是無窮大或 NaN),"
211+
"則回傳 ``1``。否則回傳 ``0``。"
210212

211213
#: ../../c-api/float.rst:157
212214
msgid ""
213215
"The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead."
214-
msgstr ""
216+
msgstr "此巨集已被\\ :term:`軟性棄用 <soft deprecated>`。請改用 :c:macro:`!isfinite`。"
215217

216218
#: ../../c-api/float.rst:163
217219
msgid ""
218220
"Return ``1`` if the given floating-point number *X* is positive or negative "
219221
"infinity. Return ``0`` otherwise."
220222
msgstr ""
223+
"如果給定的浮點數 *X* 是正無窮大或負無窮大,則回傳 ``1``。否則回傳 ``0``。"
221224

222225
#: ../../c-api/float.rst:166
223226
msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead."
224-
msgstr ""
227+
msgstr "此巨集已被\\ :term:`軟性棄用 <soft deprecated>`。請改用 :c:macro:`!isinf`。"
225228

226229
#: ../../c-api/float.rst:172
227230
msgid ""
228231
"Return ``1`` if the given floating-point number *X* is a not-a-number (NaN) "
229232
"value. Return ``0`` otherwise."
230233
msgstr ""
234+
"如果給定的浮點數 *X* 是非數值 (NaN),則回傳 ``1``。否則回傳 ``0``。"
231235

232236
#: ../../c-api/float.rst:175
233237
msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isnan` instead."
234-
msgstr ""
238+
msgstr "此巨集已被\\ :term:`軟性棄用 <soft deprecated>`。請改用 :c:macro:`!isnan`。"
235239

236240
#: ../../c-api/float.rst:180
237241
msgid "Pack and Unpack functions"

c-api/intro.po

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ msgstr ""
6868

6969
#: ../../c-api/intro.rst:34
7070
msgid "Language version compatibility"
71-
msgstr ""
71+
msgstr "語言版本相容性"
7272

7373
#: ../../c-api/intro.rst:36
7474
msgid "Python's C API is compatible with C11 and C++11 versions of C and C++."
75-
msgstr ""
75+
msgstr "Python 的 C API 與 C11 和 C++11 版本的 C 和 C++ 相容。"
7676

7777
#: ../../c-api/intro.rst:38
7878
msgid ""
@@ -335,10 +335,12 @@ msgid ""
335335
"This is a :term:`soft deprecated` alias to :c:func:`!memcpy`. Use :c:func:`!"
336336
"memcpy` directly instead."
337337
msgstr ""
338+
"這是 :c:func:`!memcpy` 的已\\ :term:`軟性棄用 <soft deprecated>`\\ 別名。請直接"
339+
"使用 :c:func:`!memcpy`。"
338340

339341
#: ../../c-api/intro.rst:202
340342
msgid "The macro is :term:`soft deprecated`."
341-
msgstr ""
343+
msgstr "這個巨集已被\\ :term:`軟性棄用 <soft deprecated>`。"
342344

343345
#: ../../c-api/intro.rst:207
344346
msgid "Return the minimum value between ``x`` and ``y``."
@@ -1635,31 +1637,3 @@ msgstr "Py_GetProgramFullPath(C 函式)"
16351637
#: ../../c-api/intro.rst:830
16361638
msgid "Py_IsInitialized (C function)"
16371639
msgstr "Py_IsInitialized(C 函式)"
1638-
1639-
#~ msgid ""
1640-
#~ "static struct PyModuleDef spam_module = {\n"
1641-
#~ " .m_base = PyModuleDef_HEAD_INIT,\n"
1642-
#~ " .m_name = \"spam\",\n"
1643-
#~ " ...\n"
1644-
#~ "};\n"
1645-
#~ "\n"
1646-
#~ "PyMODINIT_FUNC\n"
1647-
#~ "PyInit_spam(void)\n"
1648-
#~ "{\n"
1649-
#~ " return PyModuleDef_Init(&spam_module);\n"
1650-
#~ "}"
1651-
#~ msgstr ""
1652-
#~ "static struct PyModuleDef spam_module = {\n"
1653-
#~ " .m_base = PyModuleDef_HEAD_INIT,\n"
1654-
#~ " .m_name = \"spam\",\n"
1655-
#~ " ...\n"
1656-
#~ "};\n"
1657-
#~ "\n"
1658-
#~ "PyMODINIT_FUNC\n"
1659-
#~ "PyInit_spam(void)\n"
1660-
#~ "{\n"
1661-
#~ " return PyModuleDef_Init(&spam_module);\n"
1662-
#~ "}"
1663-
1664-
#~ msgid "Py_SetProgramName (C function)"
1665-
#~ msgstr "Py_SetProgramName(C 函式)"

c-api/type.po

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ msgstr ""
191191

192192
#: ../../c-api/type.rst:170
193193
msgid "Return true if *a* is a subtype of *b*."
194-
msgstr ""
194+
msgstr "如果 *a* 是 *b* 的子類別則回傳 true。"
195195

196196
#: ../../c-api/type.rst:172
197197
msgid ""
@@ -412,11 +412,11 @@ msgstr ""
412412

413413
#: ../../c-api/type.rst:362
414414
msgid ":ref:`weakrefobjects`"
415-
msgstr ""
415+
msgstr ":ref:`weakrefobjects`"
416416

417417
#: ../../c-api/type.rst:363
418418
msgid ":py:mod:`weakref`"
419-
msgstr ""
419+
msgstr ":py:mod:`weakref`"
420420

421421
#: ../../c-api/type.rst:367
422422
msgid "Creating Heap-Allocated Types"
@@ -593,7 +593,7 @@ msgstr ""
593593

594594
#: ../../c-api/type.rst:534
595595
msgid "Previously, this field could not be negative."
596-
msgstr ""
596+
msgstr "在過去此欄位不可為負值。"
597597

598598
#: ../../c-api/type.rst:538
599599
msgid ""
@@ -672,19 +672,16 @@ msgid ""
672672
msgstr ""
673673

674674
#: ../../c-api/type.rst:593
675-
#, fuzzy
676675
msgid ":c:data:`Py_tp_dealloc` to set :c:member:`PyTypeObject.tp_dealloc`"
677-
msgstr "``Py_tp_dealloc`` 以設定 :c:member:`PyTypeObject.tp_dealloc`"
676+
msgstr ":c:data:`Py_tp_dealloc` 以設定 :c:member:`PyTypeObject.tp_dealloc`"
678677

679678
#: ../../c-api/type.rst:594
680-
#, fuzzy
681679
msgid ":c:data:`Py_nb_add` to set :c:member:`PyNumberMethods.nb_add`"
682-
msgstr "``Py_nb_add`` 以設定 :c:member:`PyNumberMethods.nb_add`"
680+
msgstr ":c:data:`Py_nb_add` 以設定 :c:member:`PyNumberMethods.nb_add`"
683681

684682
#: ../../c-api/type.rst:595
685-
#, fuzzy
686683
msgid ":c:data:`Py_sq_length` to set :c:member:`PySequenceMethods.sq_length`"
687-
msgstr "``Py_sq_length`` 以設定 :c:member:`PySequenceMethods.sq_length`"
684+
msgstr ":c:data:`Py_sq_length` 以設定 :c:member:`PySequenceMethods.sq_length`"
688685

689686
#: ../../c-api/type.rst:597
690687
msgid ""
@@ -706,6 +703,8 @@ msgid ""
706703
":c:member:`~PyTypeObject.tp_weaklistoffset` (use :c:macro:"
707704
"`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)"
708705
msgstr ""
706+
":c:member:`~PyTypeObject.tp_weaklistoffset`\\ (如果可能,請改用 :c:macro:"
707+
"`Py_TPFLAGS_MANAGED_WEAKREF`)"
709708

710709
#: ../../c-api/type.rst:606
711710
msgid ""
@@ -778,9 +777,8 @@ msgid "*pfunc* values may not be ``NULL``, except for the following slots:"
778777
msgstr ""
779778

780779
#: ../../c-api/type.rst:652
781-
#, fuzzy
782780
msgid ":c:data:`Py_tp_doc`"
783-
msgstr ":c:data:`Py_tp_token`"
781+
msgstr ":c:data:`Py_tp_doc`"
784782

785783
#: ../../c-api/type.rst:653
786784
msgid ""
@@ -849,6 +847,3 @@ msgstr "object(物件)"
849847
#: ../../c-api/type.rst:8
850848
msgid "type"
851849
msgstr "type(型別)"
852-
853-
#~ msgid "``Py_tp_doc``"
854-
#~ msgstr "``Py_tp_doc``"

0 commit comments

Comments
 (0)