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

Skip to content

Commit cd5b5ef

Browse files
[po] auto sync
1 parent 1d32321 commit cd5b5ef

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

library/shutil.po

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ msgid ""
504504
"removed. In case of symlinks, a new symlink pointing to the target of *src*"
505505
" will be created in or as *dst* and *src* will be removed."
506506
msgstr ""
507+
"如果目标是在当前文件系统中,则会使用 :func:`os.rename`。 在其他情况下,*src* 将被拷贝至 *dst*,使用的函数为 "
508+
"*copy_function*,然后目标会被移除。 对于符号链接,则将在 *dst* 之下或以其本身为名称创建一个指向 *src* "
509+
"目标的新符号链接,并且 *src* 将被移除。"
507510

508511
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:337
509512
msgid ""
@@ -515,23 +518,30 @@ msgid ""
515518
" *copy_function* allows the move to succeed when it is not possible to also "
516519
"copy the metadata, at the expense of not copying any of the metadata."
517520
msgstr ""
521+
"如果给出了 *copy_function*,则它必须为接受两个参数 *src* 和 *dst* 的可调用对象,并会在 :func:`os.rename`"
522+
" 无法使用时被用来将 *src* 拷贝到 *dest*。 如果源位置是一个目录,则会调用 :func:`copytree`,并向它传入 "
523+
":func:`copy_function`。 默认的 *copy_function* 是 :func:`copy2`。 使用 "
524+
":func:`~shutil.copy` 作为 *copy_function* "
525+
"允许在无法附带拷贝元数据时让移动操作成功执行,但其代价是不拷贝任何元数据。"
518526

519527
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:345
520528
msgid ""
521529
"Added explicit symlink handling for foreign filesystems, thus adapting it to"
522530
" the behavior of GNU's :program:`mv`. Now returns *dst*."
523-
msgstr ""
531+
msgstr "为异类文件系统添加了显式的符号链接处理,以便使它适应 GNU 的 :program:`mv` 的行为。 现在会返回 *dst*。"
524532

525533
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:350
526534
msgid "Added the *copy_function* keyword argument."
527-
msgstr ""
535+
msgstr "增加了 *copy_function* 关键字参数。"
528536

529537
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:360
530538
msgid ""
531539
"Return disk usage statistics about the given path as a :term:`named tuple` "
532540
"with the attributes *total*, *used* and *free*, which are the amount of "
533541
"total, used and free space, in bytes. *path* may be a file or a directory."
534542
msgstr ""
543+
"返回给定路径的磁盘使用统计数据,形式为一个 :term:`named tuple`,其中包含 *total*, *used* 和 *free* "
544+
"属性,分别表示总计、已使用和未使用空间的字节数。 *path* 可以是一个文件或是一个目录。"
535545

536546
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:367
537547
msgid "On Windows, *path* can now be a file or directory."

0 commit comments

Comments
 (0)