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

Skip to content

Commit 8761e66

Browse files
committed
[po] auto sync bot
1 parent efcb94c commit 8761e66

2 files changed

Lines changed: 51 additions & 41 deletions

File tree

library/os.path.po

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2018, Python Software Foundation
2+
# Copyright (C) 2001-2019, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.7\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-11-08 09:41+0900\n"
11+
"POT-Creation-Date: 2019-01-16 10:22+0900\n"
1212
"PO-Revision-Date: 2017-02-16 23:20+0000\n"
1313
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1414
"MIME-Version: 1.0\n"
@@ -98,12 +98,12 @@ msgstr ""
9898
#: ../../library/os.path.rst:211 ../../library/os.path.rst:223
9999
#: ../../library/os.path.rst:232 ../../library/os.path.rst:242
100100
#: ../../library/os.path.rst:252 ../../library/os.path.rst:262
101-
#: ../../library/os.path.rst:272 ../../library/os.path.rst:290
102-
#: ../../library/os.path.rst:323 ../../library/os.path.rst:335
103-
#: ../../library/os.path.rst:344 ../../library/os.path.rst:359
104-
#: ../../library/os.path.rst:377 ../../library/os.path.rst:390
105-
#: ../../library/os.path.rst:406 ../../library/os.path.rst:422
106-
#: ../../library/os.path.rst:443 ../../library/os.path.rst:454
101+
#: ../../library/os.path.rst:272 ../../library/os.path.rst:291
102+
#: ../../library/os.path.rst:324 ../../library/os.path.rst:336
103+
#: ../../library/os.path.rst:345 ../../library/os.path.rst:360
104+
#: ../../library/os.path.rst:378 ../../library/os.path.rst:391
105+
#: ../../library/os.path.rst:407 ../../library/os.path.rst:423
106+
#: ../../library/os.path.rst:444 ../../library/os.path.rst:455
107107
msgid "Accepts a :term:`path-like object`."
108108
msgstr ""
109109

@@ -124,9 +124,9 @@ msgid ""
124124
"path."
125125
msgstr ""
126126

127-
#: ../../library/os.path.rst:89 ../../library/os.path.rst:358
128-
#: ../../library/os.path.rst:370 ../../library/os.path.rst:386
129-
#: ../../library/os.path.rst:402
127+
#: ../../library/os.path.rst:89 ../../library/os.path.rst:359
128+
#: ../../library/os.path.rst:371 ../../library/os.path.rst:387
129+
#: ../../library/os.path.rst:403
130130
msgid ":ref:`Availability <availability>`: Unix, Windows."
131131
msgstr ""
132132

@@ -280,19 +280,20 @@ msgstr ""
280280
msgid ""
281281
"Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a "
282282
"file system where a different file system has been mounted. On POSIX, the "
283-
"function checks whether *path*'s parent, :file:`path/..`, is on a different "
284-
"device than *path*, or whether :file:`path/..` and *path* point to the same "
285-
"i-node on the same device --- this should detect mount points for all Unix "
286-
"and POSIX variants. On Windows, a drive letter root and a share UNC are "
287-
"always mount points, and for any other path ``GetVolumePathName`` is called "
288-
"to see if it is different from the input path."
283+
"function checks whether *path*'s parent, :file:`{path}/..`, is on a "
284+
"different device than *path*, or whether :file:`{path}/..` and *path* point "
285+
"to the same i-node on the same device --- this should detect mount points "
286+
"for all Unix and POSIX variants. It is not able to reliably detect bind "
287+
"mounts on the same filesystem. On Windows, a drive letter root and a share "
288+
"UNC are always mount points, and for any other path ``GetVolumePathName`` is"
289+
" called to see if it is different from the input path."
289290
msgstr ""
290291

291-
#: ../../library/os.path.rst:287
292+
#: ../../library/os.path.rst:288
292293
msgid "Support for detecting non-root mount points on Windows."
293294
msgstr ""
294295

295-
#: ../../library/os.path.rst:296
296+
#: ../../library/os.path.rst:297
296297
msgid ""
297298
"Join one or more path components intelligently. The return value is the "
298299
"concatenation of *path* and any members of *\\*paths* with exactly one "
@@ -302,7 +303,7 @@ msgid ""
302303
"thrown away and joining continues from the absolute path component."
303304
msgstr ""
304305

305-
#: ../../library/os.path.rst:304
306+
#: ../../library/os.path.rst:305
306307
msgid ""
307308
"On Windows, the drive letter is not reset when an absolute path component "
308309
"(e.g., ``r'\\foo'``) is encountered. If a component contains a drive "
@@ -312,11 +313,11 @@ msgid ""
312313
"directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\\\foo`."
313314
msgstr ""
314315

315-
#: ../../library/os.path.rst:311
316+
#: ../../library/os.path.rst:312
316317
msgid "Accepts a :term:`path-like object` for *path* and *paths*."
317318
msgstr ""
318319

319-
#: ../../library/os.path.rst:317
320+
#: ../../library/os.path.rst:318
320321
msgid ""
321322
"Normalize the case of a pathname. On Unix and Mac OS X, this returns the "
322323
"path unchanged; on case-insensitive filesystems, it converts the path to "
@@ -326,7 +327,7 @@ msgid ""
326327
"interface)."
327328
msgstr ""
328329

329-
#: ../../library/os.path.rst:329
330+
#: ../../library/os.path.rst:330
330331
msgid ""
331332
"Normalize a pathname by collapsing redundant separators and up-level "
332333
"references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all "
@@ -335,56 +336,56 @@ msgid ""
335336
"backward slashes. To normalize case, use :func:`normcase`."
336337
msgstr ""
337338

338-
#: ../../library/os.path.rst:341
339+
#: ../../library/os.path.rst:342
339340
msgid ""
340341
"Return the canonical path of the specified filename, eliminating any "
341342
"symbolic links encountered in the path (if they are supported by the "
342343
"operating system)."
343344
msgstr ""
344345

345-
#: ../../library/os.path.rst:350
346+
#: ../../library/os.path.rst:351
346347
msgid ""
347348
"Return a relative filepath to *path* either from the current directory or "
348349
"from an optional *start* directory. This is a path computation: the "
349350
"filesystem is not accessed to confirm the existence or nature of *path* or "
350351
"*start*."
351352
msgstr ""
352353

353-
#: ../../library/os.path.rst:355
354+
#: ../../library/os.path.rst:356
354355
msgid "*start* defaults to :attr:`os.curdir`."
355356
msgstr ""
356357

357-
#: ../../library/os.path.rst:365
358+
#: ../../library/os.path.rst:366
358359
msgid ""
359360
"Return ``True`` if both pathname arguments refer to the same file or "
360361
"directory. This is determined by the device number and i-node number and "
361362
"raises an exception if an :func:`os.stat` call on either pathname fails."
362363
msgstr ""
363364

364-
#: ../../library/os.path.rst:371 ../../library/os.path.rst:387
365-
#: ../../library/os.path.rst:403
365+
#: ../../library/os.path.rst:372 ../../library/os.path.rst:388
366+
#: ../../library/os.path.rst:404
366367
msgid "Added Windows support."
367368
msgstr ""
368369

369-
#: ../../library/os.path.rst:374
370+
#: ../../library/os.path.rst:375
370371
msgid "Windows now uses the same implementation as all other platforms."
371372
msgstr ""
372373

373-
#: ../../library/os.path.rst:383
374+
#: ../../library/os.path.rst:384
374375
msgid ""
375376
"Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same "
376377
"file."
377378
msgstr ""
378379

379-
#: ../../library/os.path.rst:396
380+
#: ../../library/os.path.rst:397
380381
msgid ""
381382
"Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same "
382383
"file. These structures may have been returned by :func:`os.fstat`, "
383384
":func:`os.lstat`, or :func:`os.stat`. This function implements the "
384385
"underlying comparison used by :func:`samefile` and :func:`sameopenfile`."
385386
msgstr ""
386387

387-
#: ../../library/os.path.rst:412
388+
#: ../../library/os.path.rst:413
388389
msgid ""
389390
"Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the "
390391
"last pathname component and *head* is everything leading up to that. The "
@@ -397,43 +398,43 @@ msgid ""
397398
" and :func:`basename`."
398399
msgstr ""
399400

400-
#: ../../library/os.path.rst:428
401+
#: ../../library/os.path.rst:429
401402
msgid ""
402403
"Split the pathname *path* into a pair ``(drive, tail)`` where *drive* is "
403404
"either a mount point or the empty string. On systems which do not use drive"
404405
" specifications, *drive* will always be the empty string. In all cases, "
405406
"``drive + tail`` will be the same as *path*."
406407
msgstr ""
407408

408-
#: ../../library/os.path.rst:433
409+
#: ../../library/os.path.rst:434
409410
msgid ""
410411
"On Windows, splits a pathname into drive/UNC sharepoint and relative path."
411412
msgstr ""
412413

413-
#: ../../library/os.path.rst:435
414+
#: ../../library/os.path.rst:436
414415
msgid ""
415416
"If the path contains a drive letter, drive will contain everything up to and"
416417
" including the colon. e.g. ``splitdrive(\"c:/dir\")`` returns ``(\"c:\", "
417418
"\"/dir\")``"
418419
msgstr ""
419420

420-
#: ../../library/os.path.rst:439
421+
#: ../../library/os.path.rst:440
421422
msgid ""
422423
"If the path contains a UNC path, drive will contain the host name and share,"
423424
" up to but not including the fourth separator. e.g. "
424425
"``splitdrive(\"//host/computer/dir\")`` returns ``(\"//host/computer\", "
425426
"\"/dir\")``"
426427
msgstr ""
427428

428-
#: ../../library/os.path.rst:449
429+
#: ../../library/os.path.rst:450
429430
msgid ""
430431
"Split the pathname *path* into a pair ``(root, ext)`` such that ``root + "
431432
"ext == path``, and *ext* is empty or begins with a period and contains at "
432433
"most one period. Leading periods on the basename are ignored; "
433434
"``splitext('.cshrc')`` returns ``('.cshrc', '')``."
434435
msgstr ""
435436

436-
#: ../../library/os.path.rst:460
437+
#: ../../library/os.path.rst:461
437438
msgid ""
438439
"``True`` if arbitrary Unicode strings can be used as file names (within "
439440
"limitations imposed by the file system)."

reference/simple_stmts.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,15 @@ msgid ""
192192
" to a class attribute, the LHS creates a new instance attribute as the "
193193
"target of the assignment::"
194194
msgstr ""
195+
"注意:如果该对象为类实例并且属性引用在赋值运算符的两侧都出现,则右侧表达式 ``a.x`` 可以访问实例属性或(如果实例属性不存在)类属性。 左侧目标 "
196+
"``a.x`` 将总是设定为实例属性,并在必要时创建该实例属性。 因此,``a.x`` "
197+
"的两次出现不一定指向相同的属性:如果右侧表达式指向一个类属性,则左侧表达式会创建一个新的实例属性作为赋值的目标::"
195198

196199
#: ../../reference/simple_stmts.rst:185
197200
msgid ""
198201
"This description does not necessarily apply to descriptor attributes, such "
199202
"as properties created with :func:`property`."
200-
msgstr ""
203+
msgstr "此描述不一定作用于描述器属性,例如通过 :func:`property` 创建的特征属性。"
201204

202205
#: ../../reference/simple_stmts.rst:192
203206
msgid ""
@@ -206,6 +209,7 @@ msgid ""
206209
"list) or a mapping object (such as a dictionary). Next, the subscript "
207210
"expression is evaluated."
208211
msgstr ""
212+
"如果目标为一个抽取项:引用中的原型表达式会被求值。 它应当产生一个可变序列对象(例如列表)或一个映射对象(例如字典)。 接下来,该抽取表达式会被求值。"
209213

210214
#: ../../reference/simple_stmts.rst:201
211215
msgid ""
@@ -217,6 +221,9 @@ msgid ""
217221
":exc:`IndexError` is raised (assignment to a subscripted sequence cannot add"
218222
" new items to a list)."
219223
msgstr ""
224+
"如果原型为一个可变序列对象(例如列表),抽取应产生一个整数。 如其为负值,则再加上序列长度。 "
225+
"结果值必须为一个小于序列长度的非负整数,序列将把被赋值对象赋值给该整数指定索引号的项。 如果索引超出范围,将会引发 :exc:`IndexError` "
226+
"(给被抽取序列赋值不能向列表添加新项)。"
220227

221228
#: ../../reference/simple_stmts.rst:212
222229
msgid ""
@@ -227,12 +234,14 @@ msgid ""
227234
"the same key value, or insert a new key/value pair (if no key with the same "
228235
"value existed)."
229236
msgstr ""
237+
"如果原型为一个映射对象(例如字典),抽取必须具有与该映射的键类型相兼容的类型,然后映射中会创建一个将抽取映射到被赋值对象的键/值对。 "
238+
"这可以是替换一个现有键/值对并保持相同键值,也可以是插入一个新键/值对(如果具有相同值的键不存在)。"
230239

231240
#: ../../reference/simple_stmts.rst:218
232241
msgid ""
233242
"For user-defined objects, the :meth:`__setitem__` method is called with "
234243
"appropriate arguments."
235-
msgstr ""
244+
msgstr "对于用户定义对象,会调用 :meth:`__setitem__` 方法并附带适当的参数。"
236245

237246
#: ../../reference/simple_stmts.rst:223
238247
msgid ""

0 commit comments

Comments
 (0)