@@ -8,15 +8,16 @@ msgstr ""
8
8
"Project-Id-Version : Python 3.11\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-05-09 00:15+0000\n "
11
- "PO-Revision-Date : 2018-05-23 16:15+0000 \n "
12
- "Last-Translator : Adrian Liaw <adrianliaw2000 @gmail.com>\n "
11
+ "PO-Revision-Date : 2023-07-09 15:09+0800 \n "
12
+ "Last-Translator : Po-Chuan Chen <present90308 @gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
15
15
"Language : zh_TW\n "
16
16
"MIME-Version : 1.0\n "
17
17
"Content-Type : text/plain; charset=UTF-8\n "
18
18
"Content-Transfer-Encoding : 8bit\n "
19
19
"Plural-Forms : nplurals=1; plural=0;\n "
20
+ "X-Generator : Poedit 3.3.2\n "
20
21
21
22
#: ../../library/venv.rst:2
22
23
msgid ":mod:`venv` --- Creation of virtual environments"
@@ -28,13 +29,13 @@ msgstr "**原始碼:**\\ :source:`Lib/venv/`"
28
29
29
30
#: ../../library/venv.rst:21
30
31
msgid ""
31
- "The :mod:`!venv` module supports creating lightweight \" virtual "
32
- "environments \" , each with their own independent set of Python packages "
33
- "installed in their :mod:`site` directories. A virtual environment is created "
34
- "on top of an existing Python installation, known as the virtual "
35
- "environment's \" base \" Python, and may optionally be isolated from the "
36
- "packages in the base environment, so only those explicitly installed in the "
37
- "virtual environment are available."
32
+ "The :mod:`!venv` module supports creating lightweight \" virtual environments "
33
+ "\" , each with their own independent set of Python packages installed in "
34
+ "their :mod:`site` directories. A virtual environment is created on top of an "
35
+ "existing Python installation, known as the virtual environment's \" base \" "
36
+ "Python, and may optionally be isolated from the packages in the base "
37
+ "environment, so only those explicitly installed in the virtual environment "
38
+ "are available."
38
39
msgstr ""
39
40
40
41
#: ../../library/venv.rst:29
@@ -68,13 +69,13 @@ msgstr ""
68
69
69
70
#: ../../library/venv.rst:43
70
71
msgid "Creating virtual environments"
71
- msgstr ""
72
+ msgstr "建立虛擬環境 "
72
73
73
74
#: ../../using/venv-create.inc:1
74
75
msgid ""
75
76
"Creation of :ref:`virtual environments <venv-def>` is done by executing the "
76
77
"command ``venv``::"
77
- msgstr ""
78
+ msgstr "建立 \\ :ref:`虛擬環境 <venv-def>` \\ 的方法是透過執行指令 ``venv``: "
78
79
79
80
#: ../../using/venv-create.inc:6
80
81
msgid ""
@@ -89,63 +90,81 @@ msgid ""
89
90
"this is ``Lib\\ site-packages``). If an existing directory is specified, it "
90
91
"will be re-used."
91
92
msgstr ""
93
+ "執行此命令會建立目標目錄(同時也會建立任何還不存在的父目錄)並在目錄中放置一個名為 "
94
+ "``pyvenv.cfg`` 的檔案,其中包含一個指向執行該命令的 Python 安裝路徑的 "
95
+ "``home`` 鍵(目標目錄的常見名稱為 ``.venv``)。同時,它會建立一個 ``bin`` "
96
+ "(在 Windows 上為 ``Scripts``)子目錄,其中包含一個 Python 二進位檔案的副本/"
97
+ "符號連結(根據建立環境時使用的平台或引數而定)。此外,它還會建立一個(最初為"
98
+ "空的) ``lib/pythonX.Y/site-packages`` 子目錄(在 Windows 上為 ``Lib\\ site-"
99
+ "packages``)。如果指定的目錄已存在,則將重新使用該目錄。"
92
100
93
101
#: ../../using/venv-create.inc:17
94
102
msgid ""
95
103
"``pyvenv`` was the recommended tool for creating virtual environments for "
96
104
"Python 3.3 and 3.4, and is :ref:`deprecated in Python 3.6 <whatsnew36-venv>`."
97
105
msgstr ""
106
+ "``pyvenv`` 是在 Python 3.3 和 3.4 中建立虛擬環境的推薦工具,但在 Python 3.6 "
107
+ "中已被\\ :ref:`棄用 <whatsnew36-venv>`。"
98
108
99
109
#: ../../using/venv-create.inc:22
100
110
msgid ""
101
111
"The use of ``venv`` is now recommended for creating virtual environments."
102
- msgstr ""
112
+ msgstr "目前建議使用 ``venv`` 來建立虛擬環境。 "
103
113
104
114
#: ../../using/venv-create.inc:27
105
115
msgid "On Windows, invoke the ``venv`` command as follows::"
106
- msgstr ""
116
+ msgstr "在 Windows 上,執行以下命令以使用 ``venv``: "
107
117
108
118
#: ../../using/venv-create.inc:31
109
119
msgid ""
110
120
"Alternatively, if you configured the ``PATH`` and ``PATHEXT`` variables for "
111
121
"your :ref:`Python installation <using-on-windows>`::"
112
122
msgstr ""
123
+ "或者,如你已經為你的 :ref:`Python 安裝 <using-on-windows>`\\ 配置了 ``PATH`` "
124
+ "和 ``PATHEXT`` 變數,則可以執行以下命令:"
113
125
114
126
#: ../../using/venv-create.inc:36
115
127
msgid "The command, if run with ``-h``, will show the available options::"
116
- msgstr ""
128
+ msgstr "如果使用 ``-h`` 選項執行該命令,將會顯示可用的選項: "
117
129
118
130
#: ../../using/venv-create.inc:70
119
131
msgid ""
120
132
"Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on "
121
133
"PyPI"
122
134
msgstr ""
135
+ "新增 ``--upgrade-deps`` 選項以將 pip 和 setuptools 升級至 PyPI 上的最新版本"
123
136
124
137
#: ../../using/venv-create.inc:73
125
138
msgid ""
126
139
"Installs pip by default, added the ``--without-pip`` and ``--copies`` "
127
140
"options"
128
- msgstr ""
141
+ msgstr "預設情況下安裝 pip,並新增了 ``--without-pip`` 和 ``--copies`` 選項 "
129
142
130
143
#: ../../using/venv-create.inc:77
131
144
msgid ""
132
145
"In earlier versions, if the target directory already existed, an error was "
133
146
"raised, unless the ``--clear`` or ``--upgrade`` option was provided."
134
147
msgstr ""
148
+ "在較早的版本中,如果目標目錄已存在,除非提供了 ``--clear`` 或 ``--upgrade`` "
149
+ "選項,否則會引發錯誤。"
135
150
136
151
#: ../../using/venv-create.inc:82
137
152
msgid ""
138
153
"While symlinks are supported on Windows, they are not recommended. Of "
139
154
"particular note is that double-clicking ``python.exe`` in File Explorer will "
140
155
"resolve the symlink eagerly and ignore the virtual environment."
141
156
msgstr ""
157
+ "雖然在 Windows 上支援符號連結,但並不建議使用。特別需要注意的是,在檔案總管中"
158
+ "按兩下 ``python.exe`` 會急切地解析符號連結並忽略虛擬環境。"
142
159
143
160
#: ../../using/venv-create.inc:87
144
161
msgid ""
145
162
"On Microsoft Windows, it may be required to enable the ``Activate.ps1`` "
146
163
"script by setting the execution policy for the user. You can do this by "
147
164
"issuing the following PowerShell command:"
148
165
msgstr ""
166
+ "在 Microsoft Windows 上,可能需要通過設置使用者的執行策略來啟用 ``Activate."
167
+ "ps1`` 腳本。你可以發出以下 PowerShell 命令來執行此操作:"
149
168
150
169
#: ../../using/venv-create.inc:91
151
170
msgid ""
@@ -157,26 +176,35 @@ msgid ""
157
176
"See `About Execution Policies <https://go.microsoft.com/fwlink/?"
158
177
"LinkID=135170>`_ for more information."
159
178
msgstr ""
179
+ "有關更多資訊,請參閱\\ `關於執行策略 <https://go.microsoft.com/fwlink/?"
180
+ "LinkID=135170>`_。"
160
181
161
182
#: ../../using/venv-create.inc:97
162
183
msgid ""
163
184
"The created ``pyvenv.cfg`` file also includes the ``include-system-site-"
164
185
"packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-"
165
186
"packages`` option, ``false`` otherwise."
166
187
msgstr ""
188
+ "被建立的 ``pyvenv.cfg`` 檔案還包括了 ``include-system-site-packages`` 的鍵,"
189
+ "如果使用 ``venv`` 執行時帶有 ``--system-site-packages`` 選項,則設置為 "
190
+ "``true``,否則設置為 ``false``。"
167
191
168
192
#: ../../using/venv-create.inc:101
169
193
msgid ""
170
194
"Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be "
171
195
"invoked to bootstrap ``pip`` into the virtual environment."
172
196
msgstr ""
197
+ "除非 ``--without-pip`` 選項被提供,否則將調用 :mod:`ensurepip` 來啟動 "
198
+ "``pip`` 到虛擬環境中。"
173
199
174
200
#: ../../using/venv-create.inc:104
175
201
msgid ""
176
202
"Multiple paths can be given to ``venv``, in which case an identical virtual "
177
203
"environment will be created, according to the given options, at each "
178
204
"provided path."
179
205
msgstr ""
206
+ "可以向 ``venv`` 提供多個路徑,這樣每個提供的路徑都將根據給定的選項建立一個相"
207
+ "同的虛擬環境。"
180
208
181
209
#: ../../library/venv.rst:50
182
210
msgid "How venvs work"
@@ -576,8 +604,8 @@ msgstr ""
576
604
577
605
#: ../../library/venv.rst:315
578
606
msgid ""
579
- "*path* is the path to a directory that should contain subdirectories "
580
- "\" common \" , \" posix\" , \" nt\" , each containing scripts destined for the bin "
607
+ "*path* is the path to a directory that should contain subdirectories \" common "
608
+ "\" , \" posix\" , \" nt\" , each containing scripts destined for the bin "
581
609
"directory in the environment. The contents of \" common\" and the directory "
582
610
"corresponding to :data:`os.name` are copied after some text replacement of "
583
611
"placeholders:"
0 commit comments