Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e463f7

Browse files
[po] auto sync
1 parent 39d1eda commit 2e463f7

46 files changed

Lines changed: 1203 additions & 814 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.39%", "updated_at": "2024-01-12T15:22:53Z"}
1+
{"translation": "90.45%", "updated_at": "2024-01-17T14:23:10Z"}

c-api/file.po

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
2+
# Copyright (C) 2001-2024, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
77
# Alpha Du <[email protected]>, 2019
88
# Freesand Leo <[email protected]>, 2020
9+
# Rafael Fontenelle <[email protected]>, 2024
910
#
1011
#, fuzzy
1112
msgid ""
1213
msgstr ""
1314
"Project-Id-Version: Python 3.9\n"
1415
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2022-11-04 14:34+0000\n"
16+
"POT-Creation-Date: 2024-01-12 22:01+0000\n"
1617
"PO-Revision-Date: 2017-02-16 17:35+0000\n"
17-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
18-
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
18+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
19+
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
2122
"Content-Transfer-Encoding: 8bit\n"
@@ -91,14 +92,14 @@ msgid ""
9192
msgstr ""
9293
"等价于 ``p.readline([n])`` ,这个函数从对象 *p* 中读取一行。 *p* 可以是文件对象或具有 "
9394
":meth:`~io.IOBase.readline` 方法的任何对象。 如果 *n* 是 ``0`` ,则无论该行的长度如何,都会读取一行。 如果 "
94-
"*n* 大于``0``,则从文件中读取不超过 *n* 个字节;可以返回行的一部分。 在这两种情况下,如果立即到达文件末尾,则返回空字符串。 但是,如果 "
95-
"*n* 小于 ``0`` ,则无论长度如何都会读取一行,但是如果立即到达文件末尾,则引发 :exc:`EOFError`。"
95+
"*n* 大于 ``0``,则从文件中读取不超过 *n* 个字节;可以返回行的一部分。 在这两种情况下,如果立即到达文件末尾,则返回空字符串。 但是,如果"
96+
" *n* 小于 ``0`` ,则无论长度如何都会读取一行,但是如果立即到达文件末尾,则引发 :exc:`EOFError`。"
9697

9798
#: ../../c-api/file.rst:65
9899
msgid ""
99100
"Overrides the normal behavior of :func:`io.open_code` to pass its parameter "
100101
"through the provided handler."
101-
msgstr "重载 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
102+
msgstr "重写 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
102103

103104
#: ../../c-api/file.rst:68
104105
msgid ""

c-api/init.po

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2023, Python Software Foundation
2+
# Copyright (C) 2001-2024, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -12,16 +12,16 @@
1212
# 高乐喆 <[email protected]>, 2023
1313
# Bryan不可思议, 2023
1414
# Rafael Fontenelle <[email protected]>, 2023
15-
# Freesand Leo <[email protected]>, 2023
15+
# Freesand Leo <[email protected]>, 2024
1616
#
1717
#, fuzzy
1818
msgid ""
1919
msgstr ""
2020
"Project-Id-Version: Python 3.9\n"
2121
"Report-Msgid-Bugs-To: \n"
22-
"POT-Creation-Date: 2023-09-08 15:46+0000\n"
22+
"POT-Creation-Date: 2024-01-12 22:01+0000\n"
2323
"PO-Revision-Date: 2017-02-16 17:36+0000\n"
24-
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
24+
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2525
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2626
"MIME-Version: 1.0\n"
2727
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1251,30 +1251,31 @@ msgstr "底层级 API"
12511251
#: ../../c-api/init.rst:1013
12521252
msgid ""
12531253
"All of the following functions must be called after :c:func:`Py_Initialize`."
1254-
msgstr ""
1254+
msgstr "下列所有函数都必须在 :c:func:`Py_Initialize` 之后被调用。"
12551255

12561256
#: ../../c-api/init.rst:1015
12571257
msgid ":c:func:`Py_Initialize()` now initializes the :term:`GIL`."
1258-
msgstr ""
1258+
msgstr ":c:func:`Py_Initialize()` 现在会初始化 :term:`GIL`。"
12591259

12601260
#: ../../c-api/init.rst:1021
12611261
msgid ""
12621262
"Create a new interpreter state object. The global interpreter lock need not"
12631263
" be held, but may be held if it is necessary to serialize calls to this "
12641264
"function."
1265-
msgstr ""
1265+
msgstr "创建一个新的解释器状态对象。 不需要持有全局解释器锁,但如果有必要序列化对此函数的调用则可能会持有。"
12661266

12671267
#: ../../c-api/init.rst:1025
12681268
msgid ""
12691269
"Raises an :ref:`auditing event <auditing>` "
12701270
"``cpython.PyInterpreterState_New`` with no arguments."
12711271
msgstr ""
1272+
"引发一个 :ref:`审计事件 <auditing>` ``cpython.PyInterpreterState_New``,不附带任何参数。"
12721273

12731274
#: ../../c-api/init.rst:1030
12741275
msgid ""
12751276
"Reset all information in an interpreter state object. The global "
12761277
"interpreter lock must be held."
1277-
msgstr ""
1278+
msgstr "重置解释器状态对象中的所有信息。 必须持有全局解释器锁。"
12781279

12791280
#: ../../c-api/init.rst:1033
12801281
msgid ""

c-api/typeobj.po

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
# Bryan不可思议, 2023
1616
# Nyuan Zhang, 2023
1717
# Rafael Fontenelle <[email protected]>, 2024
18+
# Kevin Deng <[email protected]>, 2024
1819
# Freesand Leo <[email protected]>, 2024
1920
#
2021
#, fuzzy
2122
msgid ""
2223
msgstr ""
2324
"Project-Id-Version: Python 3.9\n"
2425
"Report-Msgid-Bugs-To: \n"
25-
"POT-Creation-Date: 2024-01-05 21:52+0000\n"
26+
"POT-Creation-Date: 2024-01-12 22:01+0000\n"
2627
"PO-Revision-Date: 2017-02-16 17:39+0000\n"
2728
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2829
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -2600,7 +2601,7 @@ msgid ""
26002601
":c:type:`PyGetSetDef` structures, declaring computed attributes of instances"
26012602
" of this type."
26022603
msgstr ""
2603-
"一个可选的指向 :c:type:`PyGetSetDef` 结构体的以 ``NULL`` 结束的静态数组的指针,它声明了此类型的实例中被计算出的属性。"
2604+
"一个可选的指向 :c:type:`PyGetSetDef` 结构体的以 ``NULL`` 结束的静态数组的指针,它声明了此类型的实例中的被计算属性。"
26042605

26052606
#: ../../c-api/typeobj.rst:1507
26062607
msgid ""
@@ -2974,7 +2975,7 @@ msgstr ""
29742975

29752976
#: ../../c-api/typeobj.rst:1815
29762977
msgid "Tuple of base types."
2977-
msgstr ""
2978+
msgstr "基类型的元组。"
29782979

29792980
#: ../../c-api/typeobj.rst:1817
29802981
msgid ""
@@ -3018,17 +3019,17 @@ msgstr "弱引用列表头,用于指向该类型对象的弱引用。 不会
30183019
msgid ""
30193020
"This field is deprecated. Use :c:member:`~PyTypeObject.tp_finalize` "
30203021
"instead."
3021-
msgstr ""
3022+
msgstr "该字段已被弃用。 请改用 :c:member:`~PyTypeObject.tp_finalize`。"
30223023

30233024
#: ../../c-api/typeobj.rst:1872
30243025
msgid "Used to index into the method cache. Internal use only."
3025-
msgstr ""
3026+
msgstr "用于索引至方法缓存。 仅限内部使用。"
30263027

30273028
#: ../../c-api/typeobj.rst:1881
30283029
msgid ""
30293030
"An optional pointer to an instance finalization function. Its signature "
30303031
"is::"
3031-
msgstr ""
3032+
msgstr "一个可选的指向实例最终化函数的指针。 函数的签名为::"
30323033

30333034
#: ../../c-api/typeobj.rst:1885
30343035
msgid ""
@@ -3039,13 +3040,16 @@ msgid ""
30393040
" before attempting to break reference cycles, ensuring that it finds the "
30403041
"object in a sane state."
30413042
msgstr ""
3043+
"如果设置了 :c:member:`~PyTypeObject.tp_finalize`,解释器将在最终化特定实例时调用它一次。 "
3044+
"它将由垃圾回收器调用(如果实例是单独循环引用的一部分)或是在对象被释放之前被调用。 "
3045+
"不论是哪种方式,它都肯定会在尝试打破循环引用之前被调用,以确保它所操作的对象处于正常状态。"
30423046

30433047
#: ../../c-api/typeobj.rst:1892
30443048
msgid ""
30453049
":c:member:`~PyTypeObject.tp_finalize` should not mutate the current "
30463050
"exception status; therefore, a recommended way to write a non-trivial "
30473051
"finalizer is::"
3048-
msgstr ""
3052+
msgstr ":c:member:`~PyTypeObject.tp_finalize` 不应改变当前异常状态;因此,编写非关键终结器的推荐做法::"
30493053

30503054
#: ../../c-api/typeobj.rst:1909
30513055
msgid ""
@@ -3066,10 +3070,14 @@ msgid ""
30663070
" objects on the thread which called tp_dealloc will not violate any "
30673071
"assumptions of the library."
30683072
msgstr ""
3073+
"另外还需要注意,在应用垃圾回收机制的 Python 中,:c:member:`~PyTypeObject.tp_dealloc` 可以从任意 "
3074+
"Python 线程被调用,而不仅是创建该对象的线程(如果对象成为引用计数循环的一部分,则该循环可能会被任何线程上的垃圾回收操作所回收)。 这对 "
3075+
"Python API 调用来说不是问题,因为 tp_dealloc 调用所在的线程将持有全局解释器锁(GIL)。 但是,如果被销毁的对象又销毁了来自其他"
3076+
" C 或 C++ 库的对象,则应当小心确保在调用 tp_dealloc 的线程上销毁这些对象不会破坏这些库的任何资源。"
30693077

30703078
#: ../../c-api/typeobj.rst:1929
30713079
msgid "\"Safe object finalization\" (:pep:`442`)"
3072-
msgstr ""
3080+
msgstr "\"安全的对象最终化\" (:pep:`442`)"
30733081

30743082
#: ../../c-api/typeobj.rst:1934
30753083
msgid ""
@@ -3103,26 +3111,27 @@ msgstr ""
31033111
#: ../../c-api/typeobj.rst:1956
31043112
msgid ""
31053113
"This results in types that are limited relative to types defined in Python:"
3106-
msgstr ""
3114+
msgstr "这就导致了与在 Python 中定义的类型相关联的类型限制:"
31073115

31083116
#: ../../c-api/typeobj.rst:1958
31093117
msgid ""
31103118
"Static types are limited to one base, i.e. they cannot use multiple "
31113119
"inheritance."
3112-
msgstr ""
3120+
msgstr "静态类型只能拥有一个基类;换句话说,他们不能使用多重继承。"
31133121

31143122
#: ../../c-api/typeobj.rst:1960
31153123
msgid ""
31163124
"Static type objects (but not necessarily their instances) are immutable. It "
31173125
"is not possible to add or modify the type object's attributes from Python."
3118-
msgstr ""
3126+
msgstr "静态类型对象(但并非它们的实例)是不可变对象。 不可能在 Python 中添加或修改类型对象的属性。"
31193127

31203128
#: ../../c-api/typeobj.rst:1962
31213129
msgid ""
31223130
"Static type objects are shared across :ref:`sub-interpreters <sub-"
31233131
"interpreter-support>`, so they should not include any subinterpreter-"
31243132
"specific state."
31253133
msgstr ""
3134+
"静态类型对象是跨 :ref:`子解释器 <sub-interpreter-support>` 共享的,因此它们不应包括任何子解释器专属的状态。"
31263135

31273136
#: ../../c-api/typeobj.rst:1966
31283137
msgid ""
@@ -3146,18 +3155,18 @@ msgstr ""
31463155

31473156
#: ../../c-api/typeobj.rst:1981
31483157
msgid "Number Object Structures"
3149-
msgstr ""
3158+
msgstr "数字对象结构体Number Object Structures"
31503159

31513160
#: ../../c-api/typeobj.rst:1988
31523161
msgid ""
31533162
"This structure holds pointers to the functions which an object uses to "
31543163
"implement the number protocol. Each function is used by the function of "
31553164
"similar name documented in the :ref:`number` section."
3156-
msgstr ""
3165+
msgstr "该结构体持有指向被对象用来实现数字协议的函数的指针。 每个函数都被 :ref:`number` 一节中记录的对应名称的函数所使用。"
31573166

31583167
#: ../../c-api/typeobj.rst:1994 ../../c-api/typeobj.rst:2318
31593168
msgid "Here is the structure definition::"
3160-
msgstr ""
3169+
msgstr "结构体定义如下::"
31613170

31623171
#: ../../c-api/typeobj.rst:2041
31633172
msgid ""
@@ -3168,6 +3177,9 @@ msgid ""
31683177
"``Py_NotImplemented``, if another error occurred they must return ``NULL`` "
31693178
"and set an exception."
31703179
msgstr ""
3180+
"双目和三目函数必须检查其所有操作数的类型,并实现必要的转换(至少有一个操作数是所定义类型的实例)。 "
3181+
"如果没有为所给出的操作数定义操作,则双目和三目函数必须返回 ``Py_NotImplemented``,如果发生了其他错误则它们必须返回 "
3182+
"``NULL`` 并设置一个异常。"
31713183

31723184
#: ../../c-api/typeobj.rst:2050
31733185
msgid ""
@@ -3177,20 +3189,22 @@ msgstr ""
31773189

31783190
#: ../../c-api/typeobj.rst:2095
31793191
msgid "Mapping Object Structures"
3180-
msgstr ""
3192+
msgstr "映射对象结构体"
31813193

31823194
#: ../../c-api/typeobj.rst:2102
31833195
msgid ""
31843196
"This structure holds pointers to the functions which an object uses to "
31853197
"implement the mapping protocol. It has three members:"
3186-
msgstr ""
3198+
msgstr "该结构体持有指向对象用于实现映射协议的函数的指针。 它有三个成员:"
31873199

31883200
#: ../../c-api/typeobj.rst:2107
31893201
msgid ""
31903202
"This function is used by :c:func:`PyMapping_Size` and "
31913203
":c:func:`PyObject_Size`, and has the same signature. This slot may be set "
31923204
"to ``NULL`` if the object has no defined length."
31933205
msgstr ""
3206+
"该函数将被 :c:func:`PyMapping_Size` 和 :c:func:`PyObject_Size` 使用,并具有相同的签名。 "
3207+
"如果对象没有定义长度则此槽位可被设为 ``NULL``。"
31943208

31953209
#: ../../c-api/typeobj.rst:2113
31963210
msgid ""
@@ -3200,6 +3214,9 @@ msgid ""
32003214
":c:func:`PyMapping_Check` function to return ``1``, it can be ``NULL`` "
32013215
"otherwise."
32023216
msgstr ""
3217+
"该函数将被 :c:func:`PyObject_GetItem` 和 :c:func:`PySequence_GetSlice` 使用,并具有与 "
3218+
":c:func:`!PyObject_GetItem` 相同的签名。 此槽位必须被填充以便 :c:func:`PyMapping_Check` 函数返回"
3219+
" ``1``,否则它可以为 ``NULL``。"
32033220

32043221
#: ../../c-api/typeobj.rst:2121
32053222
msgid ""
@@ -3213,13 +3230,13 @@ msgstr ""
32133230

32143231
#: ../../c-api/typeobj.rst:2132
32153232
msgid "Sequence Object Structures"
3216-
msgstr ""
3233+
msgstr "序列对象结构体"
32173234

32183235
#: ../../c-api/typeobj.rst:2139
32193236
msgid ""
32203237
"This structure holds pointers to the functions which an object uses to "
32213238
"implement the sequence protocol."
3222-
msgstr ""
3239+
msgstr "该结构体持有指向对象用于实现序列协议的函数的指针。"
32233240

32243241
#: ../../c-api/typeobj.rst:2144
32253242
msgid ""
@@ -3429,17 +3446,18 @@ msgstr ""
34293446
msgid ""
34303447
":c:func:`PyBuffer_Release` is the interface for the consumer that wraps this"
34313448
" function."
3432-
msgstr ""
3449+
msgstr ":c:func:`PyBuffer_Release` 是针对包装此函数的消费方的接口。"
34333450

34343451
#: ../../c-api/typeobj.rst:2307
34353452
msgid "Async Object Structures"
3436-
msgstr ""
3453+
msgstr "异步对象结构体"
34373454

34383455
#: ../../c-api/typeobj.rst:2315
34393456
msgid ""
34403457
"This structure holds pointers to the functions required to implement "
34413458
":term:`awaitable` and :term:`asynchronous iterator` objects."
34423459
msgstr ""
3460+
"此结构体将持有指向需要用来实现 :term:`awaitable` 和 :term:`asynchronous iterator` 对象的函数的指针。"
34433461

34443462
#: ../../c-api/typeobj.rst:2332
34453463
msgid ""
@@ -3472,7 +3490,7 @@ msgstr ""
34723490

34733491
#: ../../c-api/typeobj.rst:2362
34743492
msgid "Slot Type typedefs"
3475-
msgstr ""
3493+
msgstr "槽位类型 typedef"
34763494

34773495
#: ../../c-api/typeobj.rst:2366
34783496
msgid ""

0 commit comments

Comments
 (0)