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

Commit6282e78

Browse files
mattwang44mindihx
andcommitted
Apply suggestions from code review
Co-authored-by: mindihx <ymhuang.ymh@gmail.com>
1 parent5b1902b commit6282e78

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

‎library/sys.monitoring.po

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Copyright (C) 2001-2024, Python Software Foundation
22
# This file is distributed under the same license as the Python package.
33
# Translators:
4-
# Matt Wang <mattwang44@gmail.com>,2021
4+
# Matt Wang <mattwang44@gmail.com>,2024
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version:Python 3.12\n"
7+
"Project-Id-Version:Python 3.13\n"
88
"Report-Msgid-Bugs-To:\n"
99
"POT-Creation-Date:2024-10-19 01:58+0800\n"
1010
"PO-Revision-Date:2024-10-21 17:51+0800\n"
@@ -81,7 +81,8 @@ msgid ""
8181
"Before registering or activating events, a tool should choose an identifier. "
8282
"Identifiers are integers in the range 0 to 5 inclusive."
8383
msgstr""
84-
"在註冊或啟動事件之前,工具應選擇一個識別器。識別器是 0 到 5 範圍內的整數。"
84+
"在註冊或啟動事件之前,工具應選擇一個識別器。識別器是 0 到 5(含)範圍內的整"
85+
"數。"
8586

8687
#:../../library/sys.monitoring.rst:45
8788
msgid"Registering and using tools"
@@ -92,7 +93,7 @@ msgid ""
9293
"Must be called before *tool_id* can be used. *tool_id* must be in the range "
9394
"0 to 5 inclusive. Raises a :exc:`ValueError` if *tool_id* is in use."
9495
msgstr""
95-
"必須在使用 *tool_id* 之前呼叫。*tool_id* 必須在 0 到 5 範圍內(含)。如果 "
96+
"必須在使用 *tool_id* 之前呼叫。*tool_id* 必須在 0 到 5(含)範圍內。如果 "
9697
"*tool_id* 正在使用,則引發 :exc:`ValueError`。"
9798

9899
#:../../library/sys.monitoring.rst:55
@@ -107,23 +108,23 @@ msgid ""
107108
"no longer in use."
108109
msgstr""
109110
":func:`free_tool_id` 不會停用與 *tool_id* 相關的全域或區域事件,也不會取消註"
110-
"冊任何回呼函式。這個函式只是用來通知虛擬機器不再使用特定的 *tool_id*。"
111+
"冊任何回呼函式。這個函式只是用來通知虛擬機器 (VM) 不再使用特定的 *tool_id*。"
111112

112113
#:../../library/sys.monitoring.rst:66
113114
msgid""
114115
"Returns the name of the tool if *tool_id* is in use, otherwise it returns "
115116
"``None``. *tool_id* must be in the range 0 to 5 inclusive."
116117
msgstr""
117118
"如果 *tool_id* 正在使用,則回傳該工具的名稱,否則回傳 ``None``。*tool_id* 必"
118-
"須在 0 到 5 範圍內(含)。"
119+
"須在 0 到 5(含)範圍內。"
119120

120121
#:../../library/sys.monitoring.rst:70
121122
msgid""
122123
"All IDs are treated the same by the VM with regard to events, but the "
123124
"following IDs are pre-defined to make co-operation of tools easier::"
124125
msgstr""
125-
"對於事件,VM 對所有ID 的處理都是相同的,但預先定義了以下 ID,以使工具間的協"
126-
"作更容易:"
126+
"對於事件,虛擬機器對所有ID 的處理都是相同的,但預先定義了以下 ID,以使工具間"
127+
"的協作更容易: ::"
127128

128129
#:../../library/sys.monitoring.rst:73
129130
msgid""
@@ -157,21 +158,21 @@ msgstr "Python 程式碼中的呼叫(事件發生在呼叫之前)。"
157158
msgid""
158159
"An exception raised from any callable, except for Python functions (event "
159160
"occurs after the exit)."
160-
msgstr"從任何可呼叫物件引發的例外,除 Python 函式外(在退出後發生的事件)。"
161+
msgstr"從任何可呼叫物件引發的例外,除 Python 函式外(事件發生在退出之後)。"
161162

162163
#:../../library/sys.monitoring.rst:98
163164
msgid""
164165
"Return from any callable, except for Python functions (event occurs after "
165166
"the return)."
166-
msgstr"從任何可呼叫函式回傳,除 Python 函式外(在回傳後發生的事件)。"
167+
msgstr"從任何可呼叫函式回傳,除 Python 函式外(事件發生在回傳之後)。"
167168

168169
#:../../library/sys.monitoring.rst:102
169170
msgid"An exception is handled."
170171
msgstr"一個例外被處理。"
171172

172173
#:../../library/sys.monitoring.rst:106
173174
msgid"A VM instruction is about to be executed."
174-
msgstr"即將被執行的 VM 指令。"
175+
msgstr"虛擬機器指令即將被執行。"
175176

176177
#:../../library/sys.monitoring.rst:110
177178
msgid"An unconditional jump in the control flow graph is made."
@@ -223,13 +224,13 @@ msgid ""
223224
"An exception is raised, except those that cause a :monitoring-event:"
224225
"`STOP_ITERATION` event."
225226
msgstr""
226-
"例外會被引發,除了那些會導致 :monitoring-event:`STOP_ITERATION` 的事件外。"
227+
"例外被引發,除了那些會導致 :monitoring-event:`STOP_ITERATION` 的事件外。"
227228

228229
#:../../library/sys.monitoring.rst:146
229230
msgid""
230231
"An exception is re-raised, for example at the end of a :keyword:`finally` "
231232
"block."
232-
msgstr"例外會被重新引發 (re-raise),例如在 :keyword:`finally` 區塊的最後。"
233+
msgstr"例外被重新引發 (re-raise),例如在 :keyword:`finally` 區塊的最後。"
233234

234235
#:../../library/sys.monitoring.rst:150
235236
msgid""
@@ -454,7 +455,7 @@ msgstr "預設沒有有效事件。"
454455

455456
#:../../library/sys.monitoring.rst:256
456457
msgid"Per code object events"
457-
msgstr"每個程式碼物件事件"
458+
msgstr"各別程式碼物件事件"
458459

459460
#:../../library/sys.monitoring.rst:258
460461
msgid""
@@ -463,7 +464,7 @@ msgid ""
463464
"accept a look-alike object from functions which are not defined in Python "
464465
"(see :ref:`c-api-monitoring`)."
465466
msgstr""
466-
"事件還可以基於每個程式碼物件進行控制。下面定義的、接受 :class:`types."
467+
"事件還可以基於各別程式碼物件進行控制。下面定義的、接受 :class:`types."
467468
"CodeType` 的函式應該準備好接受來自 Python 中未定義函式的類似物件(請參閱 :"
468469
"ref:`c-api-monitoring`)。"
469470

@@ -476,8 +477,8 @@ msgid ""
476477
"Activates all the local events for *code* which are set in *event_set*. "
477478
"Raises a :exc:`ValueError` if *tool_id* is not in use."
478479
msgstr""
479-
"啟動 *event_set*中設定 *code*的所有區域事件。如果 *tool_id*並未正在被使"
480-
",則引發 :exc:`ValueError`。"
480+
"啟動 *event_set*中針對 *code*設定的所有區域事件。如果 *tool_id*並未正在被"
481+
"使用,則引發 :exc:`ValueError`。"
481482

482483
#:../../library/sys.monitoring.rst:272
483484
msgid""
@@ -528,11 +529,11 @@ msgstr "註冊回呼函式"
528529

529530
#:../../library/sys.monitoring.rst:305
530531
msgid"To register a callable for events call"
531-
msgstr"註冊事件呼叫的可呼叫物件"
532+
msgstr"用來註冊對事件呼叫的可呼叫物件"
532533

533534
#:../../library/sys.monitoring.rst:309
534535
msgid"Registers the callable *func* for the *event* with the given *tool_id*"
535-
msgstr"使用給定的 *tool_id*來註冊 *event* 的可呼叫物件 *func*"
536+
msgstr"使用給定的 *tool_id*來註冊對 *event* 的可呼叫物件 *func*"
536537

537538
#:../../library/sys.monitoring.rst:311
538539
msgid""
@@ -548,18 +549,18 @@ msgid ""
548549
"Functions can be unregistered by calling ``sys.monitoring."
549550
"register_callback(tool_id, event, None)``."
550551
msgstr""
551-
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)``來註"
552-
"銷函式。"
552+
"可以透過呼叫 ``sys.monitoring.register_callback(tool_id, event, None)``來取"
553+
"消註冊函式。"
553554

554555
#:../../library/sys.monitoring.rst:319
555556
msgid"Callback functions can be registered and unregistered at any time."
556-
msgstr"回呼函式可以隨時被註冊和註銷。"
557+
msgstr"回呼函式可以隨時被註冊和取消註冊。"
557558

558559
#:../../library/sys.monitoring.rst:321
559560
msgid""
560561
"Registering or unregistering a callback function will generate a :func:`sys."
561562
"audit` event."
562-
msgstr"註冊或註銷回呼函式將產生 :func:`sys.audit` 事件。"
563+
msgstr"註冊或取消註冊回呼函式將產生 :func:`sys.audit` 事件。"
563564

564565
#:../../library/sys.monitoring.rst:325
565566
msgid"Callback function arguments"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp