Skip to content

Commit 171d83f

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython b87590fd
1 parent 156dbcd commit 171d83f

File tree

4 files changed

+1010
-967
lines changed

4 files changed

+1010
-967
lines changed

c-api/unicode.po

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-03-23 00:22+0000\n"
11+
"POT-Creation-Date: 2026-04-10 00:23+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:08+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2219,8 +2219,8 @@ msgstr ""
22192219
#: ../../c-api/unicode.rst:1817 ../../c-api/unicode.rst:1827
22202220
#: ../../c-api/unicode.rst:1842 ../../c-api/unicode.rst:1852
22212221
#: ../../c-api/unicode.rst:1861 ../../c-api/unicode.rst:1868
2222-
#: ../../c-api/unicode.rst:1877 ../../c-api/unicode.rst:1892
2223-
#: ../../c-api/unicode.rst:1899 ../../c-api/unicode.rst:1918
2222+
#: ../../c-api/unicode.rst:1881 ../../c-api/unicode.rst:1896
2223+
#: ../../c-api/unicode.rst:1903 ../../c-api/unicode.rst:1922
22242224
msgid ""
22252225
"On success, return ``0``. On error, set an exception, leave the writer "
22262226
"unchanged, and return ``-1``."
@@ -2233,7 +2233,7 @@ msgid ""
22332233
msgstr ""
22342234

22352235
#: ../../c-api/unicode.rst:1824 ../../c-api/unicode.rst:1836
2236-
#: ../../c-api/unicode.rst:1907
2236+
#: ../../c-api/unicode.rst:1911
22372237
msgid ""
22382238
"*size* is the string length in bytes. If *size* is equal to ``-1``, call "
22392239
"``strlen(str)`` to get the string length."
@@ -2276,101 +2276,108 @@ msgid ""
22762276
"Call :c:func:`PyObject_Str` on *obj* and write the output into *writer*."
22772277
msgstr "於 *obj* 上呼叫 :c:func:`PyObject_Str` 並將輸出寫入 *writer*。"
22782278

2279-
#: ../../c-api/unicode.rst:1873
2279+
#: ../../c-api/unicode.rst:1871
2280+
msgid ""
2281+
"To write a :class:`str` subclass which overrides the :meth:`~object.__str__` "
2282+
"method, :c:func:`PyUnicode_FromObject` can be used to get the original "
2283+
"string."
2284+
msgstr ""
2285+
2286+
#: ../../c-api/unicode.rst:1877
22802287
msgid ""
22812288
"Call :c:func:`PyObject_Repr` on *obj* and write the output into *writer*."
22822289
msgstr "於 *obj* 上呼叫 :c:func:`PyObject_Repr` 並將輸出寫入 *writer*。"
22832290

2284-
#: ../../c-api/unicode.rst:1875
2291+
#: ../../c-api/unicode.rst:1879
22852292
msgid "If *obj* is ``NULL``, write the string ``\"<NULL>\"`` into *writer*."
22862293
msgstr ""
22872294

2288-
#: ../../c-api/unicode.rst:1882
2295+
#: ../../c-api/unicode.rst:1886
22892296
msgid "Added support for ``NULL``."
22902297
msgstr ""
22912298

2292-
#: ../../c-api/unicode.rst:1886
2299+
#: ../../c-api/unicode.rst:1890
22932300
msgid "Write the substring ``str[start:end]`` into *writer*."
22942301
msgstr ""
22952302

2296-
#: ../../c-api/unicode.rst:1888
2303+
#: ../../c-api/unicode.rst:1892
22972304
msgid ""
22982305
"*str* must be Python :class:`str` object. *start* must be greater than or "
22992306
"equal to 0, and less than or equal to *end*. *end* must be less than or "
23002307
"equal to *str* length."
23012308
msgstr ""
23022309

2303-
#: ../../c-api/unicode.rst:1897
2310+
#: ../../c-api/unicode.rst:1901
23042311
msgid ""
23052312
"Similar to :c:func:`PyUnicode_FromFormat`, but write the output directly "
23062313
"into *writer*."
23072314
msgstr "類似於 :c:func:`PyUnicode_FromFormat`,但是直接將輸出寫入 *writer*。"
23082315

2309-
#: ../../c-api/unicode.rst:1904
2316+
#: ../../c-api/unicode.rst:1908
23102317
msgid ""
23112318
"Decode the string *str* from UTF-8 with *errors* error handler and write the "
23122319
"output into *writer*."
23132320
msgstr ""
23142321

2315-
#: ../../c-api/unicode.rst:1910
2322+
#: ../../c-api/unicode.rst:1914
23162323
msgid ""
23172324
"*errors* is an :ref:`error handler <error-handlers>` name, such as "
23182325
"``\"replace\"``. If *errors* is ``NULL``, use the strict error handler."
23192326
msgstr ""
23202327

2321-
#: ../../c-api/unicode.rst:1913
2328+
#: ../../c-api/unicode.rst:1917
23222329
msgid ""
23232330
"If *consumed* is not ``NULL``, set *\\*consumed* to the number of decoded "
23242331
"bytes on success. If *consumed* is ``NULL``, treat trailing incomplete UTF-8 "
23252332
"byte sequences as an error."
23262333
msgstr ""
23272334

2328-
#: ../../c-api/unicode.rst:1921
2335+
#: ../../c-api/unicode.rst:1925
23292336
msgid "See also :c:func:`PyUnicodeWriter_WriteUTF8`."
23302337
msgstr "另請參閱 :c:func:`PyUnicodeWriter_WriteUTF8`。"
23312338

2332-
#: ../../c-api/unicode.rst:1924
2339+
#: ../../c-api/unicode.rst:1928
23332340
msgid "Deprecated API"
23342341
msgstr "已棄用的 API"
23352342

2336-
#: ../../c-api/unicode.rst:1926
2343+
#: ../../c-api/unicode.rst:1930
23372344
msgid "The following API is deprecated."
23382345
msgstr "以下 API 已棄用。"
23392346

2340-
#: ../../c-api/unicode.rst:1930
2347+
#: ../../c-api/unicode.rst:1934
23412348
msgid ""
23422349
"This is a typedef of :c:type:`wchar_t`, which is a 16-bit type or 32-bit "
23432350
"type depending on the platform. Please use :c:type:`wchar_t` directly "
23442351
"instead."
23452352
msgstr ""
23462353

2347-
#: ../../c-api/unicode.rst:1934
2354+
#: ../../c-api/unicode.rst:1938
23482355
msgid ""
23492356
"In previous versions, this was a 16-bit type or a 32-bit type depending on "
23502357
"whether you selected a \"narrow\" or \"wide\" Unicode version of Python at "
23512358
"build time."
23522359
msgstr ""
23532360

2354-
#: ../../c-api/unicode.rst:1944
2361+
#: ../../c-api/unicode.rst:1948
23552362
msgid ""
23562363
"Do nothing and return ``0``. This API is kept only for backward "
23572364
"compatibility, but there are no plans to remove it."
23582365
msgstr ""
23592366

2360-
#: ../../c-api/unicode.rst:1950
2367+
#: ../../c-api/unicode.rst:1954
23612368
msgid ""
23622369
"This API does nothing since Python 3.12. Previously, this needed to be "
23632370
"called for each string created using the old API (:c:func:`!"
23642371
"PyUnicode_FromUnicode` or similar)."
23652372
msgstr ""
23662373

2367-
#: ../../c-api/unicode.rst:1958
2374+
#: ../../c-api/unicode.rst:1962
23682375
msgid ""
23692376
"Do nothing and return ``1``. This API is kept only for backward "
23702377
"compatibility, but there are no plans to remove it."
23712378
msgstr ""
23722379

2373-
#: ../../c-api/unicode.rst:1964
2380+
#: ../../c-api/unicode.rst:1968
23742381
msgid ""
23752382
"This API does nothing since Python 3.12. Previously, this could be called to "
23762383
"check if :c:func:`PyUnicode_READY` is necessary."

library/asyncio-eventloop.po

Lines changed: 3 additions & 2 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: 2026-03-22 00:20+0000\n"
9+
"POT-Creation-Date: 2026-04-10 00:23+0000\n"
1010
"PO-Revision-Date: 2022-02-20 12:36+0800\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -3084,7 +3084,8 @@ msgid "Set signal handlers for SIGINT and SIGTERM"
30843084
msgstr "設定 SIGINT 和 SIGTERM 的訊號處理程式"
30853085

30863086
#: ../../library/asyncio-eventloop.rst:2058
3087-
msgid "(This ``signals`` example only works on Unix.)"
3087+
#, fuzzy
3088+
msgid "(This ``signal`` example only works on Unix.)"
30883089
msgstr "(此 ``signals`` 範例僅在 Unix 上運作。)"
30893090

30903091
#: ../../library/asyncio-eventloop.rst:2060

0 commit comments

Comments
 (0)