Skip to content

Commit 4bd8e05

Browse files
sync with cpython ae91b4bc
1 parent f8ac1f6 commit 4bd8e05

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

library/signal.po

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-10-11 00:14+0000\n"
9+
"POT-Creation-Date: 2025-10-12 00:15+0000\n"
1010
"PO-Revision-Date: 2018-05-23 16:10+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -199,8 +199,8 @@ msgstr ""
199199
#: ../../library/signal.rst:459 ../../library/signal.rst:493
200200
#: ../../library/signal.rst:523 ../../library/signal.rst:530
201201
#: ../../library/signal.rst:585 ../../library/signal.rst:627
202-
#: ../../library/signal.rst:642 ../../library/signal.rst:668
203-
#: ../../library/signal.rst:688
202+
#: ../../library/signal.rst:642 ../../library/signal.rst:667
203+
#: ../../library/signal.rst:687
204204
msgid "Availability"
205205
msgstr "可用性"
206206

@@ -360,12 +360,13 @@ msgid "Window resize signal."
360360
msgstr "視窗調整大小訊號。"
361361

362362
#: ../../library/signal.rst:270
363+
#, fuzzy
363364
msgid ""
364365
"All the signal numbers are defined symbolically. For example, the hangup "
365366
"signal is defined as :const:`signal.SIGHUP`; the variable names are "
366367
"identical to the names used in C programs, as found in ``<signal.h>``. The "
367-
"Unix man page for ':c:func:`signal`' lists the existing signals (on some "
368-
"systems this is :manpage:`signal(2)`, on others the list is in :manpage:"
368+
"Unix man page for '``signal``' lists the existing signals (on some systems "
369+
"this is :manpage:`signal(2)`, on others the list is in :manpage:"
369370
"`signal(7)`). Note that not all systems define the same set of signal names; "
370371
"only those names defined by the system are defined by this module."
371372
msgstr ""
@@ -909,25 +910,25 @@ msgstr ""
909910
"`InterruptedError`。"
910911

911912
#: ../../library/signal.rst:663
913+
#, fuzzy
912914
msgid ""
913-
"The return value is an object representing the data contained in the :c:type:"
914-
"`siginfo_t` structure, namely: :attr:`si_signo`, :attr:`si_code`, :attr:"
915-
"`si_errno`, :attr:`si_pid`, :attr:`si_uid`, :attr:`si_status`, :attr:"
916-
"`si_band`."
915+
"The return value is an object representing the data contained in the "
916+
"``siginfo_t`` structure, namely: ``si_signo``, ``si_code``, ``si_errno``, "
917+
"``si_pid``, ``si_uid``, ``si_status``, ``si_band``."
917918
msgstr ""
918919
"回傳值是一個物件,代表 :c:type:`siginfo_t` 結構所包含的資料,即 :attr:"
919920
"`si_signo`、:attr:`si_code`、:attr:`si_errno`、:attr:`si_pid`、:attr:"
920921
"`si_uid`、:attr:`si_status`、:attr:`si_band`。"
921922

922-
#: ../../library/signal.rst:670
923+
#: ../../library/signal.rst:669
923924
msgid "See the man page :manpage:`sigwaitinfo(2)` for further information."
924925
msgstr "更多資訊請見 :manpage:`sigwaitinfo(2)` 線上手冊。"
925926

926-
#: ../../library/signal.rst:672
927+
#: ../../library/signal.rst:671
927928
msgid "See also :func:`pause`, :func:`sigwait` and :func:`sigtimedwait`."
928929
msgstr "另請參閱 :func:`pause`、:func:`sigwait` 與 :func:`sigtimedwait`。"
929930

930-
#: ../../library/signal.rst:676
931+
#: ../../library/signal.rst:675
931932
msgid ""
932933
"The function is now retried if interrupted by a signal not in *sigset* and "
933934
"the signal handler does not raise an exception (see :pep:`475` for the "
@@ -936,7 +937,7 @@ msgstr ""
936937
"現在如果被不在 *sigset* 中的訊號中斷,且訊號處理程式沒有引發例外,則會重試函"
937938
"式(理由請參閱 :pep:`475`)。"
938939

939-
#: ../../library/signal.rst:684
940+
#: ../../library/signal.rst:683
940941
msgid ""
941942
"Like :func:`sigwaitinfo`, but takes an additional *timeout* argument "
942943
"specifying a timeout. If *timeout* is specified as ``0``, a poll is "
@@ -945,15 +946,15 @@ msgstr ""
945946
"類似 :func:`sigwaitinfo`,但需要額外的 *timeout* 引數指定逾時時間。如果 "
946947
"*timeout* 指定為 ``0``,會執行輪詢。如果發生逾時則會回傳 :const:`None`。"
947948

948-
#: ../../library/signal.rst:690
949+
#: ../../library/signal.rst:689
949950
msgid "See the man page :manpage:`sigtimedwait(2)` for further information."
950951
msgstr "更多資訊請見 :manpage:`sigtimedwait(2)` 線上手冊。"
951952

952-
#: ../../library/signal.rst:692
953+
#: ../../library/signal.rst:691
953954
msgid "See also :func:`pause`, :func:`sigwait` and :func:`sigwaitinfo`."
954955
msgstr "另請參閱 :func:`pause`、:func:`sigwait` 與 :func:`sigwaitinfo`。"
955956

956-
#: ../../library/signal.rst:696
957+
#: ../../library/signal.rst:695
957958
msgid ""
958959
"The function is now retried with the recomputed *timeout* if interrupted by "
959960
"a signal not in *sigset* and the signal handler does not raise an exception "
@@ -962,11 +963,11 @@ msgstr ""
962963
"現在如果被不在 *sigset* 中的訊號中斷,且訊號處理程式沒有引發例外,則會使用重"
963964
"新計算的 *timeout* 重試函式(理由請參閱 :pep:`475`)。"
964965

965-
#: ../../library/signal.rst:705
966+
#: ../../library/signal.rst:704
966967
msgid "Examples"
967968
msgstr "範例"
968969

969-
#: ../../library/signal.rst:707
970+
#: ../../library/signal.rst:706
970971
msgid ""
971972
"Here is a minimal example program. It uses the :func:`alarm` function to "
972973
"limit the time spent waiting to open a file; this is useful if the file is "
@@ -980,7 +981,7 @@ msgstr ""
980981
"無限期地被擱置。解決方法是在開啟檔案前設定一個 5 秒的警報;如果操作時間過長,"
981982
"警報訊號就會被送出,而處理程式會產生例外。 ::"
982983

983-
#: ../../library/signal.rst:714
984+
#: ../../library/signal.rst:713
984985
msgid ""
985986
"import signal, os\n"
986987
"\n"
@@ -1014,11 +1015,11 @@ msgstr ""
10141015
"\n"
10151016
"signal.alarm(0) # 停用警報"
10161017

1017-
#: ../../library/signal.rst:731
1018+
#: ../../library/signal.rst:730
10181019
msgid "Note on SIGPIPE"
10191020
msgstr "關於 SIGPIPE 的說明"
10201021

1021-
#: ../../library/signal.rst:733
1022+
#: ../../library/signal.rst:732
10221023
msgid ""
10231024
"Piping output of your program to tools like :manpage:`head(1)` will cause a :"
10241025
"const:`SIGPIPE` signal to be sent to your process when the receiver of its "
@@ -1031,7 +1032,7 @@ msgstr ""
10311032
"`BrokenPipeError: [Errno 32] Broken pipe` 的例外。要處理這種情況,請將你的進"
10321033
"入點包裝成如下的樣子來捕捉這個例外: ::"
10331034

1034-
#: ../../library/signal.rst:739
1035+
#: ../../library/signal.rst:738
10351036
msgid ""
10361037
"import os\n"
10371038
"import sys\n"
@@ -1076,7 +1077,7 @@ msgstr ""
10761077
"if __name__ == '__main__':\n"
10771078
" main()"
10781079

1079-
#: ../../library/signal.rst:760
1080+
#: ../../library/signal.rst:759
10801081
msgid ""
10811082
"Do not set :const:`SIGPIPE`'s disposition to :const:`SIG_DFL` in order to "
10821083
"avoid :exc:`BrokenPipeError`. Doing that would cause your program to exit "
@@ -1087,11 +1088,11 @@ msgstr ""
10871088
"(disposition) 設定為 :const:`SIG_DFL`。這樣做會導致你的程式在寫入任何 socket "
10881089
"連線時被中斷而意外退出。"
10891090

1090-
#: ../../library/signal.rst:769
1091+
#: ../../library/signal.rst:768
10911092
msgid "Note on Signal Handlers and Exceptions"
10921093
msgstr "訊號處理程式與例外的說明"
10931094

1094-
#: ../../library/signal.rst:771
1095+
#: ../../library/signal.rst:770
10951096
msgid ""
10961097
"If a signal handler raises an exception, the exception will be propagated to "
10971098
"the main thread and may be raised after any :term:`bytecode` instruction. "
@@ -1107,11 +1108,11 @@ msgstr ""
11071108
"exc:`KeyboardInterrupt`\\ (或任何其他由訊號處理程式產生的例外)可能會在罕見"
11081109
"的情況下使程式處於預期之外的狀態。"
11091110

1110-
#: ../../library/signal.rst:778
1111+
#: ../../library/signal.rst:777
11111112
msgid "To illustrate this issue, consider the following code::"
11121113
msgstr "為了說明這個問題,請參考以下程式碼: ::"
11131114

1114-
#: ../../library/signal.rst:780
1115+
#: ../../library/signal.rst:779
11151116
msgid ""
11161117
"class SpamContext:\n"
11171118
" def __init__(self):\n"
@@ -1143,7 +1144,7 @@ msgstr ""
11431144
" ...\n"
11441145
" self.lock.release()"
11451146

1146-
#: ../../library/signal.rst:795
1147+
#: ../../library/signal.rst:794
11471148
msgid ""
11481149
"For many programs, especially those that merely want to exit on :exc:"
11491150
"`KeyboardInterrupt`, this is not a problem, but applications that are "
@@ -1160,7 +1161,7 @@ msgstr ""
11601161
"`SIGINT` 處理程式。以下是 HTTP 伺服器避免 :exc:`KeyboardInterrupt` 的範"
11611162
"例: ::"
11621163

1163-
#: ../../library/signal.rst:803
1164+
#: ../../library/signal.rst:802
11641165
msgid ""
11651166
"import signal\n"
11661167
"import socket\n"

0 commit comments

Comments
 (0)