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

Skip to content

Commit d491100

Browse files
committed
1. Fix Typo '目錄'
2. Finish translate until venv.rst:218
1 parent 6def8e3 commit d491100

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

library/venv.po

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,15 @@ msgid ""
361361
msgstr ""
362362
"``system_site_packages`` -- 為一個 Boolean (布林值),並表明系統的"
363363
"Python site-packages 是否可以在環境中可用(預設為"
364-
"false)。"
364+
"``False``)。"
365365

366366
#: ../../library/venv.rst:154
367367
msgid ""
368368
"``clear`` -- a Boolean value which, if true, will delete the contents of any "
369369
"existing target directory, before creating the environment."
370370
msgstr ""
371371
"``clear`` -- 唯一個 Boolean (布林值),如果為 true,則在創造環境之前,刪除"
372-
"目標路徑內所有存在的內容。"
372+
"目標目錄內所有存在的內容。"
373373

374374
#: ../../library/venv.rst:157
375375
msgid ""
@@ -387,7 +387,7 @@ msgid ""
387387
msgstr ""
388388
"``upgrade`` -- 唯一個 Boolean (布林值),若為 true,則會在執行 Python 時"
389389
"為現有的環境進行升級。目的是讓 Python 可以"
390-
"升級到位(預設為 False)。"
390+
"升級到位(預設為 ``False``)。"
391391

392392
#: ../../library/venv.rst:164
393393
msgid ""
@@ -399,17 +399,18 @@ msgstr ""
399399
"虛擬環境之中。當有 ``--default-pip`` 的選項時,"
400400
"會使用 :mod:`ensurepip`。"
401401

402+
# fuzzy
402403
#: ../../library/venv.rst:168
403404
msgid ""
404405
"``prompt`` -- a String to be used after virtual environment is activated "
405406
"(defaults to ``None`` which means directory name of the environment would be "
406407
"used). If the special string ``\".\"`` is provided, the basename of the "
407408
"current directory is used as the prompt."
408409
msgstr ""
409-
"``prompt`` -- 為一個 String(字串) "
410-
""
411-
""
412-
""
410+
"``prompt`` -- 為一個 String(字串),該字串會在虛擬環境啟動時被使用。"
411+
"(預設為 ``None``,代表該環境的目錄名稱會被使用)"
412+
"倘若出現特殊字串 ``\".\"`` ,則當前目錄的 basename"
413+
" 會做為提示路徑使用。"
413414

414415
#: ../../library/venv.rst:173
415416
msgid "``upgrade_deps`` -- Update the base venv modules to the latest on PyPI"
@@ -432,10 +433,12 @@ msgid ""
432433
"Creators of third-party virtual environment tools will be free to use the "
433434
"provided :class:`EnvBuilder` class as a base class."
434435
msgstr ""
436+
"第三方虛擬環境工具的創造者可以自由地使用"
437+
" :class:`EnvBuilder` class(類別)作為 base class(基礎類別)使用"
435438

436439
#: ../../library/venv.rst:187
437440
msgid "The returned env-builder is an object which has a method, ``create``:"
438-
msgstr ""
441+
msgstr "回傳的 env-buuilder 為一個物件,且帶有一個 method(方法):``create``。"
439442

440443
#: ../../library/venv.rst:191
441444
msgid ""
@@ -444,19 +447,28 @@ msgid ""
444447
"environment. The ``create`` method will either create the environment in "
445448
"the specified directory, or raise an appropriate exception."
446449
msgstr ""
450+
"創造一個虛擬環境並指定目標目錄(絕對路徑或"
451+
"相對路徑到該目錄),也就是在該目錄中容納虛擬環境。"
452+
"``create`` method(方法)將會在指定的目錄下創建環境,"
453+
"或是觸發適當的例外。"
447454

448455
#: ../../library/venv.rst:197
449456
msgid ""
450457
"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks "
451458
"available for subclass customization::"
452459
msgstr ""
460+
":class:`EnvBuilder` class(類別)的``create`` method(方法)會闡述"
461+
"可用的 Hooks 以客製化 subclass (子類別)::"
453462

454463
#: ../../library/venv.rst:212
455464
msgid ""
456465
"Each of the methods :meth:`ensure_directories`, :meth:"
457466
"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :"
458467
"meth:`post_setup` can be overridden."
459468
msgstr ""
469+
"每個 methods(方法) :meth:`ensure_directories`, :meth:"
470+
"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` 及 :"
471+
"meth:`post_setup` 都可以被覆寫."
460472

461473
#: ../../library/venv.rst:218
462474
msgid ""
@@ -467,7 +479,12 @@ msgid ""
467479
"of the environment directory will be cleared and then all necessary "
468480
"subdirectories will be recreated."
469481
msgstr ""
470-
""
482+
"創造不存在的環境目錄及必要的子目錄,並回傳一個 context object。"
483+
"這個 context object 只是一個屬性 (例如:路徑) 的所有者"
484+
",可被其他 method(方法)使用。"
485+
"如果 :class:`EnvBuilder` 已被創造且帶有 ``clear=True`` 的引數,"
486+
"該環境目錄下的內容將被清空,以及所有必要的"
487+
"子目錄將被重新創造。"
471488

472489
#: ../../library/venv.rst:225
473490
msgid ""

0 commit comments

Comments
 (0)