Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29b88a9

Browse files
committed
fix: resolve fuzzy entries
1 parent0a4acb2 commit29b88a9

29 files changed

+383
-748
lines changed

‎c-api/allocation.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-2024, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
@@ -27,15 +26,13 @@ msgid "Allocating Objects on the Heap"
2726
msgstr"在 heap 上分配物件"
2827

2928
#:../../c-api/allocation.rst:17
30-
#,fuzzy
3129
msgid""
3230
"Initialize a newly allocated object *op* with its type and initial "
3331
"reference. Returns the initialized object. Other fields of the object are "
3432
"not affected."
3533
msgstr""
36-
"用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。如果 "
37-
"*type* 表示了該物件參與迴圈垃圾檢查器,則將其新增到檢查器的觀察物件集合中。物"
38-
"件的其他欄位不受影響。"
34+
"用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。物件的其"
35+
"他欄位不受影響。"
3936

4037
#:../../c-api/allocation.rst:24
4138
msgid""

‎c-api/typeobj.po

Lines changed: 7 additions & 7 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-2024, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
@@ -2400,7 +2399,7 @@ msgstr ""
24002399

24012400
#:../../c-api/typeobj.rst:1394
24022401
msgid"Py_VISIT(Py_TYPE(self));"
2403-
msgstr""
2402+
msgstr"Py_VISIT(Py_TYPE(self));"
24042403

24052404
#:../../c-api/typeobj.rst:1396
24062405
msgid""
@@ -2414,6 +2413,9 @@ msgid ""
24142413
" Py_VISIT(Py_TYPE(self));\n"
24152414
"#endif"
24162415
msgstr""
2416+
"#if PY_VERSION_HEX >= 0x03090000\n"
2417+
" Py_VISIT(Py_TYPE(self));\n"
2418+
"#endif"
24172419

24182420
#:../../c-api/typeobj.rst:1403
24192421
msgid""
@@ -2423,9 +2425,8 @@ msgid ""
24232425
msgstr""
24242426

24252427
#:../../c-api/typeobj.rst:1407
2426-
#,fuzzy
24272428
msgid"PyObject_VisitManagedDict((PyObject*)self, visit, arg);"
2428-
msgstr"PyObject *tp_iternext(PyObject *self);"
2429+
msgstr"PyObject_VisitManagedDict((PyObject*)self, visit, arg);"
24292430

24302431
#:../../c-api/typeobj.rst:1410
24312432
msgid""
@@ -2550,9 +2551,8 @@ msgid ""
25502551
msgstr""
25512552

25522553
#:../../c-api/typeobj.rst:1496
2553-
#,fuzzy
25542554
msgid"PyObject_ClearManagedDict((PyObject*)self);"
2555-
msgstr"PyObject *am_anext(PyObject *self);"
2555+
msgstr"PyObject_ClearManagedDict((PyObject*)self);"
25562556

25572557
#:../../c-api/typeobj.rst:1498
25582558
msgid""

‎deprecations/c-api-pending-removal-in-3.15.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,24 @@ msgstr ""
6161
"data:`!warnings.filters`。"
6262

6363
#:../../deprecations/c-api-pending-removal-in-3.15.rst:15
64-
#,fuzzy
6564
msgid""
6665
":c:func:`Py_GetExecPrefix`: Get :data:`sys.base_exec_prefix` and :data:`sys."
6766
"exec_prefix` instead."
68-
msgstr":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.exec_prefix`。"
67+
msgstr""
68+
":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.base_exec_prefix` 與 :data:"
69+
"`sys.exec_prefix`。"
6970

7071
#:../../deprecations/c-api-pending-removal-in-3.15.rst:17
7172
msgid":c:func:`Py_GetPath`: Get :data:`sys.path` instead."
7273
msgstr":c:func:`Py_GetPath`:請改用 :data:`sys.path`。"
7374

7475
#:../../deprecations/c-api-pending-removal-in-3.15.rst:19
75-
#,fuzzy
7676
msgid""
7777
":c:func:`Py_GetPrefix`: Get :data:`sys.base_prefix` and :data:`sys.prefix` "
7878
"instead."
79-
msgstr":c:func:`Py_GetPrefix`:請改用 :data:`sys.prefix`。"
79+
msgstr""
80+
":c:func:`Py_GetPrefix`:請改用 :data:`sys.base_prefix` 與 :data:`sys."
81+
"prefix`。"
8082

8183
#:../../deprecations/c-api-pending-removal-in-3.15.rst:21
8284
msgid":c:func:`Py_GetProgramFullPath`: Get :data:`sys.executable` instead."

‎deprecations/index.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,10 @@ msgstr ""
388388
"任意數量的位置或關鍵字引數,並忽略每個引數。"
389389

390390
#:../../deprecations/pending-removal-in-3.15.rst:62
391-
#,fuzzy
392391
msgid":mod:`types`:"
393-
msgstr":mod:`ctypes`:"
392+
msgstr":mod:`types`:"
394393

395394
#:../../deprecations/pending-removal-in-3.15.rst:64
396-
#,fuzzy
397395
msgid""
398396
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
399397
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
@@ -402,7 +400,7 @@ msgid ""
402400
msgstr""
403401
":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
404402
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
405-
"exc:`DeprecationWarning`。可能在 3.14 中移除。(由 Nikita Sobolev 於 :gh:"
403+
"exc:`DeprecationWarning`。可能在 3.15 中移除。(由 Nikita Sobolev 於 :gh:"
406404
"`101866` 貢獻。)"
407405

408406
#:../../deprecations/pending-removal-in-3.15.rst:71
@@ -1180,22 +1178,24 @@ msgstr ""
11801178
"data:`!warnings.filters`。"
11811179

11821180
#:../../deprecations/c-api-pending-removal-in-3.15.rst:15
1183-
#,fuzzy
11841181
msgid""
11851182
":c:func:`Py_GetExecPrefix`: Get :data:`sys.base_exec_prefix` and :data:`sys."
11861183
"exec_prefix` instead."
1187-
msgstr":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.exec_prefix`。"
1184+
msgstr""
1185+
":c:func:`Py_GetExecPrefix`:請改用 :data:`sys.base_exec_prefix` 與 :data:"
1186+
"`sys.exec_prefix`。"
11881187

11891188
#:../../deprecations/c-api-pending-removal-in-3.15.rst:17
11901189
msgid":c:func:`Py_GetPath`: Get :data:`sys.path` instead."
11911190
msgstr":c:func:`Py_GetPath`:請改用 :data:`sys.path`。"
11921191

11931192
#:../../deprecations/c-api-pending-removal-in-3.15.rst:19
1194-
#,fuzzy
11951193
msgid""
11961194
":c:func:`Py_GetPrefix`: Get :data:`sys.base_prefix` and :data:`sys.prefix` "
11971195
"instead."
1198-
msgstr":c:func:`Py_GetPrefix`:請改用 :data:`sys.prefix`。"
1196+
msgstr""
1197+
":c:func:`Py_GetPrefix`:請改用 :data:`sys.base_prefix` 與 :data:`sys."
1198+
"prefix`。"
11991199

12001200
#:../../deprecations/c-api-pending-removal-in-3.15.rst:21
12011201
msgid":c:func:`Py_GetProgramFullPath`: Get :data:`sys.executable` instead."

‎deprecations/pending-removal-in-3.14.po

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,3 @@ msgid ""
263263
msgstr""
264264
":mod:`urllib`::class:`!urllib.parse.Quoter` 已被棄用:它並非預期的公開 API。"
265265
"(由 Gregory P. Smith 於 :gh:`88168` 貢獻。)"
266-
267-
#~ msgid ""
268-
#~ ":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
269-
#~ "deprecated in :pep:`626` since 3.10 and was planned to be removed in "
270-
#~ "3.12, but it only got a proper :exc:`DeprecationWarning` in 3.12. May be "
271-
#~ "removed in 3.14. (Contributed by Nikita Sobolev in :gh:`101866`.)"
272-
#~ msgstr ""
273-
#~ ":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
274-
#~ "在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
275-
#~ "exc:`DeprecationWarning`。可能在 3.14 中移除。(由 Nikita Sobolev 於 :gh:"
276-
#~ "`101866` 貢獻。)"
277-
278-
#~ msgid ""
279-
#~ "date and datetime adapter, date and timestamp converter: see the :mod:"
280-
#~ "`sqlite3` documentation for suggested replacement recipes."
281-
#~ msgstr ""
282-
#~ "date 和 datetime 的適配器 (adapter)、date 和 timestamp 轉換器 "
283-
#~ "(converter):請參閱 :mod:`sqlite3` 文件以獲得建議的替代方案。"

‎deprecations/pending-removal-in-3.15.po

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ msgstr ""
136136
"任意數量的位置或關鍵字引數,並忽略每個引數。"
137137

138138
#:../../deprecations/pending-removal-in-3.15.rst:62
139-
#,fuzzy
140139
msgid":mod:`types`:"
141-
msgstr":mod:`ctypes`:"
140+
msgstr":mod:`types`:"
142141

143142
#:../../deprecations/pending-removal-in-3.15.rst:64
144143
msgid""
@@ -147,6 +146,10 @@ msgid ""
147146
"but it only got a proper :exc:`DeprecationWarning` in 3.12. May be removed "
148147
"in 3.15. (Contributed by Nikita Sobolev in :gh:`101866`.)"
149148
msgstr""
149+
":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
150+
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
151+
"exc:`DeprecationWarning`。可能在 3.15 中移除。(由 Nikita Sobolev 於 :gh:"
152+
"`101866` 貢獻。)"
150153

151154
#:../../deprecations/pending-removal-in-3.15.rst:71
152155
msgid":mod:`typing`:"

‎glossary.po

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,8 @@ msgstr ""
614614
"忽略它們。"
615615

616616
#:../../glossary.rst:262
617-
#,fuzzy
618617
msgid"context"
619-
msgstr"context manager(情境管理器)"
618+
msgstr"context(情境)"
620619

621620
#:../../glossary.rst:264
622621
msgid""
@@ -641,17 +640,19 @@ msgstr ""
641640
msgid""
642641
"A :class:`contextvars.Context` object. Also see :term:`current context`."
643642
msgstr""
643+
"一個 :class:`contextvars.Context` 物件。另請參閱 :term:`current context`。"
644644

645645
#:../../glossary.rst:275
646-
#,fuzzy
647646
msgid"context management protocol"
648-
msgstr"contextmanager(情境管理器)"
647+
msgstr"contextmanagement protocol(情境管理協定)"
649648

650649
#:../../glossary.rst:277
651650
msgid""
652651
"The :meth:`~object.__enter__` and :meth:`~object.__exit__` methods called by "
653652
"the :keyword:`with` statement. See :pep:`343`."
654653
msgstr""
654+
"由 :keyword:`with` 陳述式所呼叫的 :meth:`~object.__enter__` 和 :meth:"
655+
"`~object.__exit__` 方法。另請參閱 :pep:`343`。"
655656

656657
#:../../glossary.rst:279
657658
msgid"context manager"

‎howto/logging-cookbook.po

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ msgstr ""
19071907

19081908
#:../../howto/logging-cookbook.rst:1493
19091909
msgid"Using concurrent.futures.ProcessPoolExecutor"
1910-
msgstr""
1910+
msgstr"使用 concurrent.futures.ProcessPoolExecutor"
19111911

19121912
#:../../howto/logging-cookbook.rst:1495
19131913
msgid""
@@ -1918,7 +1918,7 @@ msgstr ""
19181918

19191919
#:../../howto/logging-cookbook.rst:1499
19201920
msgid"queue = multiprocessing.Queue(-1)"
1921-
msgstr""
1921+
msgstr"queue = multiprocessing.Queue(-1)"
19221922

19231923
#:../../howto/logging-cookbook.rst:1503
19241924
msgid"you should use"
@@ -4250,6 +4250,8 @@ msgid ""
42504250
"2015-10-17 12:53:29,501 The local time is Sat Oct 17 13:53:29 2015\n"
42514251
"2015-10-17 13:53:29,501 The local time is Sat Oct 17 13:53:29 2015"
42524252
msgstr""
4253+
"2015-10-17 12:53:29,501 The local time is Sat Oct 17 13:53:29 2015\n"
4254+
"2015-10-17 13:53:29,501 The local time is Sat Oct 17 13:53:29 2015"
42534255

42544256
#:../../howto/logging-cookbook.rst:3296
42554257
msgid""
@@ -5011,6 +5013,13 @@ msgid ""
50115013
"i = 1\n"
50125014
"logger.debug('Message %d', i, extra=extra)"
50135015
msgstr""
5016+
"sd = {\n"
5017+
" 'foo@12345': {'bar': 'baz', 'baz': 'bozz', 'fizz': r'buzz'},\n"
5018+
" 'foo@54321': {'rab': 'baz', 'zab': 'bozz', 'zzif': r'buzz'}\n"
5019+
"}\n"
5020+
"extra = {'structured_data': sd}\n"
5021+
"i = 1\n"
5022+
"logger.debug('Message %d', i, extra=extra)"
50145023

50155024
#:../../howto/logging-cookbook.rst:3915
50165025
msgid"How to treat a logger like an output stream"
@@ -5102,6 +5111,11 @@ msgid ""
51025111
"WARNING:demo:Bar\n"
51035112
">>>"
51045113
msgstr""
5114+
">>> print('Foo')\n"
5115+
"INFO:demo:Foo\n"
5116+
">>> print('Bar', file=sys.stderr)\n"
5117+
"WARNING:demo:Bar\n"
5118+
">>>"
51055119

51065120
#:../../howto/logging-cookbook.rst:3987
51075121
msgid""
@@ -5175,6 +5189,22 @@ msgid ""
51755189
" for part in parts:\n"
51765190
" self.logger.log(self.level, part)"
51775191
msgstr""
5192+
"class BufferingLoggerWriter(LoggerWriter):\n"
5193+
" def __init__(self, logger, level):\n"
5194+
" super().__init__(logger, level)\n"
5195+
" self.buffer = ''\n"
5196+
"\n"
5197+
" def write(self, message):\n"
5198+
" if '\\n' not in message:\n"
5199+
" self.buffer += message\n"
5200+
" else:\n"
5201+
" parts = message.split('\\n')\n"
5202+
" if self.buffer:\n"
5203+
" s = self.buffer + parts.pop(0)\n"
5204+
" self.logger.log(self.level, s)\n"
5205+
" self.buffer = parts.pop()\n"
5206+
" for part in parts:\n"
5207+
" self.logger.log(self.level, part)"
51785208

51795209
#:../../howto/logging-cookbook.rst:4043
51805210
msgid""
@@ -5193,6 +5223,14 @@ msgid ""
51935223
"WARNING:demo: 1/0\n"
51945224
"WARNING:demo:ZeroDivisionError: division by zero"
51955225
msgstr""
5226+
"WARNING:demo:Traceback (most recent call last):\n"
5227+
"WARNING:demo: File\"/home/runner/cookbook-loggerwriter/main.py\", line 55, "
5228+
"in <module>\n"
5229+
"WARNING:demo: main()\n"
5230+
"WARNING:demo: File\"/home/runner/cookbook-loggerwriter/main.py\", line 52, "
5231+
"in main\n"
5232+
"WARNING:demo: 1/0\n"
5233+
"WARNING:demo:ZeroDivisionError: division by zero"
51965234

51975235
#:../../howto/logging-cookbook.rst:4059
51985236
msgid"Patterns to avoid"
@@ -5314,7 +5352,7 @@ msgstr ""
53145352

53155353
#:../../howto/logging-cookbook.rst:4136
53165354
msgid"Other resources"
5317-
msgstr""
5355+
msgstr"其他資源"
53185356

53195357
#:../../howto/logging-cookbook.rst:4140
53205358
msgid"Module :mod:`logging`"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp