Skip to content

Commit 231664e

Browse files
committed
Translate new/fuzzy entries from upstream sync (cpython f9fdb30d)
Rebased onto upstream/cron/sync/3.14 (5 new sync commits) and translated the resulting backlog: 22 new msgids and 3 fuzzy entries across 5 files (library/curses.po, library/os.po, library/turtle.po, glossary.po, library/tempfile.po).
1 parent 9260e1f commit 231664e

5 files changed

Lines changed: 78 additions & 15 deletions

File tree

glossary.po

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,6 @@ msgid "expression"
11141114
msgstr "expression(運算式)"
11151115

11161116
#: ../../glossary.rst:509
1117-
#, fuzzy
11181117
msgid ""
11191118
"A piece of syntax which can be evaluated to some value. In other words, an "
11201119
"expression is an accumulation of expression elements like literals, names, "
@@ -1124,10 +1123,9 @@ msgid ""
11241123
"`while`. Assignments are also statements, not expressions."
11251124
msgstr ""
11261125
"一段可以被評估並求值的語法。換句話說,一個運算式就是文字、名稱、屬性存取、運"
1127-
"算子或函式呼叫等運算式元件的累積,而這些元件都能回傳一個值。與許多其他語言不"
1128-
"同的是,並非所有的 Python 語言構造都是運算式。另外有一些 :term:`statement`\\ "
1129-
"(陳述式)不能被用作運算式,例如 :keyword:`while`。賦值 (assignment) 也是陳述"
1130-
"式,而不是運算式。"
1126+
"算子或函式呼叫等運算式元件的累積,而這些元件都能回傳一個值。並非所有的語言構"
1127+
"造都是運算式。另外有一些 :term:`statement`\\ (陳述式)不能被用作運算式,例"
1128+
"如 :keyword:`while`。賦值 (assignment) 也是陳述式,而不是運算式。"
11311129

11321130
#: ../../glossary.rst:516
11331131
msgid "extension module"

library/curses.po

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ msgid ""
6666
"integer is the code of a single encoded byte, optionally combined with "
6767
"attributes and a color pair, as returned by :meth:`window.inch`."
6868
msgstr ""
69+
"當文件中提到\\ *字元*\\ 時,它可以被指定為一個整數、一個單一字元的 Unicode 字"
70+
"串,或一個單位元組的 byte 字串。整數是單一已編碼位元組的代碼,並可選擇性地與"
71+
"屬性和顏色對組合,如 :meth:`window.inch` 所回傳的值。"
6972

7073
#: ../../library/curses.rst:36
7174
msgid ""
@@ -636,6 +639,8 @@ msgid ""
636639
"terminfo capability, a bytes object, for the current terminal. Note that the "
637640
"output of :func:`putp` always goes to standard output."
638641
msgstr ""
642+
"等同於 ``tputs(str, 1, putchar)``;為目前的終端機發出指定 terminfo 功能的值,"
643+
"該值為一個 bytes 物件。請注意,:func:`putp` 的輸出總是會被導向標準輸出。"
639644

640645
#: ../../library/curses.rst:513 ../../library/curses.rst:656
641646
#: ../../library/curses.rst:666 ../../library/curses.rst:676
@@ -842,6 +847,9 @@ msgid ""
842847
"represented as a caret followed by the character, for example as ``b'^C'``. "
843848
"Printing characters are left as they are."
844849
msgstr ""
850+
"回傳一個 bytes 物件,其為字元 *ch* 的可列印表示形式;任何屬性和顏色對都會被忽"
851+
"略。控制字元會以插入符號 (caret) 加上該字元來表示,例如 ``b'^C'``。可列印字元"
852+
"則保持原樣。"
845853

846854
#: ../../library/curses.rst:711
847855
msgid "Push *ch* so the next :meth:`~window.getch` will return it."
@@ -852,6 +860,8 @@ msgid ""
852860
"*ch* may be an integer (a key code or the code of an encoded byte), a byte, "
853861
"or a string of length 1 which encodes to a single byte."
854862
msgstr ""
863+
"*ch* 可以是一個整數(按鍵代碼或已編碼位元組的代碼)、一個 byte,或一個長度為 "
864+
"1 且會被編碼為單一位元組的字串。"
855865

856866
#: ../../library/curses.rst:718
857867
msgid "Only one *ch* can be pushed before :meth:`!getch` is called."
@@ -871,7 +881,7 @@ msgstr ""
871881
msgid ""
872882
"*ch* may be an integer (a character code, not a key code) or a string of "
873883
"length 1."
874-
msgstr ""
884+
msgstr "*ch* 可以是一個整數(字元代碼,而非按鍵代碼)或一個長度為 1 的字串。"
875885

876886
#: ../../library/curses.rst:738
877887
msgid "Only one *ch* can be pushed before :meth:`!get_wch` is called."
@@ -1250,6 +1260,10 @@ msgid ""
12501260
"return ``-1`` if the read is non-blocking or times out (see :meth:`nodelay` "
12511261
"and :meth:`timeout`)."
12521262
msgstr ""
1263+
"讀取一次按鍵,若有指定 *y*、*x* 則先將游標移動到該處,並以整數形式回傳。如果"
1264+
"該視窗不是 pad 且自上次重新整理後已被修改,則會先重新整理它。等待直到有按鍵被"
1265+
"按下,或者在讀取為非阻塞或逾時的情況下回傳 ``-1``\\ (請參閱 :meth:`nodelay` "
1266+
"和 :meth:`timeout`)。"
12531267

12541268
#: ../../library/curses.rst:1023
12551269
msgid ""
@@ -1258,6 +1272,10 @@ msgid ""
12581272
"calls. For example, in a UTF-8 locale ``'é'`` is read as ``195``, then "
12591273
"``169``. Use :meth:`get_wch` to read it as a single character."
12601274
msgstr ""
1275+
"一般按鍵會以其在目前語言環境 (locale) 中編碼的單一位元組代碼回傳,因此一個以"
1276+
"多個位元組編碼的字元需要多次呼叫才能讀取完畢。舉例來說,在 UTF-8 語言環境下,"
1277+
"``'é'`` 會先讀到 ``195``,接著讀到 ``169``。若要將其讀取為單一字元,請使用 :"
1278+
"meth:`get_wch`。"
12611279

12621280
#: ../../library/curses.rst:1029
12631281
msgid ""
@@ -1267,12 +1285,18 @@ msgid ""
12671285
"sequence does not arrive in time (see :meth:`notimeout` and :func:"
12681286
"`set_escdelay`), their bytes are returned one at a time."
12691287
msgstr ""
1288+
"在鍵盤模式 (keypad mode,請參閱 :meth:`keypad`) 下,功能鍵和其他特殊按鍵會"
1289+
"以 :ref:`KEY_* 常數之一 <curses-key-constants>` 的形式回傳,因此不會與一般按"
1290+
"鍵混淆。否則,或者如果它們的跳脫序列 (escape sequence) 未能及時送達(請參閱 :"
1291+
"meth:`notimeout` 和 :func:`set_escdelay`),則會逐一位元組回傳。"
12701292

12711293
#: ../../library/curses.rst:1036 ../../library/curses.rst:1056
12721294
msgid ""
12731295
"In echo mode (see :func:`echo`) the key is added to the window as by :meth:"
12741296
"`addch`; special keys are not echoed."
12751297
msgstr ""
1298+
"在回顯模式 (echo mode,請參閱 :func:`echo`) 下,該按鍵會以 :meth:`addch` 的方"
1299+
"式被加入到視窗中;特殊按鍵則不會被回顯。"
12761300

12771301
#: ../../library/curses.rst:1042
12781302
msgid ""
@@ -1282,6 +1306,10 @@ msgid ""
12821306
"pressed, or raise :exc:`error` if the read is non-blocking or times out "
12831307
"(see :meth:`nodelay` and :meth:`timeout`)."
12841308
msgstr ""
1309+
"讀取一次按鍵,若有指定 *y*、*x* 則先將游標移動到該處,並以單一字元的 :class:"
1310+
"`str` 形式回傳。如果該視窗不是 pad 且自上次重新整理後已被修改,則會先重新整理"
1311+
"它。等待直到有按鍵被按下,或者在讀取為非阻塞或逾時的情況下引發 :exc:"
1312+
"`error`\\ (請參閱 :meth:`nodelay` 和 :meth:`timeout`)。"
12851313

12861314
#: ../../library/curses.rst:1049
12871315
msgid ""
@@ -1291,6 +1319,10 @@ msgid ""
12911319
"(see :meth:`notimeout` and :func:`set_escdelay`), their characters are "
12921320
"returned one at a time."
12931321
msgstr ""
1322+
"在鍵盤模式 (keypad mode,請參閱 :meth:`keypad`) 下,功能鍵和其他特殊按鍵會"
1323+
"以 :ref:`KEY_* 常數之一 <curses-key-constants>`\\ (一個整數)的形式回傳。否"
1324+
"則,或者如果它們的跳脫序列 (escape sequence) 未能及時送達(請參閱 :meth:"
1325+
"`notimeout` 和 :func:`set_escdelay`),則會逐一字元回傳。"
12941326

12951327
#: ../../library/curses.rst:1064
12961328
msgid ""
@@ -1299,6 +1331,10 @@ msgid ""
12991331
"special key as its name, such as ``'KEY_UP'`` (see :func:`keyname`). Raise :"
13001332
"exc:`error` instead of returning ``-1`` if there is no input."
13011333
msgstr ""
1334+
"以與 :meth:`getch` 相同的方式讀取一次按鍵,但以 :class:`str` 形式回傳:一般按"
1335+
"鍵會是單一字元的字串(該位元組以 Latin-1 解碼),特殊按鍵則會是其名稱,例如 "
1336+
"``'KEY_UP'``\\ (請參閱 :func:`keyname`)。若沒有輸入,則引發 :exc:`error` 而"
1337+
"非回傳 ``-1``。"
13021338

13031339
#: ../../library/curses.rst:1072
13041340
msgid "Return a tuple ``(y, x)`` of the height and width of the window."
@@ -1457,6 +1493,9 @@ msgid ""
14571493
"mode is disabled by default, but :func:`wrapper` enables it for the main "
14581494
"window."
14591495
msgstr ""
1496+
"如果 *flag* 為 ``True``,某些按鍵(keypad、功能鍵)產生的跳脫序列將由 :mod:`!"
1497+
"curses` 解讀。如果 *flag* 為 ``False``,跳脫序列會原樣保留在輸入串流中。鍵盤"
1498+
"模式預設為停用,但 :func:`wrapper` 會為主視窗啟用它。"
14601499

14611500
#: ../../library/curses.rst:1227
14621501
msgid ""

library/os.po

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4654,6 +4654,9 @@ msgid ""
46544654
"to be updated. To cancel the timer when the system clock is changed, see :"
46554655
"const:`TFD_TIMER_CANCEL_ON_SET`."
46564656
msgstr ""
4657+
"如果 *clockid* 為 :const:`time.CLOCK_REALTIME`,則會使用一個可設定的系統級即"
4658+
"時時鐘。若系統時鐘被變更,則需要更新計時器設定。若要在系統時鐘變更時取消計時"
4659+
"器,請參閱 :const:`TFD_TIMER_CANCEL_ON_SET`。"
46574660

46584661
#: ../../library/os.rst:4146
46594662
msgid ""
@@ -4667,6 +4670,8 @@ msgid ""
46674670
"If *clockid* is :const:`time.CLOCK_BOOTTIME`, it is the same as :const:`time."
46684671
"CLOCK_MONOTONIC` except it includes any time that the system is suspended."
46694672
msgstr ""
4673+
"如果 *clockid* 為 :const:`time.CLOCK_BOOTTIME`,則其與 :const:`time."
4674+
"CLOCK_MONOTONIC` 相同,但會包含系統暫停期間所經過的任何時間。"
46704675

46714676
#: ../../library/os.rst:4154
46724677
msgid ""
@@ -4690,6 +4695,10 @@ msgid ""
46904695
"there hasn't been an expiration since the last call to read, :func:`read` "
46914696
"raises :class:`OSError` with ``errno`` set to :const:`errno.EAGAIN`."
46924697
msgstr ""
4698+
"如果未將 :const:`TFD_NONBLOCK` 設為旗標,則 :func:`read` 會阻塞直到計時器到期"
4699+
"為止。如果將其設為旗標,則 :func:`read` 不會阻塞,但如果自上次呼叫 read 以來"
4700+
"尚未發生到期,:func:`read` 會引發 :class:`OSError`,其 ``errno`` 會被設為 :"
4701+
"const:`errno.EAGAIN`。"
46934702

46944703
#: ../../library/os.rst:4167
46954704
msgid ":const:`TFD_CLOEXEC` is always set by Python automatically."
@@ -4737,10 +4746,13 @@ msgid ""
47374746
"raises an :class:`OSError` exception with ``errno`` set to :const:`errno."
47384747
"EINVAL`."
47394748
msgstr ""
4749+
"將 *initial* 設為零 (``0``) 可停用計時器。如果 *initial* 大於零,則計時器會被"
4750+
"啟用。如果 *initial* 小於零,則會引發 :class:`OSError` 例外,其 ``errno`` 會"
4751+
"被設為 :const:`errno.EINVAL`。"
47404752

47414753
#: ../../library/os.rst:4198
47424754
msgid "By default the timer will fire when *initial* seconds have elapsed."
4743-
msgstr ""
4755+
msgstr "預設情況下,計時器會在經過 *initial* 秒後觸發。"
47444756

47454757
#: ../../library/os.rst:4200
47464758
msgid ""
@@ -4758,6 +4770,10 @@ msgid ""
47584770
"than zero, it raises :class:`OSError` with ``errno`` set to :const:`errno."
47594771
"EINVAL`."
47604772
msgstr ""
4773+
"計時器的間隔由 *interval* 這個 :py:class:`float` 設定。如果 *interval* 為零,"
4774+
"則計時器只會在初次到期時觸發一次。如果 *interval* 大於零,則計時器會在每次自"
4775+
"上次到期後經過 *interval* 秒時觸發。如果 *interval* 小於零,則會引發 :class:"
4776+
"`OSError`,其 ``errno`` 會被設為 :const:`errno.EINVAL`。"
47614777

47624778
#: ../../library/os.rst:4211
47634779
msgid ""
@@ -4767,6 +4783,10 @@ msgid ""
47674783
"changed discontinuously. Reading the descriptor is aborted with the error :"
47684784
"const:`errno.ECANCELED`."
47694785
msgstr ""
4786+
"如果 :const:`TFD_TIMER_CANCEL_ON_SET` 旗標與 :const:`TFD_TIMER_ABSTIME` 一同"
4787+
"被設定,且該計時器的時鐘為 :const:`time.CLOCK_REALTIME`,則當即時時鐘被不連續"
4788+
"地變更時,該計時器會被標記為可取消。讀取該描述器將會因錯誤 :const:`errno."
4789+
"ECANCELED` 而中止。"
47704790

47714791
#: ../../library/os.rst:4217
47724792
msgid ""

library/tempfile.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,14 @@ msgid "A platform-specific location:"
578578
msgstr "與平臺相關的位置:"
579579

580580
#: ../../library/tempfile.rst:324
581-
#, fuzzy
582581
msgid ""
583582
"On Windows, the directories :file:`%USERPROFILE%\\\\AppData\\\\Local\\"
584583
"\\Temp`, :file:`%SYSTEMROOT%\\\\Temp`, :file:`C:\\\\TEMP`, :file:`C:\\"
585584
"\\TMP`, :file:`\\\\TEMP`, and :file:`\\\\TMP`, in that order."
586585
msgstr ""
587-
"在 Windows 上,目錄依次為 :file:`C:\\\\TEMP`、:file:`C:\\\\TMP`、:file:`\\"
588-
"\\TEMP` 和 :file:`\\\\TMP`。"
586+
"在 Windows 上,目錄依次為 :file:`%USERPROFILE%\\\\AppData\\\\Local\\"
587+
"\\Temp`、:file:`%SYSTEMROOT%\\\\Temp`、:file:`C:\\\\TEMP`、:file:`C:\\"
588+
"\\TMP`、:file:`\\\\TEMP` 和 :file:`\\\\TMP`。"
589589

590590
#: ../../library/tempfile.rst:330
591591
msgid ""

library/turtle.po

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,8 @@ msgid ""
22572257
">>> turtle.write(\"Home = \", True, align=\"center\")\n"
22582258
">>> turtle.write((0,0), True)"
22592259
msgstr ""
2260+
">>> turtle.write(\"Home = \", True, align=\"center\")\n"
2261+
">>> turtle.write((0,0), True)"
22602262

22612263
#: ../../library/turtle.rst:1431
22622264
msgid ""
@@ -2282,7 +2284,6 @@ msgid "Return ``True`` if the Turtle is shown, ``False`` if it's hidden."
22822284
msgstr ""
22832285

22842286
#: ../../library/turtle.rst:1456
2285-
#, fuzzy
22862287
msgid ""
22872288
">>> turtle.hideturtle()\n"
22882289
">>> turtle.isvisible()\n"
@@ -2291,11 +2292,11 @@ msgid ""
22912292
">>> turtle.isvisible()\n"
22922293
"True"
22932294
msgstr ""
2294-
">>> turtle.penup()\n"
2295-
">>> turtle.isdown()\n"
2295+
">>> turtle.hideturtle()\n"
2296+
">>> turtle.isvisible()\n"
22962297
"False\n"
2297-
">>> turtle.pendown()\n"
2298-
">>> turtle.isdown()\n"
2298+
">>> turtle.showturtle()\n"
2299+
">>> turtle.isvisible()\n"
22992300
"True"
23002301

23012302
#: ../../library/turtle.rst:1472
@@ -2967,6 +2968,11 @@ msgid ""
29672968
">>> screen.screensize()\n"
29682969
"(2000, 1500)"
29692970
msgstr ""
2971+
">>> screen.screensize()\n"
2972+
"(400, 300)\n"
2973+
">>> screen.screensize(2000,1500)\n"
2974+
">>> screen.screensize()\n"
2975+
"(2000, 1500)"
29702976

29712977
#: ../../library/turtle.rst:2004
29722978
msgid "e.g. to search for an erroneously escaped turtle ;-)"

0 commit comments

Comments
 (0)