10BC0 [po] auto sync · python/python-docs-zh-cn@9966644 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9966644

Browse files
[po] auto sync
1 parent 16304f8 commit 9966644

File tree

8 files changed

+13594
-13416
lines changed

8 files changed

+13594
-13416
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.84%", "updated_at": "2025-01-15T14:55:33Z"}
1+
{"translation": "80.82%", "updated_at": "2025-01-17T14:55:47Z"}

library/fnmatch.po

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2024, Python Software Foundation
2+
# Copyright (C) 2001-2025, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -8,16 +8,16 @@
88
# ppcfish <ppcfish@gmail.com>, 2023
99
# WH-2099 <wh2099@outlook.com>, 2023
1010
# Freesand Leo <yuqinju@163.com>, 2024
11-
# Wulian233 <xiguawulian@gmail.com>, 2024
11+
# lian Wu (Wulian) <xiguawulian@gmail.com>, 2024
1212
#
1313
#, fuzzy
1414
msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.13\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2024-09-20 14:17+0000\n"
18+
"POT-Creation-Date: 2025-01-17 14:16+0000\n"
1919
"PO-Revision-Date: 2021-06-28 01:06+0000\n"
20-
"Last-Translator: Wulian233 <xiguawulian@gmail.com>, 2024\n"
20+
"Last-Translator: lian Wu (Wulian) <xiguawulian@gmail.com>, 2024\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -102,14 +102,20 @@ msgstr ""
102102

103103
#: ../../library/fnmatch.rst:49
104104
msgid ""
105-
"Also note that :func:`functools.lru_cache` with the *maxsize* of 32768 is "
106-
"used to cache the compiled regex patterns in the following functions: "
107-
":func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`."
105+
"Unless stated otherwise, \"filename string\" and \"pattern string\" either "
106+
"refer to :class:`str` or ``ISO-8859-1`` encoded :class:`bytes` objects. Note"
107+
" that the functions documented below do not allow to mix a :class:`!bytes` "
108+
"pattern with a :class:`!str` filename, and vice-versa."
108109
msgstr ""
109-
"还要注意是使用将 *maxsize* 设为 32768 的 :func:`functools.lru_cache` 来缓存下列函数中的已编译正则表达式:"
110-
" :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`。"
111110

112-
#: ../../library/fnmatch.rst:55
111+
#: ../../library/fnmatch.rst:54
112+
msgid ""
113+
"Finally, note that :func:`functools.lru_cache` with a *maxsize* of 32768 is "
114+
"used to cache the (typed) compiled regex patterns in the following "
115+
"functions: :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`."
116+
msgstr ""
117+
118+
#: ../../library/fnmatch.rst:61
113119
msgid ""
114120
"Test whether the filename string *name* matches the pattern string *pat*, "
115121
"returning ``True`` or ``False``. Both parameters are case-normalized using "
@@ -122,13 +128,13 @@ msgstr ""
122128
"可被用于执行大小写敏感的比较,无论这是否为所在操作系统的标准。can be used to perform a case-sensitive "
123129
"comparison, regardless of whether that's standard for the operating system."
124130

125-
#: ../../library/fnmatch.rst:61
131+
#: ../../library/fnmatch.rst:67
126132
msgid ""
127133
"This example will print all file names in the current directory with the "
128134
"extension ``.txt``::"
129135
msgstr "这个例子将打印当前目录下带有扩展名 ``.txt`` 的所有文件名::"
130136

131-
#: ../../library/fnmatch.rst:64
137+
#: ../../library/fnmatch.rst:70
132138
msgid ""
133139
"import fnmatch\n"
134140
"import os\n"
@@ -144,7 +150,7 @@ msgstr ""
144150
" if fnmatch.fnmatch(file, '*.txt'):\n"
145151
" print(file)"
146152

147-
#: ../../library/fnmatch.rst:74
153+
#: ../../library/fnmatch.rst:80
148154
msgid ""
149155
"Test whether the filename string *name* matches the pattern string *pat*, "
150156
"returning ``True`` or ``False``; the comparison is case-sensitive and does "
@@ -153,30 +159,28 @@ msgstr ""
153159
"检测文件名字符串 *name* 是否匹配模式字符串 *pat*,返回 ``True`` 或 ``False``;此比较是大小写敏感的并且不会应用 "
154160
":func:`os.path.normcase`。"
155161

156-
#: ../../library/fnmatch.rst:81
162+
#: ../../library/fnmatch.rst:87
157163
msgid ""
158-
"Construct a list from those elements of the :term:`iterable` *names* that "
159-
"match pattern *pat*. It is the same as ``[n for n in names if fnmatch(n, "
160-
"pat)]``, but implemented more efficiently."
164+
"Construct a list from those elements of the :term:`iterable` of filename "
165+
"strings *names* that match the pattern string *pat*. It is the same as ``[n "
166+
"for n in names if fnmatch(n, pat)]``, but implemented more efficiently."
161167
msgstr ""
162-
"基于 :term:`iterable` *names* 中匹配模式 *pat* 的元素构造一个列表。 它等价于 ``[n for n in names "
163-
"if fnmatch(n, pat)]``,但实现得更为高效。"
164168

165-
#: ../../library/fnmatch.rst:89
169+
#: ../../library/fnmatch.rst:95
166170
msgid ""
167171
"Return the shell-style pattern *pat* converted to a regular expression for "
168-
"using with :func:`re.match`."
169-
msgstr "返回由 shell 风格的模式 *pat* 转换成的正则表达式以便用于 :func:`re.match`。"
172+
"using with :func:`re.match`. The pattern is expected to be a :class:`str`."
173+
msgstr ""
170174

171-
#: ../../library/fnmatch.rst:92
175+
#: ../../library/fnmatch.rst:98
172176
msgid "Example:"
173177
msgstr "示例:"
174178

175-
#: ../../library/fnmatch.rst:106
179+
#: ../../library/fnmatch.rst:112
176180
msgid "Module :mod:`glob`"
177181
msgstr "模块 :mod:`glob`"
178182

179-
#: ../../library/fnmatch.rst:107
183+
#: ../../library/fnmatch.rst:113
180184
msgid "Unix shell-style path expansion."
181185
msgstr "Unix shell 风格路径扩展。"
182186

0 commit comments

Comments
 (0)
0