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

Skip to content

Commit 063fda3

Browse files
[po] auto sync
1 parent 898c077 commit 063fda3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

library/zipapp.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ msgstr "要让应用程序能在 POSIX 平台上直接执行,需要指定所
307307
msgid ""
308308
"To replace the shebang line on an existing archive, create a modified "
309309
"archive using the :func:`create_archive` function::"
310-
msgstr ""
310+
msgstr "若要替换已有打包文件中的释伴行,请用 :func:`create_archive` 函数另建一个修改好的打包文件:"
311311

312312
#: ../../library/zipapp.rst:218
313313
msgid ""
@@ -318,10 +318,12 @@ msgid ""
318318
" such errors, but production code should do so. Also, this method will only"
319319
" work if the archive fits in memory::"
320320
msgstr ""
321+
"若要原地更新打包文件,可用 :class:`BytesIO` "
322+
"对象在内存中进行替换,然后再覆盖源文件。注意,原地覆盖文件会有风险,出错时会丢失原文件。这里没有考虑出错情况,但生产代码则应进行处理。另外,这种方案仅当内存足以容纳打包文件时才有意义:"
321323

322324
#: ../../library/zipapp.rst:236
323325
msgid "Specifying the Interpreter"
324-
msgstr ""
326+
msgstr "指定解释器程序"
325327

326328
#: ../../library/zipapp.rst:238
327329
msgid ""
@@ -330,6 +332,8 @@ msgid ""
330332
"Python launcher for Windows supports most common forms of POSIX ``#!`` line,"
331333
" but there are other issues to consider:"
332334
msgstr ""
335+
"注意,如果指定了解释器程序再发布应用程序打包文件,需要确保所用到的解释器是可移植的。Windows 的 Python 启动器支持大多数常见的 POSIX"
336+
" ``#!`` 行,但还需要考虑一些其他问题。"
333337

334338
#: ../../library/zipapp.rst:243
335339
msgid ""

0 commit comments

Comments
 (0)