|
1 | 1 | # SOME DESCRIPTIVE TITLE. |
2 | | -# Copyright (C) 2001-2022, Python Software Foundation |
| 2 | +# Copyright (C) 2001-2024, 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 | # |
6 | 6 | # Translators: |
7 | | -# dannyvi <[email protected]>, 2021 |
8 | | -# ppcfish <[email protected]>, 2021 |
9 | | -# Freesand Leo <[email protected]>, 2022 |
| 7 | +# Rafael Fontenelle <[email protected]>, 2023 |
10 | 8 | # |
11 | 9 | #, fuzzy |
12 | 10 | msgid "" |
13 | 11 | msgstr "" |
14 | | -"Project-Id-Version: Python 3.10\n" |
| 12 | +"Project-Id-Version: Python 3.11\n" |
15 | 13 | "Report-Msgid-Bugs-To: \n" |
16 | | -"POT-Creation-Date: 2022-11-04 14:28+0000\n" |
17 | | -"PO-Revision-Date: 2021-06-28 01:06+0000\n" |
18 | | -"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n" |
19 | | -"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
| 14 | +"POT-Creation-Date: 2024-01-19 16:40+0000\n" |
| 15 | +"PO-Revision-Date: 2023-05-24 02:15+0000\n" |
| 16 | +"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n" |
| 17 | +"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
20 | 18 | "MIME-Version: 1.0\n" |
21 | 19 | "Content-Type: text/plain; charset=UTF-8\n" |
22 | 20 | "Content-Transfer-Encoding: 8bit\n" |
@@ -98,56 +96,104 @@ msgstr "" |
98 | 96 | "(:mod:`glob` 使用 :func:`.filter` 来匹配文件名的各个部分)。 " |
99 | 97 | "类似地,以一个句点打头的文件名也不会被此模块特别对待,可以通过 ``*`` 和 ``?`` 模式来匹配。" |
100 | 98 |
|
101 | | -#: ../../library/fnmatch.rst:52 |
| 99 | +#: ../../library/fnmatch.rst:49 |
102 | 100 | msgid "" |
103 | | -"Test whether the *filename* string matches the *pattern* string, returning " |
104 | | -":const:`True` or :const:`False`. Both parameters are case-normalized using " |
| 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`." |
| 104 | +msgstr "" |
| 105 | +"还要注意是使用将 *maxsize* 设为 32768 的 :func:`functools.lru_cache` 来缓存下列函数中的已编译正则表达式:" |
| 106 | +" :func:`fnmatch`, :func:`fnmatchcase`, :func:`.filter`。" |
| 107 | + |
| 108 | +#: ../../library/fnmatch.rst:55 |
| 109 | +msgid "" |
| 110 | +"Test whether the filename string *name* matches the pattern string *pat*, " |
| 111 | +"returning ``True`` or ``False``. Both parameters are case-normalized using " |
105 | 112 | ":func:`os.path.normcase`. :func:`fnmatchcase` can be used to perform a case-" |
106 | 113 | "sensitive comparison, regardless of whether that's standard for the " |
107 | 114 | "operating system." |
108 | 115 | msgstr "" |
109 | | -"检测 *filename* 字符串是否匹配 *pattern* 字符串,返回 :const:`True` 或 :const:`False`。 " |
110 | | -"两个形参都会使用 :func:`os.path.normcase` 进行大小写正规化。 :func:`fnmatchcase` " |
111 | | -"可被用于执行大小写敏感的比较,无论这是否为所在操作系统的标准。" |
112 | 116 |
|
113 | | -#: ../../library/fnmatch.rst:58 |
| 117 | +#: ../../library/fnmatch.rst:61 |
114 | 118 | msgid "" |
115 | 119 | "This example will print all file names in the current directory with the " |
116 | 120 | "extension ``.txt``::" |
117 | 121 | msgstr "这个例子将打印当前目录下带有扩展名 ``.txt`` 的所有文件名::" |
118 | 122 |
|
119 | | -#: ../../library/fnmatch.rst:71 |
| 123 | +#: ../../library/fnmatch.rst:74 |
120 | 124 | msgid "" |
121 | | -"Test whether *filename* matches *pattern*, returning :const:`True` or " |
122 | | -":const:`False`; the comparison is case-sensitive and does not apply " |
123 | | -":func:`os.path.normcase`." |
| 125 | +"Test whether the filename string *name* matches the pattern string *pat*, " |
| 126 | +"returning ``True`` or ``False``; the comparison is case-sensitive and does " |
| 127 | +"not apply :func:`os.path.normcase`." |
124 | 128 | msgstr "" |
125 | | -"检测 *filename* 是否匹配 *pattern*,返回 :const:`True` 或 " |
126 | | -":const:`False`;此比较是大小写敏感的,并且不会应用 :func:`os.path.normcase`。" |
127 | 129 |
|
128 | | -#: ../../library/fnmatch.rst:78 |
| 130 | +#: ../../library/fnmatch.rst:81 |
129 | 131 | msgid "" |
130 | | -"Construct a list from those elements of the iterable *names* that match " |
131 | | -"*pattern*. It is the same as ``[n for n in names if fnmatch(n, pattern)]``, " |
132 | | -"but implemented more efficiently." |
| 132 | +"Construct a list from those elements of the :term:`iterable` *names* that " |
| 133 | +"match pattern *pat*. It is the same as ``[n for n in names if fnmatch(n, " |
| 134 | +"pat)]``, but implemented more efficiently." |
133 | 135 | msgstr "" |
134 | | -"基于可迭代对象 *names* 中匹配 *pattern* 的元素构造一个列表。 它等价于 ``[n for n in names if " |
135 | | -"fnmatch(n, pattern)]``,但实现得更有效率。" |
136 | 136 |
|
137 | | -#: ../../library/fnmatch.rst:84 |
| 137 | +#: ../../library/fnmatch.rst:89 |
138 | 138 | msgid "" |
139 | | -"Return the shell-style *pattern* converted to a regular expression for using" |
140 | | -" with :func:`re.match`." |
141 | | -msgstr "返回 shell 风格 *pattern* 转换成的正则表达式以便用于 :func:`re.match`。" |
| 139 | +"Return the shell-style pattern *pat* converted to a regular expression for " |
| 140 | +"using with :func:`re.match`." |
| 141 | +msgstr "" |
142 | 142 |
|
143 | | -#: ../../library/fnmatch.rst:87 |
| 143 | +#: ../../library/fnmatch.rst:92 |
144 | 144 | msgid "Example:" |
145 | 145 | msgstr "示例:" |
146 | 146 |
|
147 | | -#: ../../library/fnmatch.rst:101 |
| 147 | +#: ../../library/fnmatch.rst:106 |
148 | 148 | msgid "Module :mod:`glob`" |
149 | 149 | msgstr "模块 :mod:`glob`" |
150 | 150 |
|
151 | | -#: ../../library/fnmatch.rst:102 |
| 151 | +#: ../../library/fnmatch.rst:107 |
152 | 152 | msgid "Unix shell-style path expansion." |
153 | 153 | msgstr "Unix shell 风格路径扩展。" |
| 154 | + |
| 155 | +#: ../../library/fnmatch.rst:9 |
| 156 | +msgid "filenames" |
| 157 | +msgstr "文件名" |
| 158 | + |
| 159 | +#: ../../library/fnmatch.rst:9 |
| 160 | +msgid "wildcard expansion" |
| 161 | +msgstr "通配符扩展" |
| 162 | + |
| 163 | +#: ../../library/fnmatch.rst:11 ../../library/fnmatch.rst:41 |
| 164 | +msgid "module" |
| 165 | +msgstr "module" |
| 166 | + |
| 167 | +#: ../../library/fnmatch.rst:11 |
| 168 | +msgid "re" |
| 169 | +msgstr "re" |
| 170 | + |
| 171 | +#: ../../library/fnmatch.rst:19 |
| 172 | +msgid "* (asterisk)" |
| 173 | +msgstr "* (星号)" |
| 174 | + |
| 175 | +#: ../../library/fnmatch.rst:19 ../../library/fnmatch.rst:19 |
| 176 | +#: ../../library/fnmatch.rst:19 ../../library/fnmatch.rst:19 |
| 177 | +#: ../../library/fnmatch.rst:19 |
| 178 | +msgid "in glob-style wildcards" |
| 179 | +msgstr "使用 glob 风格的通配符" |
| 180 | + |
| 181 | +#: ../../library/fnmatch.rst:19 |
| 182 | +msgid "? (question mark)" |
| 183 | +msgstr "? (问号)" |
| 184 | + |
| 185 | +#: ../../library/fnmatch.rst:19 |
| 186 | +msgid "[] (square brackets)" |
| 187 | +msgstr "[] (方括号)" |
| 188 | + |
| 189 | +#: ../../library/fnmatch.rst:19 |
| 190 | +msgid "! (exclamation)" |
| 191 | +msgstr "! (感叹号)" |
| 192 | + |
| 193 | +#: ../../library/fnmatch.rst:19 |
| 194 | +msgid "- (minus)" |
| 195 | +msgstr "- (减号)" |
| 196 | + |
| 197 | +#: ../../library/fnmatch.rst:41 |
| 198 | +msgid "glob" |
| 199 | +msgstr "glob" |
0 commit comments