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

Skip to content

Commit a27eedb

Browse files
[po] auto sync
1 parent af40e02 commit a27eedb

File tree

6 files changed

+474
-478
lines changed

6 files changed

+474
-478
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.15%", "updated_at": "2025-01-10T18:48:11Z"}
1+
{"translation": "81.13%", "updated_at": "2025-01-17T15:46:37Z"}

library/fnmatch.po

Lines changed: 27 additions & 23 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
#
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-09-27 14:50+0000\n"
14+
"POT-Creation-Date: 2025-01-17 14:51+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -98,14 +98,20 @@ msgstr ""
9898

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

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

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

127-
#: ../../library/fnmatch.rst:64
133+
#: ../../library/fnmatch.rst:70
128134
msgid ""
129135
"import fnmatch\n"
130136
"import os\n"
@@ -140,7 +146,7 @@ msgstr ""
140146
" if fnmatch.fnmatch(file, '*.txt'):\n"
141147
" print(file)"
142148

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

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

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

167-
#: ../../library/fnmatch.rst:92
171+
#: ../../library/fnmatch.rst:98
168172
msgid "Example:"
169173
msgstr "示例:"
170174

171-
#: ../../library/fnmatch.rst:106
175+
#: ../../library/fnmatch.rst:112
172176
msgid "Module :mod:`glob`"
173177
msgstr "模块 :mod:`glob`"
174178

175-
#: ../../library/fnmatch.rst:107
179+
#: ../../library/fnmatch.rst:113
176180
msgid "Unix shell-style path expansion."
177181
msgstr "Unix shell 风格路径扩展。"
178182

0 commit comments

Comments
 (0)