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

Skip to content

Commit 0ed6902

Browse files
[po] auto sync
1 parent 078a26f commit 0ed6902

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.35%", "updated_at": "2024-05-06T07:09:20Z"}
1+
{"translation": "92.36%", "updated_at": "2024-05-07T02:21:02Z"}

faq/design.po

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2021, 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
#
@@ -8,17 +8,18 @@
88
# ww song <[email protected]>, 2020
99
# Alpha Du <[email protected]>, 2020
1010
# ppcfish <[email protected]>, 2020
11-
# Freesand Leo <[email protected]>, 2021
11+
# Rafael Fontenelle <[email protected]>, 2023
12+
# Freesand Leo <[email protected]>, 2024
1213
#
1314
#, fuzzy
1415
msgid ""
1516
msgstr ""
1617
"Project-Id-Version: Python 3.8\n"
1718
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2021-03-16 16:44+0000\n"
19+
"POT-Creation-Date: 2024-05-03 23:17+0000\n"
1920
"PO-Revision-Date: 2020-05-30 11:53+0000\n"
20-
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
21-
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
21+
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
22+
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2223
"MIME-Version: 1.0\n"
2324
"Content-Type: text/plain; charset=UTF-8\n"
2425
"Content-Transfer-Encoding: 8bit\n"
@@ -35,22 +36,23 @@ msgstr "目录"
3536

3637
#: ../../faq/design.rst:11
3738
msgid "Why does Python use indentation for grouping of statements?"
38-
msgstr "为什么Python使用缩进来分组语句?"
39+
msgstr "为什么 Python 使用缩进来分组语句?"
3940

4041
#: ../../faq/design.rst:13
4142
msgid ""
4243
"Guido van Rossum believes that using indentation for grouping is extremely "
4344
"elegant and contributes a lot to the clarity of the average Python program. "
4445
"Most people learn to love this feature after a while."
4546
msgstr ""
46-
"Guido van Rossum 认为使用缩进进行分组非常优雅,并且大大提高了普通Python程序的清晰度。大多数人在一段时间后就学会并喜欢上这个功能。"
47+
"Guido van Rossum 认为使用缩进进行分组非常优雅,并且大大提高了普通 Python 程序的清晰度。 "
48+
"大多数人在一段时间后就会喜欢上这个特性。"
4749

4850
#: ../../faq/design.rst:17
4951
msgid ""
5052
"Since there are no begin/end brackets there cannot be a disagreement between"
5153
" grouping perceived by the parser and the human reader. Occasionally C "
5254
"programmers will encounter a fragment of code like this::"
53-
msgstr "由于没有开始/结束括号,因此解析器感知的分组与人类读者之间不会存在分歧。偶尔C程序员会遇到像这样的代码片段::"
55+
msgstr "由于没有开始/结束括号,因此解析器感知的分组与人类读者之间不会存在分歧。 偶尔 C 程序员会遇到像这样的代码片段::"
5456

5557
#: ../../faq/design.rst:26
5658
msgid ""
@@ -82,9 +84,9 @@ msgid ""
8284
"brackets -- the lack of declarations and the high-level data types are also "
8385
"responsible -- but the indentation-based syntax certainly helps."
8486
msgstr ""
85-
"许多编码风格将开始/结束括号单独放在一行上。这使得程序相当长,浪费了宝贵的屏幕空间,使得更难以对程序进行全面的了解。理想情况下,函数应该适合一个屏幕(例如,20"
86-
"--30行)。 20行Python可以完成比20行C更多的工作。这不仅仅是由于缺少开始/结束括号 -- 缺少声明和高级数据类型也是其中的原因 -- "
87-
"但缩进基于语法肯定有帮助。"
87+
"许多编码风格将开始/结束括号单独放在一行上。这使得程序相当长,浪费了宝贵的屏幕空间,使得更难以对程序进行全面的了解。 "
88+
"理想情况下,函数应该适合一个屏幕(例如,20--30行)。 20 行 Python 可以完成比 20 行 C 更多的工作。 "
89+
"这不仅仅是由于没有开始/结束括号 -- 无需声明以及高层级的数据类型也是其中的原因 -- 但基于缩进的语法肯定有帮助。"
8890

8991
#: ../../faq/design.rst:46
9092
msgid "Why am I getting strange results with simple arithmetic operations?"
@@ -304,7 +306,7 @@ msgstr ""
304306

305307
#: ../../faq/design.rst:191
306308
msgid "Why is join() a string method instead of a list or tuple method?"
307-
msgstr "为什么 join()是一个字符串方法而不是列表或元组方法?"
309+
msgstr "为什么 join() 是一个字符串方法而不是列表或元组方法?"
308310

309311
#: ../../faq/design.rst:193
310312
msgid ""
@@ -314,8 +316,8 @@ msgid ""
314316
"methods have been widely accepted, but the one which appears to make some "
315317
"programmers feel uncomfortable is::"
316318
msgstr ""
317-
"从Python "
318-
"1.6开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用String模块的函数时提供的功能相同。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
319+
"从 Python 1.6 开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用 String "
320+
"模块的函数时提供的功能相同。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
319321

320322
#: ../../faq/design.rst:201
321323
msgid "which gives the result::"
@@ -462,9 +464,8 @@ msgid ""
462464
"other languages, where they add functionality, Python lambdas are only a "
463465
"shorthand notation if you're too lazy to define a function."
464466
msgstr ""
465-
"Python的 "
466-
"lambda表达式不能包含语句,因为Python的语法框架不能处理嵌套在表达式内部的语句。然而,在Python中,这并不是一个严重的问题。与其他语言中添加功能的lambda表单不同,Python的"
467-
" lambdas只是一种速记符号,如果您懒得定义函数的话。"
467+
"Python 的 lambda 表达式不能包含语句,因为Python的语法框架不能处理嵌套在表达式内部的语句。然而,在 Python "
468+
"中,这并不是一个严重的问题。 与其他语言中添加功能的 lambda 形式不同,Python 的 lambda 只是一种速记符号,如果您懒得定义函数的话。"
468469

469470
#: ../../faq/design.rst:316
470471
msgid ""
@@ -798,7 +799,7 @@ msgid ""
798799
"and other hash based structures will misbehave."
799800
msgstr ""
800801
"此外,必须始终如此,如果 ``o1 == o2`` (即 ``o1.__eq__(o2) is True`` )则 ``hash(o1) == "
801-
"hash(o2)``(即 ``o1.__hash__() == o2.__hash__()`` ),无论对象是否在字典中。 "
802+
"hash(o2)`` (即 ``o1.__hash__() == o2.__hash__()`` ),无论对象是否在字典中。 "
802803
"如果你不能满足这些限制,字典和其他基于 hash 的结构将会出错。"
803804

804805
#: ../../faq/design.rst:534
@@ -861,7 +862,7 @@ msgstr ""
861862
"Python 2.6添加了一个 :mod:`abc` 模块,允许定义抽象基类 (ABCs)。然后可以使用 :func:`isinstance` 和 "
862863
":func:`issubclass` 来检查实例或类是否实现了特定的ABC。 :mod:`collections.abc` 模块定义了一组有用的ABCs"
863864
" 例如 :class:`~collections.abc.Iterable` , :class:`~collections.abc.Container`"
864-
" , 和 :class:`~collections.abc.MutableMapping` "
865+
" , 和 :class:`~collections.abc.MutableMapping`"
865866

866867
#: ../../faq/design.rst:573
867868
msgid ""
@@ -1044,7 +1045,7 @@ msgstr "这也具有提高执行速度的副作用,因为Python在运行时解
10441045

10451046
#: ../../faq/design.rst:711
10461047
msgid "Why are colons required for the if/while/def/class statements?"
1047-
msgstr "为什么 if/while/def/class语句需要冒号? "
1048+
msgstr "为什么 if/while/def/class语句需要冒号?"
10481049

10491050
#: ../../faq/design.rst:713
10501051
msgid ""

whatsnew/3.4.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,12 +2854,17 @@ msgid ""
28542854
"and/or formatted messages that were logged. (Contributed by Antoine Pitrou "
28552855
"in :issue:`18937`.)"
28562856
msgstr ""
2857+
"新增的测试断言上下文管理器 :meth:`~unittest.TestCase.assertLogs` 将确保给定的代码块使用 "
2858+
":mod:`logging` 模块发出日志记录消息。 在默认情况下消息可来自任意日志记录器并具有 ``INFO`` "
2859+
"或更高的优先级,但要指明日志记录器名称和替代的最低日志级别。 可以在该上下文管理器所返回的对象中查询 "
2860+
":class:`~logging.LogRecord` 和/或所记录的已格式化消息。 (由 Antoine Pitrou 在 "
2861+
":issue:`18937` 中贡献。)"
28572862

28582863
#: ../../whatsnew/3.4.rst:1705
28592864
msgid ""
28602865
"Test discovery now works with namespace packages (Contributed by Claudiu "
28612866
"Popa in :issue:`17457`.)"
2862-
msgstr ""
2867+
msgstr "现在测试发现将可用于命名空间包(由 Claudiu Popa 在 :issue:`17457` 中贡献。).)"
28632868

28642869
#: ../../whatsnew/3.4.rst:1708
28652870
msgid ""
@@ -2868,12 +2873,16 @@ msgid ""
28682873
"position or name, instead of only by position. (Contributed by Antoine "
28692874
"Pitrou in :issue:`17015`.)"
28702875
msgstr ""
2876+
"现在 :mod:`unittest.mock` 对象可以在匹配调用时检查其规范签名,这意味着现在可以通过位置或名称来匹配参数,而不是仅能通过位置。 (由"
2877+
" Antoine Pitrou 在 :issue:`17015` 中贡献。)"
28712878

28722879
#: ../../whatsnew/3.4.rst:1713
28732880
msgid ""
28742881
":func:`~mock.mock_open` objects now have ``readline`` and ``readlines`` "
28752882
"methods. (Contributed by Toshio Kuratomi in :issue:`17467`.)"
28762883
msgstr ""
2884+
"现在 :func:`~mock.mock_open` 对象具有 ``readline`` 和 ``readlines`` 方法。 (由 Toshio "
2885+
"Kuratomi 在 :issue:`17467` 中贡献。)"
28772886

28782887
#: ../../whatsnew/3.4.rst:1718
28792888
msgid "venv"
@@ -2884,6 +2893,8 @@ msgid ""
28842893
":mod:`venv` now includes activation scripts for the ``csh`` and ``fish`` "
28852894
"shells. (Contributed by Andrew Svetlov in :issue:`15417`.)"
28862895
msgstr ""
2896+
"现在 :mod:`venv` 包括了用于 ``csh`` 和 ``fish`` shell 的激活脚本。 (由 Andrew Svetlov 在 "
2897+
":issue:`15417` 中贡献。)"
28872898

28882899
#: ../../whatsnew/3.4.rst:1723
28892900
msgid ""

0 commit comments

Comments
 (0)