Skip to content

Commit 90a0a4e

Browse files
sync with cpython 04466286
1 parent b1bcfe6 commit 90a0a4e

File tree

1 file changed

+68
-54
lines changed

1 file changed

+68
-54
lines changed

library/compileall.po

Lines changed: 68 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-10-11 00:13+0000\n"
10+
"POT-Creation-Date: 2025-06-02 00:16+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:41+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -89,48 +89,62 @@ msgid ""
8989
"executed."
9090
msgstr ""
9191

92-
#: ../../library/compileall.rst:61
92+
#: ../../library/compileall.rst:60
9393
msgid ""
94-
"Remove (``-s``) or append (``-p``) the given prefix of paths recorded in the "
95-
"``.pyc`` files. Cannot be combined with ``-d``."
94+
"Remove the given prefix from paths recorded in the ``.pyc`` files. Paths are "
95+
"made relative to the prefix."
96+
msgstr ""
97+
98+
#: ../../library/compileall.rst:63
99+
msgid "This option can be used with ``-p`` but not with ``-d``."
96100
msgstr ""
97101

98102
#: ../../library/compileall.rst:67
99103
msgid ""
104+
"Prepend the given prefix to paths recorded in the ``.pyc`` files. Use ``-p /"
105+
"`` to make the paths absolute."
106+
msgstr ""
107+
108+
#: ../../library/compileall.rst:70
109+
msgid "This option can be used with ``-s`` but not with ``-d``."
110+
msgstr ""
111+
112+
#: ../../library/compileall.rst:74
113+
msgid ""
100114
"regex is used to search the full path to each file considered for "
101115
"compilation, and if the regex produces a match, the file is skipped."
102116
msgstr ""
103117

104-
#: ../../library/compileall.rst:72
118+
#: ../../library/compileall.rst:79
105119
msgid ""
106120
"Read the file ``list`` and add each line that it contains to the list of "
107121
"files and directories to compile. If ``list`` is ``-``, read lines from "
108122
"``stdin``."
109123
msgstr ""
110124

111-
#: ../../library/compileall.rst:78
125+
#: ../../library/compileall.rst:85
112126
msgid ""
113127
"Write the byte-code files to their legacy locations and names, which may "
114128
"overwrite byte-code files created by another version of Python. The default "
115129
"is to write files to their :pep:`3147` locations and names, which allows "
116130
"byte-code files from multiple versions of Python to coexist."
117131
msgstr ""
118132

119-
#: ../../library/compileall.rst:85
133+
#: ../../library/compileall.rst:92
120134
msgid ""
121135
"Control the maximum recursion level for subdirectories. If this is given, "
122136
"then ``-l`` option will not be taken into account. :program:`python -m "
123137
"compileall <directory> -r 0` is equivalent to :program:`python -m compileall "
124138
"<directory> -l`."
125139
msgstr ""
126140

127-
#: ../../library/compileall.rst:92
141+
#: ../../library/compileall.rst:99
128142
msgid ""
129143
"Use *N* workers to compile the files within the given directory. If ``0`` is "
130144
"used, then the result of :func:`os.process_cpu_count` will be used."
131145
msgstr ""
132146

133-
#: ../../library/compileall.rst:98
147+
#: ../../library/compileall.rst:105
134148
msgid ""
135149
"Control how the generated byte-code files are invalidated at runtime. The "
136150
"``timestamp`` value, means that ``.pyc`` files with the source timestamp and "
@@ -143,78 +157,78 @@ msgid ""
143157
"the ``SOURCE_DATE_EPOCH`` environment variable is set."
144158
msgstr ""
145159

146-
#: ../../library/compileall.rst:111
160+
#: ../../library/compileall.rst:118
147161
msgid ""
148162
"Compile with the given optimization level. May be used multiple times to "
149163
"compile for multiple levels at a time (for example, ``compileall -o 1 -o "
150164
"2``)."
151165
msgstr ""
152166

153-
#: ../../library/compileall.rst:117
167+
#: ../../library/compileall.rst:124
154168
msgid "Ignore symlinks pointing outside the given directory."
155169
msgstr ""
156170

157-
#: ../../library/compileall.rst:121
171+
#: ../../library/compileall.rst:128
158172
msgid ""
159173
"If two ``.pyc`` files with different optimization level have the same "
160174
"content, use hard links to consolidate duplicate files."
161175
msgstr ""
162176

163-
#: ../../library/compileall.rst:124
177+
#: ../../library/compileall.rst:131
164178
msgid "Added the ``-i``, ``-b`` and ``-h`` options."
165179
msgstr "新增選項 ``-i``、``-b`` 與 ``-h``。"
166180

167-
#: ../../library/compileall.rst:127
181+
#: ../../library/compileall.rst:134
168182
msgid ""
169183
"Added the ``-j``, ``-r``, and ``-qq`` options. ``-q`` option was changed "
170184
"to a multilevel value. ``-b`` will always produce a byte-code file ending "
171185
"in ``.pyc``, never ``.pyo``."
172186
msgstr ""
173187

174-
#: ../../library/compileall.rst:132
188+
#: ../../library/compileall.rst:139
175189
msgid "Added the ``--invalidation-mode`` option."
176190
msgstr "新增選項 ``--invalidation-mode``。"
177191

178-
#: ../../library/compileall.rst:135
192+
#: ../../library/compileall.rst:142
179193
msgid ""
180194
"Added the ``-s``, ``-p``, ``-e`` and ``--hardlink-dupes`` options. Raised "
181195
"the default recursion limit from 10 to :py:func:`sys.getrecursionlimit()`. "
182196
"Added the possibility to specify the ``-o`` option multiple times."
183197
msgstr ""
184198

185-
#: ../../library/compileall.rst:142
199+
#: ../../library/compileall.rst:149
186200
msgid ""
187201
"There is no command-line option to control the optimization level used by "
188202
"the :func:`compile` function, because the Python interpreter itself already "
189203
"provides the option: :program:`python -O -m compileall`."
190204
msgstr ""
191205

192-
#: ../../library/compileall.rst:146
206+
#: ../../library/compileall.rst:153
193207
msgid ""
194208
"Similarly, the :func:`compile` function respects the :data:`sys."
195209
"pycache_prefix` setting. The generated bytecode cache will only be useful "
196210
"if :func:`compile` is run with the same :data:`sys.pycache_prefix` (if any) "
197211
"that will be used at runtime."
198212
msgstr ""
199213

200-
#: ../../library/compileall.rst:152
214+
#: ../../library/compileall.rst:159
201215
msgid "Public functions"
202216
msgstr ""
203217

204-
#: ../../library/compileall.rst:156
218+
#: ../../library/compileall.rst:163
205219
msgid ""
206220
"Recursively descend the directory tree named by *dir*, compiling all :file:`."
207221
"py` files along the way. Return a true value if all the files compiled "
208222
"successfully, and a false value otherwise."
209223
msgstr ""
210224

211-
#: ../../library/compileall.rst:160
225+
#: ../../library/compileall.rst:167
212226
msgid ""
213227
"The *maxlevels* parameter is used to limit the depth of the recursion; it "
214228
"defaults to ``sys.getrecursionlimit()``."
215229
msgstr ""
216230

217-
#: ../../library/compileall.rst:163
231+
#: ../../library/compileall.rst:170
218232
msgid ""
219233
"If *ddir* is given, it is prepended to the path to each file being compiled "
220234
"for use in compilation time tracebacks, and is also compiled in to the byte-"
@@ -223,28 +237,28 @@ msgid ""
223237
"executed."
224238
msgstr ""
225239

226-
#: ../../library/compileall.rst:169
240+
#: ../../library/compileall.rst:176
227241
msgid ""
228242
"If *force* is true, modules are re-compiled even if the timestamps are up to "
229243
"date."
230244
msgstr ""
231245

232-
#: ../../library/compileall.rst:172
246+
#: ../../library/compileall.rst:179
233247
msgid ""
234248
"If *rx* is given, its ``search`` method is called on the complete path to "
235249
"each file considered for compilation, and if it returns a true value, the "
236250
"file is skipped. This can be used to exclude files matching a regular "
237251
"expression, given as a :ref:`re.Pattern <re-objects>` object."
238252
msgstr ""
239253

240-
#: ../../library/compileall.rst:177 ../../library/compileall.rst:254
254+
#: ../../library/compileall.rst:184 ../../library/compileall.rst:261
241255
msgid ""
242256
"If *quiet* is ``False`` or ``0`` (the default), the filenames and other "
243257
"information are printed to standard out. Set to ``1``, only errors are "
244258
"printed. Set to ``2``, all output is suppressed."
245259
msgstr ""
246260

247-
#: ../../library/compileall.rst:181 ../../library/compileall.rst:258
261+
#: ../../library/compileall.rst:188 ../../library/compileall.rst:265
248262
msgid ""
249263
"If *legacy* is true, byte-code files are written to their legacy locations "
250264
"and names, which may overwrite byte-code files created by another version of "
@@ -253,15 +267,15 @@ msgid ""
253267
"coexist."
254268
msgstr ""
255269

256-
#: ../../library/compileall.rst:187 ../../library/compileall.rst:264
270+
#: ../../library/compileall.rst:194 ../../library/compileall.rst:271
257271
msgid ""
258272
"*optimize* specifies the optimization level for the compiler. It is passed "
259273
"to the built-in :func:`compile` function. Accepts also a sequence of "
260274
"optimization levels which lead to multiple compilations of one :file:`.py` "
261275
"file in one call."
262276
msgstr ""
263277

264-
#: ../../library/compileall.rst:191
278+
#: ../../library/compileall.rst:198
265279
msgid ""
266280
"The argument *workers* specifies how many workers are used to compile files "
267281
"in parallel. The default is to not use multiple workers. If the platform "
@@ -271,80 +285,80 @@ msgid ""
271285
"`ValueError` will be raised."
272286
msgstr ""
273287

274-
#: ../../library/compileall.rst:198 ../../library/compileall.rst:268
288+
#: ../../library/compileall.rst:205 ../../library/compileall.rst:275
275289
msgid ""
276290
"*invalidation_mode* should be a member of the :class:`py_compile."
277291
"PycInvalidationMode` enum and controls how the generated pycs are "
278292
"invalidated at runtime."
279293
msgstr ""
280294

281-
#: ../../library/compileall.rst:202 ../../library/compileall.rst:272
295+
#: ../../library/compileall.rst:209 ../../library/compileall.rst:279
282296
msgid ""
283297
"The *stripdir*, *prependdir* and *limit_sl_dest* arguments correspond to the "
284298
"``-s``, ``-p`` and ``-e`` options described above. They may be specified as "
285299
"``str`` or :py:class:`os.PathLike`."
286300
msgstr ""
287301

288-
#: ../../library/compileall.rst:206 ../../library/compileall.rst:276
302+
#: ../../library/compileall.rst:213 ../../library/compileall.rst:283
289303
msgid ""
290304
"If *hardlink_dupes* is true and two ``.pyc`` files with different "
291305
"optimization level have the same content, use hard links to consolidate "
292306
"duplicate files."
293307
msgstr ""
294308

295-
#: ../../library/compileall.rst:209 ../../library/compileall.rst:307
309+
#: ../../library/compileall.rst:216 ../../library/compileall.rst:314
296310
msgid "Added the *legacy* and *optimize* parameter."
297311
msgstr "新增 *legacy* 與 *optimize* 參數。"
298312

299-
#: ../../library/compileall.rst:212
313+
#: ../../library/compileall.rst:219
300314
msgid "Added the *workers* parameter."
301315
msgstr "新增 *workers* 參數。"
302316

303-
#: ../../library/compileall.rst:215 ../../library/compileall.rst:281
304-
#: ../../library/compileall.rst:310
317+
#: ../../library/compileall.rst:222 ../../library/compileall.rst:288
318+
#: ../../library/compileall.rst:317
305319
msgid "*quiet* parameter was changed to a multilevel value."
306320
msgstr ""
307321

308-
#: ../../library/compileall.rst:218 ../../library/compileall.rst:284
309-
#: ../../library/compileall.rst:313
322+
#: ../../library/compileall.rst:225 ../../library/compileall.rst:291
323+
#: ../../library/compileall.rst:320
310324
msgid ""
311325
"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no "
312326
"matter what the value of *optimize* is."
313327
msgstr ""
314328

315-
#: ../../library/compileall.rst:222
329+
#: ../../library/compileall.rst:229
316330
msgid "Accepts a :term:`path-like object`."
317331
msgstr ""
318332

319-
#: ../../library/compileall.rst:225 ../../library/compileall.rst:288
320-
#: ../../library/compileall.rst:317
333+
#: ../../library/compileall.rst:232 ../../library/compileall.rst:295
334+
#: ../../library/compileall.rst:324
321335
msgid "The *invalidation_mode* parameter was added."
322336
msgstr "新增 *invalidation_mode* 參數。"
323337

324-
#: ../../library/compileall.rst:228 ../../library/compileall.rst:291
325-
#: ../../library/compileall.rst:320
338+
#: ../../library/compileall.rst:235 ../../library/compileall.rst:298
339+
#: ../../library/compileall.rst:327
326340
msgid ""
327341
"The *invalidation_mode* parameter's default value is updated to ``None``."
328342
msgstr "新增 *invalidation_mode* 參數的預設值被更新為 ``None``。"
329343

330-
#: ../../library/compileall.rst:231
344+
#: ../../library/compileall.rst:238
331345
msgid "Setting *workers* to 0 now chooses the optimal number of cores."
332346
msgstr ""
333347

334-
#: ../../library/compileall.rst:234
348+
#: ../../library/compileall.rst:241
335349
msgid ""
336350
"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* "
337351
"arguments. Default value of *maxlevels* was changed from ``10`` to ``sys."
338352
"getrecursionlimit()``"
339353
msgstr ""
340354

341-
#: ../../library/compileall.rst:240
355+
#: ../../library/compileall.rst:247
342356
msgid ""
343357
"Compile the file with path *fullname*. Return a true value if the file "
344358
"compiled successfully, and a false value otherwise."
345359
msgstr ""
346360

347-
#: ../../library/compileall.rst:243
361+
#: ../../library/compileall.rst:250
348362
msgid ""
349363
"If *ddir* is given, it is prepended to the path to the file being compiled "
350364
"for use in compilation time tracebacks, and is also compiled in to the byte-"
@@ -353,7 +367,7 @@ msgid ""
353367
"executed."
354368
msgstr ""
355369

356-
#: ../../library/compileall.rst:249
370+
#: ../../library/compileall.rst:256
357371
msgid ""
358372
"If *rx* is given, its ``search`` method is passed the full path name to the "
359373
"file being compiled, and if it returns a true value, the file is not "
@@ -362,34 +376,34 @@ msgid ""
362376
"object."
363377
msgstr ""
364378

365-
#: ../../library/compileall.rst:294
379+
#: ../../library/compileall.rst:301
366380
msgid ""
367381
"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* "
368382
"arguments."
369383
msgstr ""
370384

371-
#: ../../library/compileall.rst:299
385+
#: ../../library/compileall.rst:306
372386
msgid ""
373387
"Byte-compile all the :file:`.py` files found along ``sys.path``. Return a "
374388
"true value if all the files compiled successfully, and a false value "
375389
"otherwise."
376390
msgstr ""
377391

378-
#: ../../library/compileall.rst:302
392+
#: ../../library/compileall.rst:309
379393
msgid ""
380394
"If *skip_curdir* is true (the default), the current directory is not "
381395
"included in the search. All other parameters are passed to the :func:"
382396
"`compile_dir` function. Note that unlike the other compile functions, "
383397
"``maxlevels`` defaults to ``0``."
384398
msgstr ""
385399

386-
#: ../../library/compileall.rst:323
400+
#: ../../library/compileall.rst:330
387401
msgid ""
388402
"To force a recompile of all the :file:`.py` files in the :file:`Lib/` "
389403
"subdirectory and all its subdirectories::"
390404
msgstr ""
391405

392-
#: ../../library/compileall.rst:326
406+
#: ../../library/compileall.rst:333
393407
msgid ""
394408
"import compileall\n"
395409
"\n"
@@ -404,10 +418,10 @@ msgid ""
404418
"compileall.compile_dir(pathlib.Path('Lib/'), force=True)"
405419
msgstr ""
406420

407-
#: ../../library/compileall.rst:340
421+
#: ../../library/compileall.rst:347
408422
msgid "Module :mod:`py_compile`"
409423
msgstr ":mod:`py_compile` 模組"
410424

411-
#: ../../library/compileall.rst:341
425+
#: ../../library/compileall.rst:348
412426
msgid "Byte-compile a single source file."
413427
msgstr ""

0 commit comments

Comments
 (0)