@@ -843,32 +843,37 @@ msgid ""
843843"Further arguments are passed as keyword arguments: *owner*, *group*, "
844844"*dry_run* and *logger* (as passed in :func:`make_archive`)."
845845msgstr ""
846+ "*function* 是将被用来解包归档文件的可调用对象。 该可调用对象将接收要创建文件的 *base_name*,再加上要归档内容的 "
847+ "*base_dir* (其默认值为 :data:`os.curdir`)。 更多参数会被作为关键字参数传入: *owner*, *group*, "
848+ "*dry_run* 和 *logger* (与向 :func:`make_archive` 传入的参数一致)。"
846849
847850#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:606
848851msgid ""
849852"If given, *extra_args* is a sequence of ``(name, value)`` pairs that will be"
850853" used as extra keywords arguments when the archiver callable is used."
851854msgstr ""
855+ "如果给出了 *extra_args*,则其应为一个 ``(name, value)`` 对的序列,将在归档器可调用对象被使用时作为附加的关键字参数。"
852856
853857#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:609
854858msgid ""
855859"*description* is used by :func:`get_archive_formats` which returns the list "
856860"of archivers. Defaults to an empty string."
857861msgstr ""
862+ "*description* 由 :func:`get_archive_formats` 使用,它将返回归档器的列表。 默认值为一个空字符串。"
858863
859864#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:615
860865msgid "Remove the archive format *name* from the list of supported formats."
861- msgstr ""
866+ msgstr "从支持的格式中移除归档格式 *name*。 "
862867
863868#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:620
864869msgid "Unpack an archive. *filename* is the full path of the archive."
865- msgstr ""
870+ msgstr "解包一个归档文件。 *filename* 是归档文件的完整路径。 "
866871
867872#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:622
868873msgid ""
869874"*extract_dir* is the name of the target directory where the archive is "
870875"unpacked. If not provided, the current working directory is used."
871- msgstr ""
876+ msgstr "*extract_dir* 是归档文件解包的目标目录名称。 如果未提供,则将使用当前工作目录。 "
872877
873878#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:625
874879msgid ""
@@ -879,84 +884,88 @@ msgid ""
879884"registered for that extension. In case none is found, a :exc:`ValueError` "
880885"is raised."
881886msgstr ""
887+ "*format* 是归档格式:应为 \" zip\" , \" tar\" , \" gztar\" , \" bztar\" 或 \" xztar\" 之一。 "
888+ "或者任何通过 :func:`register_unpack_format` 注册的其他格式。 如果未提供,:func:`unpack_archive` "
889+ "将使用归档文件的扩展名来检查是否注册了对应于该扩展名的解包器。 在未找到任何解包器的情况下,将引发 :exc:`ValueError`。"
882890
883891#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:632
884892msgid "Accepts a :term:`path-like object` for *filename* and *extract_dir*."
885- msgstr ""
893+ msgstr "接受一个 :term:`path-like object` 作为 *filename* 和 *extract_dir*。 "
886894
887895#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:638
888896msgid ""
889897"Registers an unpack format. *name* is the name of the format and "
890898"*extensions* is a list of extensions corresponding to the format, like "
891899"``.zip`` for Zip files."
892900msgstr ""
901+ "注册一个解包格式。 *name* 为格式名称而 *extensions* 为对应于该格式的扩展名列表,例如 Zip 文件的扩展名为 ``.zip``。"
893902
894903#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:642
895904msgid ""
896905"*function* is the callable that will be used to unpack archives. The "
897906"callable will receive the path of the archive, followed by the directory the"
898907" archive must be extracted to."
899- msgstr ""
908+ msgstr "*function* 是将被用来解包归档文件的可调用对象。 该可调用对象将接受归档文件的路径,加上该归档文件要被解包的目标目录。 "
900909
901910#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:646
902911msgid ""
903912"When provided, *extra_args* is a sequence of ``(name, value)`` tuples that "
904913"will be passed as keywords arguments to the callable."
905- msgstr ""
914+ msgstr "如果提供了 *extra_args*,则其应为一个 ``(name, value)`` 元组的序列,将被作为关键字参数传递给该可调用对象。 "
906915
907916#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:649
908917msgid ""
909918"*description* can be provided to describe the format, and will be returned "
910919"by the :func:`get_unpack_formats` function."
911- msgstr ""
920+ msgstr "可以提供 *description* 来描述该格式,它将被 :func:`get_unpack_formats` 返回。 "
912921
913922#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:655
914923msgid "Unregister an unpack format. *name* is the name of the format."
915- msgstr ""
924+ msgstr "撤销注册一个解包格式。 *name* 为格式的名称。 "
916925
917926#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:660
918927msgid ""
919928"Return a list of all registered formats for unpacking. Each element of the "
920929"returned sequence is a tuple ``(name, extensions, description)``."
921- msgstr ""
930+ msgstr "返回所有已注册的解包格式列表。 所返回序列中的每个元素为一个元组 ``(name, extensions, description)``。 "
922931
923932#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:666
924933msgid ""
925934"*zip*: ZIP file (unpacking compressed files works only if the corresponding "
926935"module is available)."
927- msgstr ""
936+ msgstr "*zip*: ZIP 文件(只有在相应模块可用时才能解包压缩文件)。 "
928937
929938#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:668
930939msgid "*tar*: uncompressed tar file."
931- msgstr ""
940+ msgstr "*tar*: 未压缩的 tar 文件。 "
932941
933942#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:673
934943msgid ""
935944"You can register new formats or provide your own unpacker for any existing "
936945"formats, by using :func:`register_unpack_format`."
937- msgstr ""
946+ msgstr "你可以通过使用 :func:`register_unpack_format` 注册新的格式或为任何现有格式提供你自己的解包器。 "
938947
939948#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:680
940949msgid "Archiving example"
941- msgstr ""
950+ msgstr "归档程序示例 "
942951
943952#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:682
944953msgid ""
945954"In this example, we create a gzip'ed tar-file archive containing all files "
946955"found in the :file:`.ssh` directory of the user::"
947- msgstr ""
956+ msgstr "在这个示例中,我们创建了一个 gzip 压缩的 tar 归档文件,其中包含用户的 :file:`.ssh` 目录下的所有文件:: "
948957
949958#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:692
950959msgid "The resulting archive contains:"
951- msgstr ""
960+ msgstr "结果归档文件中包含有: "
952961
953962#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:708
954963msgid "Querying the size of the output terminal"
955- msgstr ""
964+ msgstr "查询输出终端的尺寸 "
956965
957966#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:712
958967msgid "Get the size of the terminal window."
959- msgstr ""
968+ msgstr "获取终端窗口的尺寸。 "
960969
961970#: /home/travis/build/python/cpython-doc-catalog/Doc/library/shutil.rst:714
962971msgid ""
0 commit comments