Skip to content

Sync with CPython 3.10 #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
136 changes: 71 additions & 65 deletions c-api/arg.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion c-api/buffer.po
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ msgstr ""
#: ../../c-api/buffer.rst:333 ../../c-api/buffer.rst:335
#: ../../c-api/buffer.rst:337
msgid "NULL"
msgstr ""
msgstr "NULL"

#: ../../c-api/buffer.rst:287
msgid "contiguity requests"
Expand Down
2 changes: 1 addition & 1 deletion c-api/bytes.po
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ msgstr ":attr:`%ld`"

#: ../../c-api/bytes.rst:81
msgid "long"
msgstr ""
msgstr "long"

#: ../../c-api/bytes.rst:81
msgid "Equivalent to ``printf(\"%ld\")``. [1]_"
Expand Down
12 changes: 6 additions & 6 deletions c-api/call.po
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,19 @@ msgstr ""

#: ../../c-api/call.rst:195
msgid "Function"
msgstr ""
msgstr "函式"

#: ../../c-api/call.rst:195
msgid "callable"
msgstr ""
msgstr "callable"

#: ../../c-api/call.rst:195
msgid "args"
msgstr ""
msgstr "args"

#: ../../c-api/call.rst:195
msgid "kwargs"
msgstr ""
msgstr "kwargs"

#: ../../c-api/call.rst:197
msgid ":c:func:`PyObject_Call`"
Expand Down Expand Up @@ -339,7 +339,7 @@ msgstr ":c:func:`PyObject_CallMethod`"

#: ../../c-api/call.rst:207
msgid "obj + ``char*``"
msgstr ""
msgstr "物件 + ``char*``"

#: ../../c-api/call.rst:209
msgid ":c:func:`PyObject_CallFunctionObjArgs`"
Expand All @@ -355,7 +355,7 @@ msgstr ":c:func:`PyObject_CallMethodObjArgs`"

#: ../../c-api/call.rst:211 ../../c-api/call.rst:213 ../../c-api/call.rst:215
msgid "obj + name"
msgstr ""
msgstr "物件 + 名稱"

#: ../../c-api/call.rst:213
msgid ":c:func:`PyObject_CallMethodNoArgs`"
Expand Down
10 changes: 5 additions & 5 deletions c-api/concrete.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ msgstr ""

#: ../../c-api/concrete.rst:28
msgid "Fundamental Objects"
msgstr ""
msgstr "基礎物件"

#: ../../c-api/concrete.rst:30
msgid ""
Expand All @@ -52,11 +52,11 @@ msgstr ""

#: ../../c-api/concrete.rst:41
msgid "Numeric Objects"
msgstr ""
msgstr "數值物件"

#: ../../c-api/concrete.rst:56
msgid "Sequence Objects"
msgstr ""
msgstr "序列物件"

#: ../../c-api/concrete.rst:60
msgid ""
Expand All @@ -67,12 +67,12 @@ msgstr ""

#: ../../c-api/concrete.rst:78
msgid "Container Objects"
msgstr ""
msgstr "容器物件"

#: ../../c-api/concrete.rst:91
msgid "Function Objects"
msgstr "函式物件"

#: ../../c-api/concrete.rst:102
msgid "Other Objects"
msgstr ""
msgstr "其他物件"
2 changes: 1 addition & 1 deletion c-api/coro.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgstr ""

#: ../../c-api/coro.rst:6
msgid "Coroutine Objects"
msgstr ""
msgstr "協程物件"

#: ../../c-api/coro.rst:10
msgid ""
Expand Down
3 changes: 3 additions & 0 deletions c-api/dict.po
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ msgstr ""
#: ../../c-api/dict.rst:176
msgid "For example::"
msgstr ""
"舉例來說:\n"
"\n"
"::"

#: ../../c-api/dict.rst:186
msgid ""
Expand Down
2 changes: 1 addition & 1 deletion c-api/exceptions.po
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ msgstr ""
#: ../../c-api/exceptions.rst:217 ../../c-api/exceptions.rst:225
#: ../../c-api/exceptions.rst:234 ../../c-api/exceptions.rst:243
msgid ":ref:`Availability <availability>`: Windows."
msgstr ""
msgstr ":ref:`適用 <availability>`:Windows。"

#: ../../c-api/exceptions.rst:205
msgid ""
Expand Down
2 changes: 1 addition & 1 deletion c-api/import.po
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ msgstr ""

#: ../../c-api/import.rst:190
msgid "Return value of ``-1`` upon failure."
msgstr ""
msgstr "當失敗時回傳 ``-1``。"

#: ../../c-api/import.rst:196
msgid ""
Expand Down
19 changes: 2 additions & 17 deletions c-api/init.po
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ msgstr ""

#: ../../c-api/init.rst:163 ../../c-api/init.rst:175
msgid ":ref:`Availability <availability>`: Windows."
msgstr ""
msgstr ":ref:`適用 <availability>`:Windows。"

#: ../../c-api/init.rst:167
msgid ""
Expand Down Expand Up @@ -1281,7 +1281,7 @@ msgstr ""
#: ../../c-api/init.rst:1121 ../../c-api/init.rst:1130
#: ../../c-api/init.rst:1139
msgid "*tstate* must not be ``NULL``."
msgstr ""
msgstr "*tstate* 不可為 ``NULL``。"

#: ../../c-api/init.rst:1128
msgid ""
Expand Down Expand Up @@ -2039,18 +2039,3 @@ msgid ""
"Due to the compatibility problem noted above, this version of the API should "
"not be used in new code."
msgstr ""

#~ msgid "0"
#~ msgstr "0"

#~ msgid "1"
#~ msgstr "1"

#~ msgid "2"
#~ msgstr "2"

#~ msgid "4"
#~ msgstr "4"

#~ msgid "8"
#~ msgstr "8"
37 changes: 20 additions & 17 deletions c-api/init_config.po
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ msgstr ""

#: ../../c-api/init_config.rst:37
msgid "Example"
msgstr ""
msgstr "範例"

#: ../../c-api/init_config.rst:39
msgid "Example of customized Python always running in isolated mode::"
msgstr ""

#: ../../c-api/init_config.rst:76
msgid "PyWideStringList"
msgstr ""
msgstr "PyWideStringList"

#: ../../c-api/init_config.rst:80
msgid "List of ``wchar_t*`` strings."
Expand Down Expand Up @@ -127,7 +127,7 @@ msgstr ""

#: ../../c-api/init_config.rst:115
msgid "PyStatus"
msgstr ""
msgstr "PyStatus"

#: ../../c-api/init_config.rst:119
msgid ""
Expand All @@ -144,7 +144,7 @@ msgstr ""

#: ../../c-api/init_config.rst:132
msgid "Error message."
msgstr ""
msgstr "錯誤訊息。"

#: ../../c-api/init_config.rst:136
msgid "Name of the function which created an error, can be ``NULL``."
Expand All @@ -164,7 +164,7 @@ msgstr ""

#: ../../c-api/init_config.rst:148
msgid "*err_msg* must not be ``NULL``."
msgstr ""
msgstr "*err_msg* 不可為 ``NULL``。"

#: ../../c-api/init_config.rst:152
msgid "Memory allocation failure (out of memory)."
Expand Down Expand Up @@ -208,10 +208,13 @@ msgstr ""
#: ../../c-api/init_config.rst:183
msgid "Example::"
msgstr ""
"範例:\n"
"\n"
"::"

#: ../../c-api/init_config.rst:207
msgid "PyPreConfig"
msgstr ""
msgstr "PyPreConfig"

#: ../../c-api/init_config.rst:211
msgid "Structure used to preinitialize Python."
Expand Down Expand Up @@ -286,11 +289,11 @@ msgstr ""

#: ../../c-api/init_config.rst:251
msgid "See :ref:`Memory Management <memory>`."
msgstr ""
msgstr "請見\\ :ref:`記憶體管理 <memory>`\\ 。"

#: ../../c-api/init_config.rst:253
msgid "Default: ``PYMEM_ALLOCATOR_NOT_SET``."
msgstr ""
msgstr "預設:\\ ``PYMEM_ALLOCATOR_NOT_SET``\\ 。"

#: ../../c-api/init_config.rst:257
msgid "Set the LC_CTYPE locale to the user preferred locale?"
Expand All @@ -304,7 +307,7 @@ msgstr ""

#: ../../c-api/init_config.rst:262 ../../c-api/init_config.rst:273
msgid "See the :term:`locale encoding`."
msgstr ""
msgstr "請見 :term:`locale encoding`\\ 。"

#: ../../c-api/init_config.rst:264 ../../c-api/init_config.rst:319
#: ../../c-api/init_config.rst:627
Expand Down Expand Up @@ -349,19 +352,19 @@ msgstr ""

#: ../../c-api/init_config.rst:298
msgid "If non-zero:"
msgstr ""
msgstr "如果不為 0:"

#: ../../c-api/init_config.rst:300
msgid "Set :c:member:`PyPreConfig.utf8_mode` to ``0``,"
msgstr ""
msgstr "將 :c:member:`PyPreConfig.utf8_mode` 設為 ``0``\\ 、"

#: ../../c-api/init_config.rst:301
msgid "Set :c:member:`PyConfig.filesystem_encoding` to ``\"mbcs\"``,"
msgstr ""
msgstr "將 :c:member:`PyConfig.filesystem_encoding` 設為 ``\"mbcs\"``\\ 、"

#: ../../c-api/init_config.rst:302
msgid "Set :c:member:`PyConfig.filesystem_errors` to ``\"replace\"``."
msgstr ""
msgstr "將 :c:member:`PyConfig.filesystem_errors` 設為 ``\"replace\"``\\ 。"

#: ../../c-api/init_config.rst:304
msgid ""
Expand All @@ -384,7 +387,7 @@ msgstr ""
#: ../../c-api/init_config.rst:1029 ../../c-api/init_config.rst:1058
#: ../../c-api/init_config.rst:1129
msgid "Default: ``0``."
msgstr ""
msgstr "預設:\\ ``0``。"

#: ../../c-api/init_config.rst:314
msgid ""
Expand Down Expand Up @@ -458,7 +461,7 @@ msgstr ""
#: ../../c-api/init_config.rst:359 ../../c-api/init_config.rst:368
#: ../../c-api/init_config.rst:377
msgid "*preconfig* must not be ``NULL``."
msgstr ""
msgstr "*preconfig* 不可為 ``NULL``。"

#: ../../c-api/init_config.rst:365
msgid ""
Expand Down Expand Up @@ -512,7 +515,7 @@ msgstr ""

#: ../../c-api/init_config.rst:421
msgid "PyConfig"
msgstr ""
msgstr "PyConfig"

#: ../../c-api/init_config.rst:425
msgid "Structure containing most parameters to configure Python."
Expand Down Expand Up @@ -770,7 +773,7 @@ msgstr ""

#: ../../c-api/init_config.rst:612
msgid "Default: ``L\"default\"``."
msgstr ""
msgstr "預設:\\ ``L\"default\"``。"

#: ../../c-api/init_config.rst:614
msgid "See also :pep:`552` \"Deterministic pycs\"."
Expand Down
7 changes: 5 additions & 2 deletions c-api/intro.po
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ msgstr ""

#: ../../c-api/intro.rst:132
msgid "Return the absolute value of ``x``."
msgstr ""
msgstr "回傳 ``x`` 的絕對值。"

#: ../../c-api/intro.rst:138
msgid "Return the minimum value between ``x`` and ``y``."
Expand Down Expand Up @@ -233,6 +233,9 @@ msgstr ""
#: ../../c-api/intro.rst:216
msgid "Example::"
msgstr ""
"範例:\n"
"\n"
"::"

#: ../../c-api/intro.rst:187
msgid "MSVC support was added."
Expand Down Expand Up @@ -498,7 +501,7 @@ msgstr ""

#: ../../c-api/intro.rst:509
msgid "Exceptions"
msgstr ""
msgstr "例外"

#: ../../c-api/intro.rst:511
msgid ""
Expand Down
4 changes: 2 additions & 2 deletions c-api/memory.po
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ msgstr ""
#: ../../c-api/memory.rst:434 ../../c-api/memory.rst:443
#: ../../c-api/memory.rst:452
msgid "Functions:"
msgstr ""
msgstr "函式:"

#: ../../c-api/memory.rst:436
msgid ":c:func:`PyMem_RawMalloc`"
Expand Down Expand Up @@ -997,7 +997,7 @@ msgstr ""

#: ../../c-api/memory.rst:669
msgid "Examples"
msgstr ""
msgstr "範例"

#: ../../c-api/memory.rst:671
msgid ""
Expand Down
2 changes: 1 addition & 1 deletion c-api/memoryview.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgstr ""

#: ../../c-api/memoryview.rst:9
msgid "MemoryView objects"
msgstr ""
msgstr "MemoryView 物件"

#: ../../c-api/memoryview.rst:11
msgid ""
Expand Down
5 changes: 4 additions & 1 deletion c-api/module.po
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ msgstr ""

#: ../../c-api/module.rst:48
msgid ":attr:`__package__` and :attr:`__loader__` are set to ``None``."
msgstr ""
msgstr ":attr:`__package__` 和 :attr:`__loader__` 被設為 ``None``。"

#: ../../c-api/module.rst:54
msgid ""
Expand Down Expand Up @@ -518,6 +518,9 @@ msgstr ""
#: ../../c-api/module.rst:457 ../../c-api/module.rst:506
msgid "Example usage::"
msgstr ""
"用法範例:\n"
"\n"
"::"

#: ../../c-api/module.rst:471 ../../c-api/module.rst:524
msgid ""
Expand Down
2 changes: 1 addition & 1 deletion c-api/none.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ msgstr ""

#: ../../c-api/none.rst:6
msgid "The ``None`` Object"
msgstr ""
msgstr "``None`` 物件"

#: ../../c-api/none.rst:10
msgid ""
Expand Down
Loading