Skip to content

Commit d7556a7

Browse files
[po] auto sync
1 parent 7997c63 commit d7556a7

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.21%", "updated_at": "2025-04-04T14:56:09Z"}
1+
{"translation": "81.22%", "updated_at": "2025-04-05T01:19:40Z"}

faq/programming.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ msgstr ""
18681868
msgid ""
18691869
"Is there an equivalent to Perl's ``chomp()`` for removing trailing newlines "
18701870
"from strings?"
1871-
msgstr ""
1871+
msgstr "是否有 Perl 的 ``chomp()`` 等价物用于从字符串中移除末尾换行符?"
18721872

18731873
#: ../../faq/programming.rst:992
18741874
msgid ""
@@ -1903,7 +1903,7 @@ msgstr "由于通常只在一次读取一行文本时才需要这样做,所以
19031903

19041904
#: ../../faq/programming.rst:1009
19051905
msgid "Is there a ``scanf()`` or ``sscanf()`` equivalent?"
1906-
msgstr ""
1906+
msgstr "是否有 ``scanf()`` 或 ``sscanf()`` 的等价物?"
19071907

19081908
#: ../../faq/programming.rst:1011
19091909
msgid "Not as such."
@@ -1930,7 +1930,7 @@ msgstr "对于更复杂的输入解析,正则表达式相比 C 的 ``sscanf``
19301930

19311931
#: ../../faq/programming.rst:1024
19321932
msgid "What does ``UnicodeDecodeError`` or ``UnicodeEncodeError`` error mean?"
1933-
msgstr ""
1933+
msgstr "``UnicodeDecodeError`` 或 ``UnicodeEncodeError`` 错误的含义是什么?"
19341934

19351935
#: ../../faq/programming.rst:1026
19361936
msgid "See the :ref:`unicode-howto`."
@@ -1954,6 +1954,11 @@ msgid ""
19541954
" ^\n"
19551955
"SyntaxError: unterminated string literal (detected at line 1)"
19561956
msgstr ""
1957+
">>> r'C:\\this\\will\\not\\work\\'\n"
1958+
" File \"<stdin>\", line 1\n"
1959+
" r'C:\\this\\will\\not\\work\\'\n"
1960+
" ^\n"
1961+
"SyntaxError: unterminated string literal (detected at line 1)"
19571962

19581963
#: ../../faq/programming.rst:1042
19591964
msgid ""

library/cmath.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# mlpp iina <duchuan2048@gmail.com>, 2021
1111
# Naisen Xu <723648649@qq.com>, 2021
1212
# WH-2099 <wh2099@outlook.com>, 2023
13-
# Freesand Leo <yuqinju@163.com>, 2024
13+
# Freesand Leo <yuqinju@163.com>, 2025
1414
#
1515
#, fuzzy
1616
msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919
"Report-Msgid-Bugs-To: \n"
2020
"POT-Creation-Date: 2025-04-04 14:18+0000\n"
2121
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
22-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
22+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2323
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2424
"MIME-Version: 1.0\n"
2525
"Content-Type: text/plain; charset=UTF-8\n"
@@ -130,6 +130,9 @@ msgid ""
130130
" along the negative real axis. The sign of the result is the same as the "
131131
"sign of ``z.imag``, even when ``z.imag`` is zero::"
132132
msgstr ""
133+
"将 *z* 的相位 (或称 *z* 的 *参数*) 作为一个浮点数返回。 ``phase(z)`` 等价于 ``math.atan2(z.imag, "
134+
"z.real)``。 结果将位于 [-\\ *π*, *π*] 范围内,且此操作的支割线将位于负实轴上。 结果的正负号将与 ``z.imag`` "
135+
"的正负号相同,即使 ``z.imag`` 值为零::"
133136

134137
#: ../../library/cmath.rst:66
135138
msgid ""
@@ -149,13 +152,16 @@ msgid ""
149152
"the built-in :func:`abs` function. There is no separate :mod:`cmath` module"
150153
" function for this operation."
151154
msgstr ""
155+
"一个复数 *z* 的模数(绝对值)可以使用内置的 :func:`abs` 函数来计算。 没有用于此操作的单独的 :mod:`cmath` 模块函数。"
152156

153157
#: ../../library/cmath.rst:81
154158
msgid ""
155159
"Return the representation of *z* in polar coordinates. Returns a pair ``(r,"
156160
" phi)`` where *r* is the modulus of *z* and *phi* is the phase of *z*. "
157161
"``polar(z)`` is equivalent to ``(abs(z), phase(z))``."
158162
msgstr ""
163+
"返回在极坐标中 *z* 的表示形式。 返回一个数值对 ``(r, phi)`` 其中 *r* 是 *z* 的模数而 *phi* 是 *z* 的相位。 "
164+
"``polar(z)`` 等价于 ``(abs(z), phase(z))``。"
159165

160166
#: ../../library/cmath.rst:89
161167
msgid ""

library/os.po

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4725,6 +4725,14 @@ msgid ""
47254725
" if '__pycache__' in dirs:\n"
47264726
" dirs.remove('__pycache__') # don't visit __pycache__ directories"
47274727
msgstr ""
4728+
"import os\n"
4729+
"from os.path import join, getsize\n"
4730+
"for root, dirs, files in os.walk('python/Lib/xml'):\n"
4731+
" print(root, \"consumes\", end=\" \")\n"
4732+
" print(sum(getsize(join(root, name)) for name in files), end=\" \")\n"
4733+
" print(\"bytes in\", len(files), \"non-directory files\")\n"
4734+
" if '__pycache__' in dirs:\n"
4735+
" dirs.remove('__pycache__') # 不访问 __pycache__ 目录"
47284736

47294737
#: ../../library/os.rst:3635
47304738
msgid ""
@@ -4824,6 +4832,14 @@ msgid ""
48244832
" if '__pycache__' in dirs:\n"
48254833
" dirs.remove('__pycache__') # don't visit __pycache__ directories"
48264834
msgstr ""
4835+
"import os\n"
4836+
"for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'):\n"
4837+
" print(root, \"consumes\", end=\"\")\n"
4838+
" print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),\n"
4839+
" end=\"\")\n"
4840+
" print(\"bytes in\", len(files), \"non-directory files\")\n"
4841+
" if '__pycache__' in dirs:\n"
4842+
" dirs.remove('__pycache__') # 不访问 __pycache__ 目录"
48274843

48284844
#: ../../library/os.rst:3697
48294845
msgid ""

using/android.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# lian Wu (Wulian) <xiguawulian@gmail.com>, 2024
88
# Alpha Du <alphanow@gmail.com>, 2024
9-
# Freesand Leo <yuqinju@163.com>, 2024
9+
# Freesand Leo <yuqinju@163.com>, 2025
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2025-04-04 14:18+0000\n"
1717
"PO-Revision-Date: 2024-09-27 14:19+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
18+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -78,7 +78,7 @@ msgstr "添加Python到Android app"
7878
msgid ""
7979
"Most app developers should use one of the following tools, which will "
8080
"provide a much easier experience:"
81-
msgstr ""
81+
msgstr "大多数开发者应当使用下列工具之一,它们将提供更便捷的体验:"
8282

8383
#: ../../using/android.rst:33
8484
msgid ""
@@ -118,6 +118,8 @@ msgid ""
118118
"Build Python by following the instructions in :source:`Android/README.md`. "
119119
"This will create the directory ``cross-build/HOST/prefix``."
120120
msgstr ""
121+
"请遵照 :source:`Android/README.md` 中的指导来构建 Python。 这将创建 ``cross-"
122+
"build/HOST/prefix`` 目录。"
121123

122124
#: ../../using/android.rst:46
123125
msgid ""

0 commit comments

Comments
 (0)