-
-
Notifications
You must be signed in to change notification settings - Fork 214
#444 Transalte API venv.rst:140 to venv.rst:218 #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2ccf590
Working on API venv.rst:140 to venv.rst:173
rockleona 6def8e3
Fix Typo on venv.rst:140
rockleona d491100
1. Fix Typo '目錄'
rockleona be41e5c
Fix Format with poedit
rockleona a4d5e87
Merge branch '3.11' into 3.11
mattwang44 86d0a36
Fix typo and suggestions
rockleona 6ce93d5
Merge branch '3.11' into 3.11
rockleona bca9294
Merge branch '3.11' into 3.11
rockleona d860d58
Update with reviewer's comment
rockleona 8a436c4
Update with reviewer's comment
rockleona b59047f
Merge branch '3.11' into 3.11
mattwang44 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgstr "" | |
"Project-Id-Version: Python 3.11\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-05-09 00:15+0000\n" | ||
"PO-Revision-Date: 2018-05-23 16:15+0000\n" | ||
"PO-Revision-Date: 2023-07-09 17:41+0800\n" | ||
"Last-Translator: Adrian Liaw <[email protected]>\n" | ||
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | ||
"tw)\n" | ||
|
@@ -17,6 +17,7 @@ msgstr "" | |
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"X-Generator: Poedit 3.3.2\n" | ||
|
||
#: ../../library/venv.rst:2 | ||
msgid ":mod:`venv` --- Creation of virtual environments" | ||
|
@@ -340,45 +341,58 @@ msgid "" | |
"customize environment creation according to their needs, the :class:" | ||
"`EnvBuilder` class." | ||
msgstr "" | ||
"將上述提到的高階 method(方法)作為簡單的 API 使用, 可為第三方虛擬環境創造者" | ||
"提供使用機制, 並依據他們的需求,客製化創造環境: :class:`EnvBuilder`(類" | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"別)。" | ||
|
||
#: ../../library/venv.rst:148 | ||
msgid "" | ||
"The :class:`EnvBuilder` class accepts the following keyword arguments on " | ||
"instantiation:" | ||
msgstr "" | ||
msgstr "進行實例化時,class(類別) :class:`EnvBuilder` 接受下列的關鍵字引數:" | ||
|
||
#: ../../library/venv.rst:151 | ||
msgid "" | ||
"``system_site_packages`` -- a Boolean value indicating that the system " | ||
"Python site-packages should be available to the environment (defaults to " | ||
"``False``)." | ||
msgstr "" | ||
"``system_site_packages`` -- 為一個 Boolean (布林值),並表明系統的Python " | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"site-packages 是否可以在環境中可用(預設為``False``)。" | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#: ../../library/venv.rst:154 | ||
msgid "" | ||
"``clear`` -- a Boolean value which, if true, will delete the contents of any " | ||
"existing target directory, before creating the environment." | ||
msgstr "" | ||
"``clear`` -- 唯一個 Boolean (布林值),如果為 true,則在創造環境之前,刪除目" | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"標目錄內所有存在的內容。" | ||
|
||
#: ../../library/venv.rst:157 | ||
msgid "" | ||
"``symlinks`` -- a Boolean value indicating whether to attempt to symlink the " | ||
"Python binary rather than copying." | ||
msgstr "" | ||
"``symlinks`` -- 唯一個 Boolean (布林值),並表明是否與 Python 二進制檔案建" | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"立符號連結而不是複製該檔案。" | ||
|
||
#: ../../library/venv.rst:160 | ||
msgid "" | ||
"``upgrade`` -- a Boolean value which, if true, will upgrade an existing " | ||
"environment with the running Python - for use when that Python has been " | ||
"upgraded in-place (defaults to ``False``)." | ||
msgstr "" | ||
"``upgrade`` -- 唯一個 Boolean (布林值),若為 true,則會在執行 Python 時為現" | ||
"有的環境進行升級。目的是讓 Python 可以升級到位(預設為 ``False``)。" | ||
|
||
#: ../../library/venv.rst:164 | ||
msgid "" | ||
"``with_pip`` -- a Boolean value which, if true, ensures pip is installed in " | ||
"the virtual environment. This uses :mod:`ensurepip` with the ``--default-" | ||
"pip`` option." | ||
msgstr "" | ||
"``with_pip`` -- 唯一個 Boolean (布林值),若為 true,則確保 pip 有安裝至虛擬" | ||
"環境之中。當有 ``--default-pip`` 的選項時,會使用 :mod:`ensurepip`。" | ||
|
||
#: ../../library/venv.rst:168 | ||
msgid "" | ||
|
@@ -387,10 +401,13 @@ msgid "" | |
"used). If the special string ``\".\"`` is provided, the basename of the " | ||
"current directory is used as the prompt." | ||
msgstr "" | ||
"``prompt`` -- 為一個 String(字串),該字串會在虛擬環境啟動時被使用。(預設" | ||
"為 ``None``,代表該環境的目錄名稱會被使用)倘若出現特殊字串 ``\".\"`` ,則當" | ||
"前目錄的 basename 會做為提示路徑使用。" | ||
|
||
#: ../../library/venv.rst:173 | ||
msgid "``upgrade_deps`` -- Update the base venv modules to the latest on PyPI" | ||
msgstr "" | ||
msgstr "``upgrade_deps`` -- 更新 base venv 模組至 PyPI 的最新版本" | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#: ../../library/venv.rst:175 ../../library/venv.rst:350 | ||
msgid "Added the ``with_pip`` parameter" | ||
|
@@ -409,10 +426,12 @@ msgid "" | |
"Creators of third-party virtual environment tools will be free to use the " | ||
"provided :class:`EnvBuilder` class as a base class." | ||
msgstr "" | ||
"第三方虛擬環境工具的創造者可以自由地使用 :class:`EnvBuilder` class(類別)作" | ||
"為 base class(基礎類別)使用." | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#: ../../library/venv.rst:187 | ||
msgid "The returned env-builder is an object which has a method, ``create``:" | ||
msgstr "" | ||
msgstr "回傳的 env-builder 為一個物件,且帶有一個 method(方法)``create``:" | ||
|
||
#: ../../library/venv.rst:191 | ||
msgid "" | ||
|
@@ -421,19 +440,27 @@ msgid "" | |
"environment. The ``create`` method will either create the environment in " | ||
"the specified directory, or raise an appropriate exception." | ||
msgstr "" | ||
"創造一個虛擬環境並指定目標目錄(絕對路徑或相對路徑到該目錄),也就是在該目錄" | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"中容納虛擬環境。``create`` method(方法)將會在指定的目錄下創建環境,或是觸發" | ||
"適當的例外。" | ||
|
||
#: ../../library/venv.rst:197 | ||
msgid "" | ||
"The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks " | ||
"available for subclass customization::" | ||
msgstr "" | ||
":class:`EnvBuilder` class(類別)的``create`` method(方法)會闡述可用的 " | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"Hooks 以客製化 subclass (子類別)::" | ||
|
||
#: ../../library/venv.rst:212 | ||
msgid "" | ||
"Each of the methods :meth:`ensure_directories`, :meth:" | ||
"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` and :" | ||
"meth:`post_setup` can be overridden." | ||
msgstr "" | ||
"每個 methods(方法) :meth:`ensure_directories`, :meth:" | ||
"`create_configuration`, :meth:`setup_python`, :meth:`setup_scripts` 及 :meth:" | ||
"`post_setup` 都可以被覆寫." | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#: ../../library/venv.rst:218 | ||
msgid "" | ||
|
@@ -444,6 +471,10 @@ msgid "" | |
"of the environment directory will be cleared and then all necessary " | ||
"subdirectories will be recreated." | ||
msgstr "" | ||
"創造不存在的環境目錄及必要的子目錄,並回傳一個 context object。這個 context " | ||
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
mattwang44 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"object 只是一個屬性 (例如:路徑) 的所有者,可被其他 method(方法)使用。如" | ||
"果 :class:`EnvBuilder` 已被創造且帶有 ``clear=True`` 的引數,該環境目錄下的內" | ||
"容將被清空,以及所有必要的子目錄將被重新創造。" | ||
|
||
#: ../../library/venv.rst:225 | ||
msgid "" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.