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

Skip to content

Commit acde4bd

Browse files
[po] auto sync
1 parent b6ff0dd commit acde4bd

2 files changed

Lines changed: 25 additions & 12 deletions

File tree

library/os.po

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,8 @@ msgid ""
11211121
"most *length* bytes in size. As of Python 3.3, this is equivalent to "
11221122
"``os.truncate(fd, length)``."
11231123
msgstr ""
1124-
"将文件描述符 *fd* 指向的文件切分开,以使其最大为 *length* 字节。从 Python 3.3 开始,它等效于 "
1125-
"``os.truncate(fd, length)``。"
1124+
"截断文件描述符 *fd* 指向的文件,以使其最大为 *length* 字节。从 Python 3.3 开始,它等效于 ``os.truncate(fd,"
1125+
" length)``。"
11261126

11271127
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:855
11281128
msgid ""
@@ -3636,6 +3636,9 @@ msgid ""
36363636
"default) otherwise. On non-Windows platforms, *target_is_directory* is "
36373637
"ignored."
36383638
msgstr ""
3639+
"在 Windows 上,符号链接可以表示文件或目录两种类型,并且不会动态改变类型。如果目标存在,则新建链接的类型将与目标一致。否则,如果 "
3640+
"*target_is_directory* 为 ``True``,则符号链接将创建为目录链接,为 ``False`` (默认)将创建为文件链接。在非 "
3641+
"Windows 平台上,*target_is_directory* 被忽略。"
36393642

36403643
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2814
36413644
msgid ""
@@ -3644,32 +3647,34 @@ msgid ""
36443647
"the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process "
36453648
"must be run as an administrator."
36463649
msgstr ""
3650+
"在 Windows 10 或更高版本上,如果启用了开发人员模式,非特权帐户可以创建符号链接。如果开发人员模式不可用/未启用,则需要 "
3651+
"*SeCreateSymbolicLinkPrivilege* 权限,或者该进程必须以管理员身份运行。"
36473652

36483653
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2820
36493654
msgid ""
36503655
":exc:`OSError` is raised when the function is called by an unprivileged "
36513656
"user."
3652-
msgstr ""
3657+
msgstr "当本函数由非特权账户调用时,抛出 :exc:`OSError` 异常。"
36533658

36543659
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2828
36553660
msgid ""
36563661
"Added the *dir_fd* argument, and now allow *target_is_directory* on non-"
36573662
"Windows platforms."
3658-
msgstr ""
3663+
msgstr "添加了 *dir_fd* 参数,现在在非 Windows 平台上允许 *target_is_directory* 参数。"
36593664

36603665
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2835
36613666
msgid "Added support for unelevated symlinks on Windows with Developer Mode."
3662-
msgstr ""
3667+
msgstr "针对启用了开发人员模式的 Windows,添加了非特权账户创建符号链接的支持。"
36633668

36643669
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2841
36653670
msgid "Force write of everything to disk."
3666-
msgstr ""
3671+
msgstr "强制将所有内容写入磁盘。"
36673672

36683673
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2850
36693674
msgid ""
36703675
"Truncate the file corresponding to *path*, so that it is at most *length* "
36713676
"bytes in size."
3672-
msgstr ""
3677+
msgstr "截断 *path* 对应的文件,以使其最大为 *length* 字节。"
36733678

36743679
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2856
36753680
msgid ""
@@ -3684,10 +3689,12 @@ msgid ""
36843689
" :func:`remove`; the ``unlink`` name is its traditional Unix name. Please "
36853690
"see the documentation for :func:`remove` for further information."
36863691
msgstr ""
3692+
"移除(删除)文件 *path*。该函数在语义上与 :func:`remove` 相同,``unlink`` 是其传统的 Unix 名称。请参阅 "
3693+
":func:`remove` 的文档以获取更多信息。"
36873694

36883695
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2884
36893696
msgid "Set the access and modified times of the file specified by *path*."
3690-
msgstr ""
3697+
msgstr "设置文件 *path* 的访问时间和修改时间。"
36913698

36923699
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2886
36933700
msgid ""

using/windows.po

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Meng Du <[email protected]>, 2019
99
# Shengjing Zhu <[email protected]>, 2019
1010
# ppcfish <[email protected]>, 2019
11-
# Freesand Leo <[email protected]>, 2019
11+
# Freesand Leo <[email protected]>, 2020
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2020-01-28 12:34+0000\n"
1919
"PO-Revision-Date: 2017-02-16 23:42+0000\n"
20-
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
20+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1151,20 +1151,23 @@ msgstr ""
11511151

11521152
#: /home/travis/build/python/cpython-doc-catalog/Doc/using/windows.rst:608
11531153
msgid "UTF-8 mode"
1154-
msgstr ""
1154+
msgstr "UTF-8 模式"
11551155

11561156
#: /home/travis/build/python/cpython-doc-catalog/Doc/using/windows.rst:612
11571157
msgid ""
11581158
"Windows still uses legacy encodings for the system encoding (the ANSI Code "
11591159
"Page). Python uses it for the default encoding of text files (e.g. "
11601160
":func:`locale.getpreferredencoding`)."
11611161
msgstr ""
1162+
"Windows 仍然使用传统编码格式作为系统的编码格式(ANSI 代码页)。 Python 使用它作为文本文件默认的编码格式 (即 "
1163+
":func:`locale.getpreferredencoding`)。"
11621164

11631165
#: /home/travis/build/python/cpython-doc-catalog/Doc/using/windows.rst:616
11641166
msgid ""
11651167
"This may cause issues because UTF-8 is widely used on the internet and most "
11661168
"Unix systems, including WSL (Windows Subsystem for Linux)."
11671169
msgstr ""
1170+
"这可能会造成问题,因为因特网和大多数 Unix 系统包括 WSL (Windows Subsystem for Linux) 广泛使用 UTF-8。"
11681171

11691172
#: /home/travis/build/python/cpython-doc-catalog/Doc/using/windows.rst:619
11701173
msgid ""
@@ -1174,10 +1177,13 @@ msgid ""
11741177
"enabling UTF-8 mode, and :ref:`setting-envvars` for how to modify "
11751178
"environment variables."
11761179
msgstr ""
1180+
"你可以使用 UTF-8 模式将默认的文本编码格式改为 UTF-8。 要启用 UTF-8 模式可以通过 ``-X utf8`` 命令行选项,或者 "
1181+
"``PYTHONUTF8=1`` 环境变量。 请参见 :envvar:`PYTHONUTF8` 了解如何启用 UTF-8 模式,并参见 :ref"
1182+
":`setting-envvars` 了解如何修改环境变量。"
11771183

11781184
#: /home/travis/build/python/cpython-doc-catalog/Doc/using/windows.rst:625
11791185
msgid "When UTF-8 mode is enabled:"
1180-
msgstr ""
1186+
msgstr "当 UTF-8 模式被启用时:"
11811187

11821188
#: /home/travis/build/python/cpython-doc-catalog/Doc/using/windows.rst:627
11831189
msgid ""

0 commit comments

Comments
 (0)