Skip to content

Commit 2c2e4fa

Browse files
committed
fix fuzzy entries
1 parent cd1bbc2 commit 2c2e4fa

15 files changed

+233
-195
lines changed

howto/free-threading-extensions.po

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2001-2024, Python Software Foundation
1+
# Copyright (C) 2001-2025, Python Software Foundation
22
# This file is distributed under the same license as the Python package.
33
#
44
#, fuzzy
@@ -57,7 +57,7 @@ msgstr ""
5757

5858
#: ../../howto/free-threading-extensions.rst:35
5959
msgid "Module Initialization"
60-
msgstr ""
60+
msgstr "模組初始化"
6161

6262
#: ../../howto/free-threading-extensions.rst:37
6363
msgid ""
@@ -273,9 +273,8 @@ msgid ":c:func:`PyList_GetItemRef`"
273273
msgstr ":c:func:`PyList_GetItemRef`"
274274

275275
#: ../../howto/free-threading-extensions.rst:162
276-
#, fuzzy
277276
msgid ":c:func:`PyList_GET_ITEM`"
278-
msgstr ":c:func:`PyList_GetItem`"
277+
msgstr ":c:func:`PyList_GET_ITEM`"
279278

280279
#: ../../howto/free-threading-extensions.rst:164
281280
msgid ":c:func:`PyDict_GetItem`"

library/codecs.po

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,7 +2589,7 @@ msgstr ""
25892589

25902590
#: ../../library/codecs.rst:1490
25912591
msgid "*input* must be a :class:`bytes` object."
2592-
msgstr ""
2592+
msgstr "*input* 必須是 :class:`bytes` 物件。"
25932593

25942594
#: ../../library/codecs.rst:1492 ../../library/codecs.rst:1501
25952595
msgid ""
@@ -2602,9 +2602,8 @@ msgid "Decode *input* from escape sequences back to the original bytes."
26022602
msgstr ""
26032603

26042604
#: ../../library/codecs.rst:1499
2605-
#, fuzzy
26062605
msgid "*input* must be a :term:`bytes-like object`."
2607-
msgstr "*stream* 引數必須是類檔案物件。"
2606+
msgstr "*input* 必須是 :term:`bytes-like object`。"
26082607

26092608
#: ../../library/codecs.rst:1508
26102609
msgid "Text Transforms"

library/concurrent.futures.po

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,21 @@ msgid ""
259259
"a = executor.submit(wait_on_b)\n"
260260
"b = executor.submit(wait_on_a)"
261261
msgstr ""
262+
"import time\n"
263+
"def wait_on_b():\n"
264+
" time.sleep(5)\n"
265+
" print(b.result()) # b 永遠不會完成,因為它正在等待 a。\n"
266+
" return 5\n"
267+
"\n"
268+
"def wait_on_a():\n"
269+
" time.sleep(5)\n"
270+
" print(a.result()) # a 永遠不會完成,因為它正在等待 b。\n"
271+
" return 6\n"
272+
"\n"
273+
"\n"
274+
"executor = ThreadPoolExecutor(max_workers=2)\n"
275+
"a = executor.submit(wait_on_b)\n"
276+
"b = executor.submit(wait_on_a)"
262277

263278
#: ../../library/concurrent.futures.rst:136
264279
msgid "And::"
@@ -275,6 +290,14 @@ msgid ""
275290
"executor = ThreadPoolExecutor(max_workers=1)\n"
276291
"executor.submit(wait_on_future)"
277292
msgstr ""
293+
"def wait_on_future():\n"
294+
" f = executor.submit(pow, 5, 2)\n"
295+
" # 這將永遠不會完成,因為只有一個工作執行緒且\n"
296+
" # 它正在執行這個函式。\n"
297+
" print(f.result())\n"
298+
"\n"
299+
"executor = ThreadPoolExecutor(max_workers=1)\n"
300+
"executor.submit(wait_on_future)"
278301

279302
#: ../../library/concurrent.futures.rst:150
280303
msgid ""
@@ -363,6 +386,7 @@ msgid ""
363386
"Default value of *max_workers* is changed to ``min(32, (os."
364387
"process_cpu_count() or 1) + 4)``."
365388
msgstr ""
389+
"*max_workers* 的預設值被改為 ``min(32, (os.process_cpu_count() or 1) + 4)``。"
366390

367391
#: ../../library/concurrent.futures.rst:199
368392
msgid "ThreadPoolExecutor Example"

library/ctypes.po

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -482,44 +482,36 @@ msgid ":c:expr:`int`"
482482
msgstr ":c:expr:`int`"
483483

484484
#: ../../library/ctypes.rst:235
485-
#, fuzzy
486485
msgid ":class:`c_int8`"
487-
msgstr ":class:`c_int`"
486+
msgstr ":class:`c_int8`"
488487

489488
#: ../../library/ctypes.rst:235
490-
#, fuzzy
491489
msgid ":c:type:`int8_t`"
492-
msgstr ":c:type:`size_t`"
490+
msgstr ":c:type:`int8_t`"
493491

494492
#: ../../library/ctypes.rst:237
495-
#, fuzzy
496493
msgid ":class:`c_int16`"
497-
msgstr ":class:`c_int`"
494+
msgstr ":class:`c_int16`"
498495

499496
#: ../../library/ctypes.rst:237
500-
#, fuzzy
501497
msgid ":c:type:`int16_t`"
502-
msgstr ":c:type:`size_t`"
498+
msgstr ":c:type:`int16_t`"
503499

504500
#: ../../library/ctypes.rst:239
505-
#, fuzzy
506501
msgid ":class:`c_int32`"
507-
msgstr ":class:`c_int`"
502+
msgstr ":class:`c_int32`"
508503

509504
#: ../../library/ctypes.rst:239
510-
#, fuzzy
511505
msgid ":c:type:`int32_t`"
512-
msgstr ":c:type:`size_t`"
506+
msgstr ":c:type:`int32_t`"
513507

514508
#: ../../library/ctypes.rst:241
515-
#, fuzzy
516509
msgid ":class:`c_int64`"
517-
msgstr ":class:`c_int`"
510+
msgstr ":class:`c_int64`"
518511

519512
#: ../../library/ctypes.rst:241
520-
#, fuzzy
521513
msgid ":c:type:`int64_t`"
522-
msgstr ":c:type:`size_t`"
514+
msgstr ":c:type:`int64_t`"
523515

524516
#: ../../library/ctypes.rst:243
525517
msgid ":class:`c_uint`"
@@ -530,44 +522,36 @@ msgid ":c:expr:`unsigned int`"
530522
msgstr ":c:expr:`unsigned int`"
531523

532524
#: ../../library/ctypes.rst:245
533-
#, fuzzy
534525
msgid ":class:`c_uint8`"
535-
msgstr ":class:`c_uint`"
526+
msgstr ":class:`c_uint8`"
536527

537528
#: ../../library/ctypes.rst:245
538-
#, fuzzy
539529
msgid ":c:type:`uint8_t`"
540-
msgstr ":c:type:`size_t`"
530+
msgstr ":c:type:`uint8_t`"
541531

542532
#: ../../library/ctypes.rst:247
543-
#, fuzzy
544533
msgid ":class:`c_uint16`"
545-
msgstr ":class:`c_uint`"
534+
msgstr ":class:`c_uint16`"
546535

547536
#: ../../library/ctypes.rst:247
548-
#, fuzzy
549537
msgid ":c:type:`uint16_t`"
550-
msgstr ":c:type:`size_t`"
538+
msgstr ":c:type:`uint16_t`"
551539

552540
#: ../../library/ctypes.rst:249
553-
#, fuzzy
554541
msgid ":class:`c_uint32`"
555-
msgstr ":class:`c_uint`"
542+
msgstr ":class:`c_uint32`"
556543

557544
#: ../../library/ctypes.rst:249
558-
#, fuzzy
559545
msgid ":c:type:`uint32_t`"
560-
msgstr ":c:type:`size_t`"
546+
msgstr ":c:type:`uint32_t`"
561547

562548
#: ../../library/ctypes.rst:251
563-
#, fuzzy
564549
msgid ":class:`c_uint64`"
565-
msgstr ":class:`c_uint`"
550+
msgstr ":class:`c_uint64`"
566551

567552
#: ../../library/ctypes.rst:251
568-
#, fuzzy
569553
msgid ":c:type:`uint64_t`"
570-
msgstr ":c:type:`size_t`"
554+
msgstr ":c:type:`uint64_t`"
571555

572556
#: ../../library/ctypes.rst:253
573557
msgid ":class:`c_long`"
@@ -664,7 +648,7 @@ msgstr ""
664648

665649
#: ../../library/ctypes.rst:275
666650
msgid "bytes object or ``None``"
667-
msgstr ""
651+
msgstr "位元組物件或 ``None``"
668652

669653
#: ../../library/ctypes.rst:277
670654
msgid ":class:`c_wchar_p`"
@@ -770,6 +754,20 @@ msgid ""
770754
"Hello, World\n"
771755
">>>"
772756
msgstr ""
757+
">>> s = \"Hello, World\"\n"
758+
">>> c_s = c_wchar_p(s)\n"
759+
">>> print(c_s)\n"
760+
"c_wchar_p(139966785747344)\n"
761+
">>> print(c_s.value)\n"
762+
"Hello World\n"
763+
">>> c_s.value = \"Hi, there\"\n"
764+
">>> print(c_s) # 記憶體位置已改變\n"
765+
"c_wchar_p(139966783348904)\n"
766+
">>> print(c_s.value)\n"
767+
"Hi, there\n"
768+
">>> print(s) # 第一個物件未改變\n"
769+
"Hello, World\n"
770+
">>>"
773771

774772
#: ../../library/ctypes.rst:328
775773
msgid ""
@@ -1504,6 +1502,9 @@ msgid ""
15041502
"for pt in arr:\n"
15051503
" print(pt.x, pt.y)"
15061504
msgstr ""
1505+
"arr = TenPointsArrayType()\n"
1506+
"for pt in arr:\n"
1507+
" print(pt.x, pt.y)"
15071508

15081509
#: ../../library/ctypes.rst:754
15091510
msgid ""
@@ -1539,7 +1540,7 @@ msgstr ""
15391540

15401541
#: ../../library/ctypes.rst:773
15411542
msgid "Pointers"
1542-
msgstr ""
1543+
msgstr "指標"
15431544

15441545
#: ../../library/ctypes.rst:775
15451546
msgid ""

library/enum.po

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
1+
# Copyright (C) 2001-2025, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
@@ -977,18 +976,16 @@ msgstr ""
977976
"meth:`~object.__format__` 已經是 :meth:`!int.__format__`。"
978977

979978
#: ../../library/enum.rst:507
980-
#, fuzzy
981979
msgid ""
982980
"*StrEnum* is the same as :class:`Enum`, but its members are also strings and "
983981
"can be used in most of the same places that a string can be used. The result "
984982
"of any string operation performed on or with a *StrEnum* member is not part "
985983
"of the enumeration."
986984
msgstr ""
987-
"``StrEnum`` 和 :class:`Enum` 一樣,但其成員同時也是字串而可以被用在幾乎所有使"
985+
"*StrEnum* 和 :class:`Enum` 一樣,但其成員同時也是字串而可以被用在幾乎所有使"
988986
"用字串的地方。*StrEnum* 成員經過任何字串操作的結果會不再是列舉的一部份。"
989987

990988
#: ../../library/enum.rst:528
991-
#, fuzzy
992989
msgid ""
993990
"There are places in the stdlib that check for an exact :class:`str` instead "
994991
"of a :class:`str` subclass (i.e. ``type(unknown) == str`` instead of "
@@ -997,7 +994,7 @@ msgid ""
997994
msgstr ""
998995
"stdlib 裡有些地方會檢查只能是 :class:`str` 而不是 :class:`str` 的子類別(也就"
999996
"是 ``type(unknown) == str`` 而不是 ``isinstance(unknown, str)``),在這些地方"
1000-
"你需要使用 ``str(StrEnum.member)``。"
997+
"你需要使用 ``str(MyStrEnum.MY_MEMBER)``。"
1001998

1002999
#: ../../library/enum.rst:535
10031000
msgid ""

library/http.cookies.po

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2001-2024, Python Software Foundation
1+
# Copyright (C) 2001-2025, Python Software Foundation
22
# This file is distributed under the same license as the Python package.
33
#
44
# Translators:
@@ -232,6 +232,10 @@ msgid ""
232232
"and cross-site requests). When using \"None\", the \"secure\" attribute must "
233233
"also be set, as required by modern browsers."
234234
msgstr ""
235+
":attr:`samesite` 屬性控制瀏覽器要在何時將 cookie 與跨網站請求一起傳送,"
236+
"這有助於減輕 CSRF 攻擊。有效值為 \"Strict\"\\ (僅在同站請求時傳送)、"
237+
"\"Lax\"\\ (同站請求和頂層導航時傳送)和 \"None\"\\ (同站請求和跨站請求時傳送)。"
238+
"使用 \"None\" 時,必須同時設定 \"secure\" 屬性,這是現代瀏覽器的要求。"
235239

236240
#: ../../library/http.cookies.rst:157
237241
msgid "The keys are case-insensitive and their default value is ``''``."
@@ -433,11 +437,3 @@ msgstr ""
433437
">>> print(C)\n"
434438
"Set-Cookie: number=7\n"
435439
"Set-Cookie: string=seven"
436-
437-
#~ msgid ""
438-
#~ "The attribute :attr:`samesite` specifies that the browser is not allowed "
439-
#~ "to send the cookie along with cross-site requests. This helps to mitigate "
440-
#~ "CSRF attacks. Valid values for this attribute are \"Strict\" and \"Lax\"."
441-
#~ msgstr ""
442-
#~ "屬性 :attr:`samesite` 指定瀏覽器不能將 cookie 與跨網站請求一起傳送。這有助"
443-
#~ "於減輕 CSRF 攻擊。此屬性的有效值為 \"Strict\" 和 \"Lax\"。"

library/importlib.resources.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2001-2022, Python Software Foundation
1+
# Copyright (C) 2001-2025, Python Software Foundation
22
# This file is distributed under the same license as the Python package.
33
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
44
#
@@ -166,7 +166,7 @@ msgstr ""
166166

167167
#: ../../library/importlib.resources.rst:121
168168
msgid "importlib.resources.read_text(my_module, \"info.txt\")"
169-
msgstr ""
169+
msgstr "importlib.resources.read_text(my_module, \"info.txt\")"
170170

171171
#: ../../library/importlib.resources.rst:123
172172
msgid ""
@@ -226,7 +226,7 @@ msgstr ""
226226
#: ../../library/importlib.resources.rst:253
227227
#: ../../library/importlib.resources.rst:271
228228
msgid "This function is roughly equivalent to::"
229-
msgstr ""
229+
msgstr "這個函式大致等同於: ::"
230230

231231
#: ../../library/importlib.resources.rst:150
232232
msgid "files(anchor).joinpath(*path_names).open('rb')"
@@ -236,7 +236,7 @@ msgstr "files(anchor).joinpath(*path_names).open('rb')"
236236
#: ../../library/importlib.resources.rst:192
237237
#: ../../library/importlib.resources.rst:257
238238
msgid "Multiple *path_names* are accepted."
239-
msgstr ""
239+
msgstr "多個 *path_names* 是被接受的。"
240240

241241
#: ../../library/importlib.resources.rst:158
242242
msgid ""
@@ -280,7 +280,7 @@ msgstr ""
280280

281281
#: ../../library/importlib.resources.rst:183
282282
msgid "Read and return the contents of the named resource as :class:`bytes`."
283-
msgstr ""
283+
msgstr "以 :class:`bytes` 形式讀取並回傳指定資源的內容。"
284284

285285
#: ../../library/importlib.resources.rst:190
286286
msgid "files(anchor).joinpath(*path_names).read_bytes()"

0 commit comments

Comments
 (0)