Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita61abba

Browse files
hsiangjenlimattwang44
authored andcommitted
trans: venv
1 parentdd4e9fb commita61abba

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

‎library/venv.po

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ msgid ""
238238
"activation script is platform-specific (:samp:`{<venv>}` must be replaced by "
239239
"the path to the directory containing the virtual environment):"
240240
msgstr""
241+
"虛擬環境可以透過位於二進制目錄中的腳本「啟用」(在 POSIX 上為 ``bin``;在 Windows 上為 ``Scripts``)"
242+
"這會將該目錄加入到你的 :envvar:`!PATH`,當你運行 `python` 時就會調用該環境的直譯器並且執行已安裝的腳本"
243+
",而不需要使用完整的路徑。"
244+
"啟動腳本的方式因平台而異(:samp:`{<venv>}` 需要替換成包含虛擬環境的目錄路徑)"
241245

242246
#:../../library/venv.rst:71
243247
msgid"Platform"
@@ -249,7 +253,7 @@ msgstr ""
249253

250254
#:../../library/venv.rst:71
251255
msgid"Command to activate virtual environment"
252-
msgstr""
256+
msgstr"啟動虛擬環境的指令"
253257

254258
#:../../library/venv.rst:73
255259
msgid"POSIX"
@@ -305,21 +309,21 @@ msgstr ":samp:`PS C:\\\\> {<venv>}\\\\Scripts\\\\Activate.ps1`"
305309

306310
#:../../library/venv.rst:86
307311
msgid":program:`fish` and :program:`csh` activation scripts."
308-
msgstr""
312+
msgstr":program:`fish` 和 :program:`csh` 啟動腳本。"
309313

310314
#:../../library/venv.rst:89
311315
msgid""
312316
"PowerShell activation scripts installed under POSIX for PowerShell Core "
313317
"support."
314-
msgstr""
318+
msgstr"PowerShell 的啟動腳本安裝在 POSIX 上支援 PowerShell Core。"
315319

316320
#:../../library/venv.rst:93
317321
msgid""
318322
"You don't specifically *need* to activate a virtual environment, as you can "
319323
"just specify the full path to that environment's Python interpreter when "
320324
"invoking Python. Furthermore, all scripts installed in the environment "
321325
"should be runnable without activating it."
322-
msgstr""
326+
msgstr"你不用特別開啟虛擬環境,你可以直接在調用 Python 直譯器時指定該環境的完整路徑。此外,所有安裝在環境裡的腳本都應該都可以在未啟用虛擬環境的情況下運行。"
323327

324328
#:../../library/venv.rst:99
325329
msgid""
@@ -341,6 +345,9 @@ msgid ""
341345
"VIRTUAL_ENV` cannot be relied upon to determine whether a virtual "
342346
"environment is being used."
343347
msgstr""
348+
"當虛擬環境被啟用時,:envvar:`!VIRTUAL_ENV` 環境變數會被設置為該環境的路徑。"
349+
"由於開啟虛擬環境不需要使用到 :envvar:`!VIRTUAL_ENV`。"
350+
"因此,無法依賴環境變數來判斷是否正在使用虛擬環境。"
344351

345352
#:../../library/venv.rst:114
346353
msgid""
@@ -363,7 +370,7 @@ msgid ""
363370
"You can deactivate a virtual environment by typing ``deactivate`` in your "
364371
"shell. The exact mechanism is platform-specific and is an internal "
365372
"implementation detail (typically, a script or shell function will be used)."
366-
msgstr""
373+
msgstr"你可以在 shell 輸入 ``deactivate`` 來關閉虛擬環境。具體的使用方式因平台而異,是內部實現的細節(通常會使用腳本或是 shell 函式)"
367374

368375
#:../../library/venv.rst:136
369376
msgid"API"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp