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

Skip to content

Commit dde9463

Browse files
[po] auto sync
1 parent ccfe577 commit dde9463

3 files changed

Lines changed: 28 additions & 10 deletions

File tree

library/datetime.po

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2806,12 +2806,15 @@ msgid ""
28062806
"in the format ``UTC±HH:MM``, where ± is the sign of ``offset``, HH and MM "
28072807
"are two digits of ``offset.hours`` and ``offset.minutes`` respectively."
28082808
msgstr ""
2809+
"如果没有在构造器中提供 *name*,则 ``tzname(dt)`` 所返回的名称将根据 ``offset`` 值按以下规则生成。 如果 "
2810+
"*offset* 为 ``timedelta(0)``,则名称为“UTC”,否则为字符串 ``UTC±HH:MM``,其中 ± 为 ``offset``"
2811+
" 的正负符号,HH 和 MM 分别为表示 ``offset.hours`` 和 ``offset.minutes`` 的两个数码。"
28092812

28102813
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2241
28112814
msgid ""
28122815
"Name generated from ``offset=timedelta(0)`` is now plain `'UTC'`, not "
28132816
"``'UTC+00:00'``."
2814-
msgstr ""
2817+
msgstr "由 ``offset=timedelta(0)`` 生成的名称现在为简单的 `'UTC'` 而不再是 ``'UTC+00:00'``。"
28152818

28162819
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2248
28172820
msgid "Always returns ``None``."
@@ -2822,6 +2825,8 @@ msgid ""
28222825
"Return ``dt + offset``. The *dt* argument must be an aware "
28232826
":class:`.datetime` instance, with ``tzinfo`` set to ``self``."
28242827
msgstr ""
2828+
"返回 ``dt + offset``。 *dt* 参数必须为一个感知型 :class:`.datetime` 实例,其中 ``tzinfo`` 值设为 "
2829+
"``self``。"
28252830

28262831
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2259
28272832
msgid "The UTC timezone, ``timezone(timedelta(0))``."
@@ -2837,19 +2842,23 @@ msgid ""
28372842
"``strftime(format)`` method, to create a string representing the time under "
28382843
"the control of an explicit format string."
28392844
msgstr ""
2845+
":class:`date`, :class:`.datetime` 和 :class:`.time` 对象都支持 "
2846+
"``strftime(format)`` 方法,可用来创建由一个显式格式字符串所控制的表示时间的字符串。"
28402847

28412848
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2274
28422849
msgid ""
28432850
"Conversely, the :meth:`datetime.strptime` class method creates a "
28442851
":class:`.datetime` object from a string representing a date and time and a "
28452852
"corresponding format string."
28462853
msgstr ""
2854+
"相反地,:meth:`datetime.strptime` 类会根据表示日期和时间的字符串和相应的格式字符串来创建一个 "
2855+
":class:`.datetime` 对象。"
28472856

28482857
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2278
28492858
msgid ""
28502859
"The table below provides a high-level comparison of :meth:`strftime` versus "
28512860
":meth:`strptime`:"
2852-
msgstr ""
2861+
msgstr "下表提供了 :meth:`strftime` 与 :meth:`strptime` 的高层级比较:"
28532862

28542863
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2282
28552864
msgid "``strftime``"
@@ -2916,7 +2925,7 @@ msgstr ":meth:`strftime` 和 :meth:`strptime` Format Codes"
29162925
msgid ""
29172926
"The following is a list of all the format codes that the 1989 C standard "
29182927
"requires, and these work on all platforms with a standard C implementation."
2919-
msgstr ""
2928+
msgstr "以下列表显示了 1989 版 C 标准所要求的全部格式代码,它们在带有标准 C 实现的所有平台上均可用。"
29202929

29212930
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2301
29222931
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2404
@@ -3353,6 +3362,9 @@ msgid ""
33533362
":meth:`strptime` with incomplete or ambiguous ISO 8601 directives will raise"
33543363
" a :exc:`ValueError`."
33553364
msgstr ""
3365+
"这些代码可能不是在所有平台上都可与 :meth:`strftime` 方法配合使用。 ISO 8601 年份和 ISO 8601 "
3366+
"星期指令并不能与上面的年份和星期序号指令相互替代。 调用 :meth:`strptime` 时传入不完整或有歧义的 ISO 8601 指令将引发 "
3367+
":exc:`ValueError`。"
33563368

33573369
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2426
33583370
msgid ""
@@ -3362,6 +3374,8 @@ msgid ""
33623374
"supported on your platform, consult the :manpage:`strftime(3)` "
33633375
"documentation."
33643376
msgstr ""
3377+
"对完整格式代码集的支持在不同平台上有所差异,因为 Python 要调用所在平台的 C 库的 :func:`strftime` "
3378+
"函数,而不同平台的差异是很常见的。 要查看你所用平台所支持的完整格式代码集,请参阅 :manpage:`strftime(3)` 文档。"
33653379

33663380
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2431
33673381
msgid "``%G``, ``%u`` and ``%V`` were added."
@@ -3377,6 +3391,8 @@ msgid ""
33773391
"``time.strftime(fmt, d.timetuple())`` although not all objects support a "
33783392
":meth:`timetuple` method."
33793393
msgstr ""
3394+
"总体而言,``d.strftime(fmt)`` 类似于 :mod:`time` 模块的 ``time.strftime(fmt, "
3395+
"d.timetuple())``,但是并非所有对象都支持 :meth:`timetuple` 方法。"
33803396

33813397
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2441
33823398
msgid ""
@@ -3389,7 +3405,7 @@ msgstr ""
33893405

33903406
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2445
33913407
msgid "Using ``datetime.strptime(date_string, format)`` is equivalent to::"
3392-
msgstr ""
3408+
msgstr "使用 ``datetime.strptime(date_string, format)`` 等价于::"
33933409

33943410
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/datetime.rst:2449
33953411
msgid ""

library/marshal.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ msgstr ""
8989
msgid ""
9090
"There are functions that read/write files as well as functions operating on "
9191
"bytes-like objects."
92-
msgstr ""
92+
msgstr "有些函数可以读/写文件,还有些函数可以操作字节类对象。"
9393

9494
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:54
9595
msgid "The module defines these functions:"
@@ -99,7 +99,7 @@ msgstr "这个模块定义了以下函数:"
9999
msgid ""
100100
"Write the value on the open file. The value must be a supported type. The "
101101
"file must be a writeable :term:`binary file`."
102-
msgstr ""
102+
msgstr "向打开的文件写入值。 值必须为受支持的类型。 文件必须为可写的 :term:`binary file`。"
103103

104104
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:62
105105
msgid ""
@@ -108,12 +108,14 @@ msgid ""
108108
"written to the file. The object will not be properly read back by "
109109
":func:`load`."
110110
msgstr ""
111+
"如果值具有(或所包含的对象具有)不受支持的类型,则会引发 :exc:`ValueError` --- 但是将向文件写入垃圾数据。 对象也将不能正确地通过"
112+
" :func:`load` 重新读取。"
111113

112114
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:66
113115
msgid ""
114116
"The *version* argument indicates the data format that ``dump`` should use "
115117
"(see below)."
116-
msgstr ""
118+
msgstr "*version* 参数指明 ``dump`` 应当使用的数据格式(见下文)。"
117119

118120
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:72
119121
msgid ""

sphinx.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# cdarlint <[email protected]>, 2019
99
# JW H <[email protected]>, 2019
1010
# Shengjing Zhu <[email protected]>, 2019
11-
# Freesand Leo <[email protected]>, 2019
11+
# Freesand Leo <[email protected]>, 2020
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2020-01-07 12:22+0000\n"
1919
"PO-Revision-Date: 2017-02-16 17:32+0000\n"
20-
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
20+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -244,7 +244,7 @@ msgstr "Python 3.5 (安全修正)"
244244

245245
#: /home/travis/build/python/cpython-doc-catalog/Doc/tools/templates/indexsidebar.html:10
246246
msgid "Python 2.7 (EOL)"
247-
msgstr ""
247+
msgstr "Python 2.7 (生命期结束)"
248248

249249
#: /home/travis/build/python/cpython-doc-catalog/Doc/tools/templates/indexsidebar.html:11
250250
msgid "All versions"

0 commit comments

Comments
 (0)