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

Skip to content

Commit ab8f80a

Browse files
[po] auto sync
1 parent efc6e25 commit ab8f80a

9 files changed

Lines changed: 175 additions & 139 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.61%", "updated_at": "2023-08-25T20:56:40Z"}
1+
{"translation": "89.65%", "updated_at": "2023-08-25T23:56:15Z"}

extending/newtypes_tutorial.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msgid ""
1717
msgstr ""
1818
"Project-Id-Version: Python 3.12\n"
1919
"Report-Msgid-Bugs-To: \n"
20-
"POT-Creation-Date: 2023-08-25 14:13+0000\n"
20+
"POT-Creation-Date: 2023-08-25 22:29+0000\n"
2121
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
2222
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
2323
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -207,6 +207,8 @@ msgid ""
207207
":class:`!Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is only "
208208
"used for variable-sized objects and should otherwise be zero."
209209
msgstr ""
210+
"这样能让 Python 知道当创建新的 :class:`!Custom` 实例时需要分配多少内存。 "
211+
":c:member:`~PyTypeObject.tp_itemsize` 仅用于可变大小的对象而在其他情况下都应为零。"
210212

211213
#: ../../extending/newtypes_tutorial.rst:144
212214
msgid ""
@@ -221,6 +223,11 @@ msgid ""
221223
"base type will be :class:`object`, or else you will be adding data members "
222224
"to your base type, and therefore increasing its size."
223225
msgstr ""
226+
"如果你希望你的类型可在 Python 中被子类化,并且你的类型和它的基类型具有相同的 "
227+
":c:member:`~PyTypeObject.tp_basicsize`,那么你可能会遇到多重继承问题。 你的类型的 Python 中的子类必须在其"
228+
" :attr:`~class.__bases__` 中将你的类型列表最前面,否则在调用你的类型的 :meth:`~object.__new__` "
229+
"方法时将会出错。 你可以通过确保你的类型具有比其基类型最大的 :c:member:`~PyTypeObject.tp_basicsize` "
230+
"值来避免这个问题。 在大多数时候,这都是可以的,因为要么你的基类型是 :class:`object`,要么你将为你的基类型添加数据成员,从而增加其大小。"
224231

225232
#: ../../extending/newtypes_tutorial.rst:154
226233
msgid "We set the class flags to :c:macro:`Py_TPFLAGS_DEFAULT`. ::"
@@ -248,12 +255,15 @@ msgid ""
248255
"In this case, we can just use the default implementation provided by the API"
249256
" function :c:func:`PyType_GenericNew`. ::"
250257
msgstr ""
258+
"要启用对象创建,我们必须提供一个 :c:member:`~PyTypeObject.tp_new` 处理句柄。 这等价于 Python 方法 "
259+
":meth:`~object.__new__`,但必须显式地指定。 在这种情况下,我们可以使用 API 函数 "
260+
":c:func:`PyType_GenericNew` 所提供的默认实现。 ::"
251261

252262
#: ../../extending/newtypes_tutorial.rst:173
253263
msgid ""
254264
"Everything else in the file should be familiar, except for some code in "
255265
":c:func:`!PyInit_custom`::"
256-
msgstr ""
266+
msgstr "除了 :c:func:`!PyInit_custom` 中的某些代码以外,文件中的其他内容应该都很容易理解::"
257267

258268
#: ../../extending/newtypes_tutorial.rst:179
259269
msgid ""

library/os.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ msgid ""
3434
msgstr ""
3535
"Project-Id-Version: Python 3.12\n"
3636
"Report-Msgid-Bugs-To: \n"
37-
"POT-Creation-Date: 2023-08-25 14:13+0000\n"
37+
"POT-Creation-Date: 2023-08-25 22:29+0000\n"
3838
"PO-Revision-Date: 2021-06-28 01:10+0000\n"
3939
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
4040
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -451,6 +451,8 @@ msgid ""
451451
"cause memory leaks. Refer to the system documentation for "
452452
":c:func:`!putenv`."
453453
msgstr ""
454+
"在某些平台上,包括 FreeBSD 和 macOS 等,设置 ``environ`` 可能会导致内存泄漏。 请参阅有关 "
455+
":c:func:`!putenv` 的系统文档。"
454456

455457
#: ../../library/os.rst:220
456458
msgid ""
@@ -814,6 +816,8 @@ msgid ""
814816
"On some platforms, including FreeBSD and macOS, setting ``environ`` may "
815817
"cause memory leaks. Refer to the system documentation for :c:func:`!putenv`."
816818
msgstr ""
819+
"在某些平台上,包括 FreeBSD 和 macOS 等,设置 ``environ`` 可能会导致内存泄漏。 请参阅有关 "
820+
":c:func:`!putenv` 的系统文档。"
817821

818822
#: ../../library/os.rst:569
819823
msgid ""
@@ -862,6 +866,8 @@ msgid ""
862866
"Reassociate the current thread with a Linux namespace. See the "
863867
":manpage:`setns(2)` and :manpage:`namespaces(7)` man pages for more details."
864868
msgstr ""
869+
"将当前线程与 Linux 命名空间重新关联。 详情参见 :manpage:`setns(2)` 和 :manpage:`namespaces(7)` "
870+
"手册页面。"
865871

866872
#: ../../library/os.rst:615
867873
msgid ""
@@ -871,6 +877,9 @@ msgid ""
871877
"clone-flags>` to impose constraints on the operation (``0`` means no "
872878
"constraints)."
873879
msgstr ""
880+
"如果 *fd* 是指向一个 :file:`/proc/{pid}/ns/` 链接,``setns()`` "
881+
"会将调用线程与该链接所关联的命名空间重新关联起来,并且 *nstype* 可以设为某个 :ref:`CLONE_NEW* 常量 <os-unshare-"
882+
"clone-flags>` 以便对操作施加约束 (``0`` 表示没有任何约束)。"
874883

875884
#: ../../library/os.rst:622
876885
msgid ""

library/sys.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ msgid ""
2626
msgstr ""
2727
"Project-Id-Version: Python 3.12\n"
2828
"Report-Msgid-Bugs-To: \n"
29-
"POT-Creation-Date: 2023-08-25 14:13+0000\n"
29+
"POT-Creation-Date: 2023-08-25 22:29+0000\n"
3030
"PO-Revision-Date: 2021-06-28 01:14+0000\n"
3131
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
3232
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -883,7 +883,7 @@ msgstr ""
883883

884884
#: ../../library/sys.rst:609
885885
msgid "Attributes of the :data:`!float_info` :term:`named tuple`"
886-
msgstr ""
886+
msgstr ":data:`!float_info` :term:`named tuple` 的属性"
887887

888888
#: ../../library/sys.rst:612
889889
msgid "attribute"
@@ -899,37 +899,37 @@ msgstr "说明"
899899

900900
#: ../../library/sys.rst:617
901901
msgid ":c:macro:`!DBL_EPSILON`"
902-
msgstr ""
902+
msgstr ":c:macro:`!DBL_EPSILON`"
903903

904904
#: ../../library/sys.rst:618
905905
msgid ""
906906
"difference between 1.0 and the least value greater than 1.0 that is "
907907
"representable as a float."
908-
msgstr ""
908+
msgstr "1.0 与可表示为浮点数的大于 1.0 的最小值之间的差。"
909909

910910
#: ../../library/sys.rst:621
911911
msgid "See also :func:`math.ulp`."
912912
msgstr "另请参阅 :func:`math.ulp`。"
913913

914914
#: ../../library/sys.rst:624
915915
msgid ":c:macro:`!DBL_DIG`"
916-
msgstr ""
916+
msgstr ":c:macro:`!DBL_DIG`"
917917

918918
#: ../../library/sys.rst:625
919919
msgid ""
920920
"The maximum number of decimal digits that can be faithfully represented in a"
921921
" float; see below."
922-
msgstr ""
922+
msgstr "浮点数可以真实表示的十进制数的最大位数;见下文。"
923923

924924
#: ../../library/sys.rst:629
925925
msgid ":c:macro:`!DBL_MANT_DIG`"
926-
msgstr ""
926+
msgstr ":c:macro:`!DBL_MANT_DIG`"
927927

928928
#: ../../library/sys.rst:630
929929
msgid ""
930930
"Float precision: the number of base-``radix`` digits in the significand of a"
931931
" float."
932-
msgstr ""
932+
msgstr "浮点数精度:以 ``radix`` 为基数浮点数的有效位数。"
933933

934934
#: ../../library/sys.rst:634
935935
msgid ":c:macro:`!DBL_MAX`"

0 commit comments

Comments
 (0)