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

Skip to content

Commit c56f836

Browse files
committed
[po] auto sync bot
1 parent 5dd0bd6 commit c56f836

5 files changed

Lines changed: 34 additions & 18 deletions

File tree

library/contextlib.po

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6+
# Translators:
7+
# ww song <[email protected]>, 2018
8+
# Freesand Leo <[email protected]>, 2018
9+
#
610
#, fuzzy
711
msgid ""
812
msgstr ""
913
"Project-Id-Version: Python 3.7\n"
1014
"Report-Msgid-Bugs-To: \n"
1115
"POT-Creation-Date: 2018-10-07 09:22+0900\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: ww song <sww4718168@gmail.com>, 2018\n"
16+
"PO-Revision-Date: 2017-02-16 23:04+0000\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2018\n"
1418
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1519
"MIME-Version: 1.0\n"
1620
"Content-Type: text/plain; charset=UTF-8\n"
@@ -620,13 +624,13 @@ msgstr ""
620624

621625
#: ../../library/contextlib.rst:720
622626
msgid ":pep:`343` - The \"with\" statement"
623-
msgstr ""
627+
msgstr ":pep:`343` - \"with\" 语句"
624628

625629
#: ../../library/contextlib.rst:720
626630
msgid ""
627631
"The specification, background, and examples for the Python :keyword:`with` "
628632
"statement."
629-
msgstr ""
633+
msgstr "Python :keyword:`with` 语句的规范描述、背景和示例。"
630634

631635
#: ../../library/contextlib.rst:726
632636
msgid "Single use, reusable and reentrant context managers"

reference/compound_stmts.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ msgstr ""
420420

421421
#: ../../reference/compound_stmts.rst:454
422422
msgid ":pep:`343` - The \"with\" statement"
423-
msgstr ""
423+
msgstr ":pep:`343` - \"with\" 语句"
424424

425425
#: ../../reference/compound_stmts.rst:454
426426
msgid ""
427427
"The specification, background, and examples for the Python :keyword:`with` "
428428
"statement."
429-
msgstr ""
429+
msgstr "Python :keyword:`with` 语句的规范描述、背景和示例。"
430430

431431
#: ../../reference/compound_stmts.rst:465
432432
msgid "Function definitions"

reference/datamodel.po

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,54 +3310,57 @@ msgstr ""
33103310
msgid ""
33113311
"Typical uses of context managers include saving and restoring various kinds "
33123312
"of global state, locking and unlocking resources, closing opened files, etc."
3313-
msgstr ""
3313+
msgstr "上下文管理器的典型用法包括保存和恢复各种全局状态,锁定和解锁资源,关闭打开的文件等等。"
33143314

33153315
#: ../../reference/datamodel.rst:2437
33163316
msgid ""
33173317
"For more information on context managers, see :ref:`typecontextmanager`."
3318-
msgstr ""
3318+
msgstr "要了解上下文管理器的更多信息,请参阅 :ref:`typecontextmanager`。"
33193319

33203320
#: ../../reference/datamodel.rst:2442
33213321
msgid ""
33223322
"Enter the runtime context related to this object. The :keyword:`with` "
33233323
"statement will bind this method's return value to the target(s) specified in"
33243324
" the :keyword:`as` clause of the statement, if any."
33253325
msgstr ""
3326+
"进入关联到此对象的运行时上下文。 :keyword:`with` 语句会将此方法的返回值绑定到 :keyword:`as` "
3327+
"子句所指定的目标(如果有的话)。"
33263328

33273329
#: ../../reference/datamodel.rst:2449
33283330
msgid ""
33293331
"Exit the runtime context related to this object. The parameters describe the"
33303332
" exception that caused the context to be exited. If the context was exited "
33313333
"without an exception, all three arguments will be :const:`None`."
33323334
msgstr ""
3335+
"退出关联到此对象的运行时上下文。 各个参数描述了导致上下文退出的异常。 如果上下文是无异常地退出的,三个参数都将为 :const:`None`。"
33333336

33343337
#: ../../reference/datamodel.rst:2453
33353338
msgid ""
33363339
"If an exception is supplied, and the method wishes to suppress the exception"
33373340
" (i.e., prevent it from being propagated), it should return a true value. "
33383341
"Otherwise, the exception will be processed normally upon exit from this "
33393342
"method."
3340-
msgstr ""
3343+
msgstr "如果提供了异常,并且希望方法屏蔽此异常(即避免其被传播),则应当返回真值。 否则的话,异常将在退出此方法时按正常流程处理。"
33413344

33423345
#: ../../reference/datamodel.rst:2457
33433346
msgid ""
33443347
"Note that :meth:`__exit__` methods should not reraise the passed-in "
33453348
"exception; this is the caller's responsibility."
3346-
msgstr ""
3349+
msgstr "请注意 :meth:`__exit__` 方法不应该重新引发被传入的异常,这是调用者的责任。"
33473350

33483351
#: ../../reference/datamodel.rst:2464
33493352
msgid ":pep:`343` - The \"with\" statement"
3350-
msgstr ""
3353+
msgstr ":pep:`343` - \"with\" 语句"
33513354

33523355
#: ../../reference/datamodel.rst:2464
33533356
msgid ""
33543357
"The specification, background, and examples for the Python :keyword:`with` "
33553358
"statement."
3356-
msgstr ""
3359+
msgstr "Python :keyword:`with` 语句的规范描述、背景和示例。"
33573360

33583361
#: ../../reference/datamodel.rst:2471
33593362
msgid "Special method lookup"
3360-
msgstr ""
3363+
msgstr "特殊方法查找"
33613364

33623365
#: ../../reference/datamodel.rst:2473
33633366
msgid ""
@@ -3366,6 +3369,8 @@ msgid ""
33663369
"object's instance dictionary. That behaviour is the reason why the "
33673370
"following code raises an exception::"
33683371
msgstr ""
3372+
"对于自定义类来说,特殊方法的隐式发起调用仅保证在其定义于对象类型中时能正确地发挥作用,而不能定义在对象实例字典中。 "
3373+
"该行为就是以下代码会引发异常的原因。::"
33693374

33703375
#: ../../reference/datamodel.rst:2488
33713376
msgid ""
@@ -3375,20 +3380,23 @@ msgid ""
33753380
"used the conventional lookup process, they would fail when invoked on the "
33763381
"type object itself::"
33773382
msgstr ""
3383+
"此行为背后的原理在于包括类型对象在内的所有对象都会实现的几个特殊方法,例如 :meth:`__hash__` 和 :meth:`__repr__`。 "
3384+
"如果这些方法的隐式查找使用了传统的查找过程,它们会在对类型对象本身发起调用时失败::"
33783385

33793386
#: ../../reference/datamodel.rst:2501
33803387
msgid ""
33813388
"Incorrectly attempting to invoke an unbound method of a class in this way is"
33823389
" sometimes referred to as 'metaclass confusion', and is avoided by bypassing"
33833390
" the instance when looking up special methods::"
3384-
msgstr ""
3391+
msgstr "以这种方式不正确地尝试发起调用一个类的未绑定方法有时被称为‘元类混淆’,可以通过在查找特殊方法时绕过实例的方式来避免::"
33853392

33863393
#: ../../reference/datamodel.rst:2510
33873394
msgid ""
33883395
"In addition to bypassing any instance attributes in the interest of "
33893396
"correctness, implicit special method lookup generally also bypasses the "
33903397
":meth:`__getattribute__` method even of the object's metaclass::"
33913398
msgstr ""
3399+
"除了为了正确性而绕过任何实例属性之外,隐式特殊方法查找通常也会绕过 :meth:`__getattribute__` 方法,甚至包括对象的元类::"
33923400

33933401
#: ../../reference/datamodel.rst:2536
33943402
msgid ""
@@ -3398,14 +3406,17 @@ msgid ""
33983406
"method *must* be set on the class object itself in order to be consistently "
33993407
"invoked by the interpreter)."
34003408
msgstr ""
3409+
"以这种方式绕过 :meth:`__getattribute__` "
3410+
"机制为解析器内部的速度优化提供了显著的空间,其代价则是牺牲了处理特殊方法时的一些灵活性(特殊方法 *必须* "
3411+
"设置在类对象本身上以便始终一致地由解释器发起调用)。"
34013412

34023413
#: ../../reference/datamodel.rst:2547
34033414
msgid "Coroutines"
34043415
msgstr "协程"
34053416

34063417
#: ../../reference/datamodel.rst:2551
34073418
msgid "Awaitable Objects"
3408-
msgstr ""
3419+
msgstr "可等待对象"
34093420

34103421
#: ../../reference/datamodel.rst:2553
34113422
msgid ""

whatsnew/2.5.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# 张俊(fighting) <[email protected]>, 2017
88
# Fei Yin <[email protected]>, 2018
99
# isaced <[email protected]>, 2018
10+
# Freesand Leo <[email protected]>, 2018
1011
#
1112
#, fuzzy
1213
msgid ""
@@ -15,7 +16,7 @@ msgstr ""
1516
"Report-Msgid-Bugs-To: \n"
1617
"POT-Creation-Date: 2018-11-01 09:38+0900\n"
1718
"PO-Revision-Date: 2017-02-16 23:43+0000\n"
18-
"Last-Translator: isaced <isaced@163.com>, 2018\n"
19+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2018\n"
1920
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2021
"MIME-Version: 1.0\n"
2122
"Content-Type: text/plain; charset=UTF-8\n"
@@ -913,7 +914,7 @@ msgstr ""
913914

914915
#: ../../whatsnew/2.5.rst:803
915916
msgid ":pep:`343` - The \"with\" statement"
916-
msgstr ""
917+
msgstr ":pep:`343` - \"with\" 语句"
917918

918919
#: ../../whatsnew/2.5.rst:800
919920
msgid ""

whatsnew/2.6.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ msgstr ""
553553

554554
#: ../../whatsnew/2.6.rst:492
555555
msgid ":pep:`343` - The \"with\" statement"
556-
msgstr ""
556+
msgstr ":pep:`343` - \"with\" 语句"
557557

558558
#: ../../whatsnew/2.6.rst:489
559559
msgid ""

0 commit comments

Comments
 (0)