1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2024 , Python Software Foundation
2
+ # Copyright (C) 2001-2025 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
8
8
# ppcfish <ppcfish@gmail.com>, 2023
9
9
# WH-2099 <wh2099@outlook.com>, 2023
10
10
# Freesand Leo <yuqinju@163.com>, 2024
11
- # Wulian233 <xiguawulian@gmail.com>, 2024
11
+ # lian Wu (Wulian) <xiguawulian@gmail.com>, 2024
12
12
#
13
13
#, fuzzy
14
14
msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.13\n "
17
17
"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 "
19
19
"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 "
21
21
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
22
22
"MIME-Version : 1.0\n "
23
23
"Content-Type : text/plain; charset=UTF-8\n "
@@ -102,14 +102,20 @@ msgstr ""
102
102
103
103
#: ../../library/fnmatch.rst:49
104
104
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."
108
109
msgstr ""
109
- "还要注意是使用将 *maxsize* 设为 32768 的 :func:`functools.lru_cache` 来缓存下列函数中的已编译正则表达式:"
110
- " :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`。"
111
110
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
113
119
msgid ""
114
120
"Test whether the filename string *name* matches the pattern string *pat*, "
115
121
"returning ``True`` or ``False``. Both parameters are case-normalized using "
@@ -122,13 +128,13 @@ msgstr ""
122
128
"可被用于执行大小写敏感的比较,无论这是否为所在操作系统的标准。can be used to perform a case-sensitive "
123
129
"comparison, regardless of whether that's standard for the operating system."
124
130
125
- #: ../../library/fnmatch.rst:61
131
+ #: ../../library/fnmatch.rst:67
126
132
msgid ""
127
133
"This example will print all file names in the current directory with the "
128
134
"extension ``.txt``::"
129
135
msgstr "这个例子将打印当前目录下带有扩展名 ``.txt`` 的所有文件名::"
130
136
131
- #: ../../library/fnmatch.rst:64
137
+ #: ../../library/fnmatch.rst:70
132
138
msgid ""
133
139
"import fnmatch\n"
134
140
"import os\n"
@@ -144,7 +150,7 @@ msgstr ""
144
150
" if fnmatch.fnmatch(file, '*.txt'):\n"
145
151
" print(file)"
146
152
147
- #: ../../library/fnmatch.rst:74
153
+ #: ../../library/fnmatch.rst:80
148
154
msgid ""
149
155
"Test whether the filename string *name* matches the pattern string *pat*, "
150
156
"returning ``True`` or ``False``; the comparison is case-sensitive and does "
@@ -153,30 +159,28 @@ msgstr ""
153
159
"检测文件名字符串 *name* 是否匹配模式字符串 *pat*,返回 ``True`` 或 ``False``;此比较是大小写敏感的并且不会应用 "
154
160
":func:`os.path.normcase`。"
155
161
156
- #: ../../library/fnmatch.rst:81
162
+ #: ../../library/fnmatch.rst:87
157
163
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."
161
167
msgstr ""
162
- "基于 :term:`iterable` *names* 中匹配模式 *pat* 的元素构造一个列表。 它等价于 ``[n for n in names "
163
- "if fnmatch(n, pat)]``,但实现得更为高效。"
164
168
165
- #: ../../library/fnmatch.rst:89
169
+ #: ../../library/fnmatch.rst:95
166
170
msgid ""
167
171
"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 ""
170
174
171
- #: ../../library/fnmatch.rst:92
175
+ #: ../../library/fnmatch.rst:98
172
176
msgid "Example:"
173
177
msgstr "示例:"
174
178
175
- #: ../../library/fnmatch.rst:106
179
+ #: ../../library/fnmatch.rst:112
176
180
msgid "Module :mod:`glob`"
177
181
msgstr "模块 :mod:`glob`"
178
182
179
- #: ../../library/fnmatch.rst:107
183
+ #: ../../library/fnmatch.rst:113
180
184
msgid "Unix shell-style path expansion."
181
185
msgstr "Unix shell 风格路径扩展。"
182
186
0 commit comments