diff --git a/using/windows.po b/using/windows.po index d2b9ce2d6f..457b1950b3 100644 --- a/using/windows.po +++ b/using/windows.po @@ -1213,12 +1213,18 @@ msgid "" "include this install location, but be sure to validate this on your " "configuration." msgstr "" +"在無法安裝 MSIX 的情況下,例如某些較舊的管理用發佈平台,可以從 python.org 的" +"下載頁面取得 MSI。這個 MSI 沒有使用者介面,只能以每台電腦 (per-machine) 的方" +"式安裝到 Program Files 中的預設位置。它會嘗試修改系統的 :envvar:`PATH` 環境變" +"數以加入這個安裝位置,但請務必在你的設定中確認這一點。" #: ../../using/windows.rst:636 msgid "" "Windows Server 2019 is the only version of Windows that CPython supports " "that does not support MSIX. For Windows Server 2019, you should use the MSI." msgstr "" +"Windows Server 2019 是 CPython 所支援的 Windows 版本中唯一不支援 MSIX 的版" +"本。在 Windows Server 2019 上,你應該使用 MSI。" #: ../../using/windows.rst:639 msgid "" @@ -1227,6 +1233,9 @@ msgid "" "offline install index. See :ref:`pymanager-offline` and :ref:`pymanager-" "admin-config` for information on handling these scenarios." msgstr "" +"請注意,MSI 套件並未內含任何 runtime,因此除非同時建立離線安裝索引,否則不適" +"合用於離線環境的安裝。關於如何處理這些情況,請參閱\\ :ref:`pymanager-" +"offline` 和\\ :ref:`pymanager-admin-config`。" #: ../../using/windows.rst:644 msgid "" @@ -1237,6 +1246,11 @@ msgid "" "own system-wide modifications to :envvar:`PATH`, the registry, or the Start " "menu." msgstr "" +"由 MSI 安裝的 runtime 與由 MSIX 安裝的 runtime 是共用的,而且全部都只供個別使" +"用者 (per-user) 使用。Python 安裝管理員不支援以每台電腦的方式安裝 runtime。若" +"要模擬每台電腦的安裝,你可以以管理員身分使用 ``py install --target=``,並自行對 :envvar:`PATH`、登錄檔或「開始」功能表進行全系統的修" +"改。" #: ../../using/windows.rst:650 msgid "" @@ -1249,12 +1263,21 @@ msgid "" "Store. Attempting to run the executable directly from Program Files is not " "recommended." msgstr "" +"當 MSIX 已安裝,但在 :envvar:`PATH` 環境變數中找不到這些命令時,可以" +"在 :file:`%LocalAppData%\\\\Microsoft\\\\WindowsApps\\" +"\\PythonSoftwareFoundation.PythonManager_3847v3x7pw1km` " +"或 :file:`%LocalAppData%\\\\Microsoft\\\\WindowsApps\\" +"\\PythonSoftwareFoundation.PythonManager_qbz5n2kfra8p0` 底下找到它們,取決於" +"它是從 python.org 還是透過 Windows Store 安裝的。不建議直接從 Program Files " +"執行可執行檔。" #: ../../using/windows.rst:659 msgid "" "To programmatically install the Python install manager, it is easiest to use " "WinGet, which is included with all supported versions of Windows:" msgstr "" +"若要以程式化的方式安裝 Python 安裝管理員,最簡單的方法是使用 WinGet,所有受支" +"援的 Windows 版本都已內建:" #: ../../using/windows.rst:662 msgid "" @@ -1264,6 +1287,11 @@ msgid "" "# Optionally run the configuration checker and accept all changes\n" "$> py install --configure -y" msgstr "" +"$> winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-" +"interactivity\n" +"\n" +"# 可選:執行設定檢查工具並接受所有變更\n" +"$> py install --configure -y" #: ../../using/windows.rst:669 msgid "" @@ -1274,12 +1302,18 @@ msgid "" "as the downloaded MSIX can be installed by launching or using the commands " "below." msgstr "" +"若要下載 Python 安裝管理員並在另一台電腦上安裝,下列 WinGet 命令會從 Store 將" +"所需的檔案下載到你的「下載」目錄(加上 ``-d `` 可自訂輸出位置)。這" +"也會產生一個看似不必要的 YAML 檔案,因為下載的 MSIX 可以直接執行,或使用下列" +"命令來安裝。" #: ../../using/windows.rst:675 msgid "" "$> winget download 9NQ7512CXL7T -e --skip-license --accept-package-" "agreements --accept-source-agreements" msgstr "" +"$> winget download 9NQ7512CXL7T -e --skip-license --accept-package-" +"agreements --accept-source-agreements" #: ../../using/windows.rst:679 msgid "" @@ -1287,6 +1321,8 @@ msgid "" "`Add-AppxPackage`_ and `Remove-AppxPackage`_ PowerShell cmdlets are " "recommended:" msgstr "" +"若要只使用 PowerShell 以程式化的方式安裝或解除安裝 MSIX,建議使用 `Add-" +"AppxPackage`_ 和 `Remove-AppxPackage`_ 這兩個 PowerShell cmdlet:" #: ../../using/windows.rst:682 msgid "" @@ -1307,6 +1343,9 @@ msgid "" "MSIX on python.org, and is only recommended for cases where installing via " "the Store (interactively or using WinGet) is not possible." msgstr "" +"將 AppInstaller 檔案傳給 Add-AppxPackage 命令,就能讓 Windows 下載並安裝最新" +"版本。這會使用 python.org 上的 MSIX 進行安裝,只建議在無法透過 Store(以互動" +"方式或使用 WinGet)安裝的情況下使用。" #: ../../using/windows.rst:693 msgid "" @@ -1324,6 +1363,10 @@ msgid "" "the native Windows `PackageManager`_ class, or the documentation and support " "for your deployment tool." msgstr "" +"也可以使用其他工具和 API 為電腦上的所有使用者佈建 (provision) MSIX 套件,但 " +"Python 不將此視為受支援的情境。我們建議參考 PowerShell 的 `Add-" +"AppxProvisionedPackage`_ cmdlet、Windows 原生的 `PackageManager`_ 類別,或你" +"所用部署工具的說明文件與支援。" #: ../../using/windows.rst:703 msgid "" @@ -1332,6 +1375,9 @@ msgid "" "without being a logged in user. When using the MSIX, the latest version of " "Python will be available for all users to install without network access." msgstr "" +"不論使用哪種安裝方式,使用者仍需要自行安裝 Python 本身,因為在沒有使用者登入" +"的情況下,無法觸發這些安裝。使用 MSIX 時,最新版本的 Python 可供所有使用者在" +"沒有網路連線的情況下安裝。" #: ../../using/windows.rst:708 msgid "" @@ -1342,10 +1388,13 @@ msgid "" "are no licensing restrictions on the Python install manager that would " "prevent using the Store package in this way." msgstr "" +"請注意,從 Store 和從 Python 網站下載的 MSIX 有些微差異,無法同時安裝。我們建" +"議盡可能使用上述的 WinGet 命令從 Store 下載套件,以降低設定出互相衝突之安裝的" +"風險。Python 安裝管理員沒有任何授權限制會阻止以這種方式使用 Store 套件。" #: ../../using/windows.rst:719 msgid "Administrative configuration" -msgstr "" +msgstr "管理用設定" #: ../../using/windows.rst:721 msgid "" @@ -1355,6 +1404,9 @@ msgid "" "content. All of the above configuration options may be set, as well as those " "below." msgstr "" +"有許多選項可能對管理員覆寫 Python 安裝管理員的設定很有用。它們可以用來提供本" +"機快取、停用特定種類的捷徑、覆寫內建的內容。上述所有設定選項以及下列選項都可" +"以設定。" #: ../../using/windows.rst:726 msgid "" @@ -1368,6 +1420,12 @@ msgid "" "Registry key overrides will replace any other configured setting, while " "``base_config`` allows users to further modify settings they may need." msgstr "" +"可以在登錄檔中的 :file:`HKEY_LOCAL_MACHINE\\\\Software\\\\Policies\\" +"\\Python\\\\PyManager` 底下設定值來覆寫設定選項,其中值的名稱對應設定鍵,值的" +"型別為 ``REG_SZ``。請注意,這個機碼本身也可以自訂,但只能透過修改隨 Python 安" +"裝管理員發佈的核心設定檔來達成。不過我們建議登錄值只用來將 ``base_config`` 設" +"定為一個包含完整覆寫內容的 JSON 檔案。登錄機碼的覆寫會取代所有其他已設定的" +"值,而 ``base_config`` 則讓使用者能進一步修改他們可能需要的設定。" #: ../../using/windows.rst:736 msgid "" @@ -1380,16 +1438,21 @@ msgid "" "longer be used. If you override the value to ``%CONFIRM%``, then that " "environment variable will be used instead." msgstr "" +"請注意,大多數有環境變數的設定之所以支援這些變數,是因為它們的預設值指定了該" +"變數。如果你覆寫了這些設定,環境變數就不會再生效,除非你用另一個環境變數來覆" +"寫。例如 ``confirm`` 的預設值實際上就是 ``%PYTHON_MANAGER_CONFIRM%``,它會在" +"載入時解析該變數。如果你把值覆寫為 ``yes``,就不會再使用該環境變數;如果你把" +"值覆寫為 ``%CONFIRM%``,則會改用那個環境變數。" #: ../../using/windows.rst:745 msgid "" "Configuration settings that are paths are interpreted as relative to the " "directory containing the configuration file that specified them." -msgstr "" +msgstr "屬於路徑的設定值,會被解讀為相對於指定它們的設定檔所在的目錄。" #: ../../using/windows.rst:752 msgid "Administrative configuration options" -msgstr "" +msgstr "管理用設定選項" #: ../../using/windows.rst:759 msgid "``base_config``" @@ -1400,6 +1463,7 @@ msgid "" "The highest priority configuration file to read. Note that only the built-in " "configuration file and the registry can modify this setting." msgstr "" +"優先順序最高、要讀取的設定檔。請注意,只有內建設定檔和登錄檔可以修改此設定。" #: ../../using/windows.rst:764 msgid "``user_config``" @@ -1407,7 +1471,7 @@ msgstr "``user_config``" #: ../../using/windows.rst:765 msgid "The second configuration file to read." -msgstr "" +msgstr "第二個要讀取的設定檔。" #: ../../using/windows.rst:767 msgid "``additional_config``" @@ -1415,7 +1479,7 @@ msgstr "``additional_config``" #: ../../using/windows.rst:768 msgid "The third configuration file to read." -msgstr "" +msgstr "第三個要讀取的設定檔。" #: ../../using/windows.rst:770 msgid "``registry_override_key``" @@ -1425,7 +1489,7 @@ msgstr "``registry_override_key``" msgid "" "Registry location to check for overrides. Note that only the built-in " "configuration file can modify this setting." -msgstr "" +msgstr "要檢查覆寫值的登錄檔位置。請注意,只有內建設定檔可以修改此設定。" #: ../../using/windows.rst:774 msgid "``bundled_dir``" @@ -1433,7 +1497,7 @@ msgstr "``bundled_dir``" #: ../../using/windows.rst:775 msgid "Read-only directory containing locally cached files." -msgstr "" +msgstr "包含本機快取檔案的唯讀目錄。" #: ../../using/windows.rst:777 msgid "``install.fallback_source``" @@ -1442,7 +1506,7 @@ msgstr "``install.fallback_source``" #: ../../using/windows.rst:778 msgid "" "Path or URL to an index to consult when the main index cannot be accessed." -msgstr "" +msgstr "當無法存取主要索引時要參考的索引路徑或 URL。" #: ../../using/windows.rst:780 msgid "``install.enable_shortcut_kinds``" @@ -1453,6 +1517,8 @@ msgid "" "Comma-separated list of shortcut kinds to allow (e.g. ``\"pep514,start\"``). " "Enabled shortcuts may still be disabled by ``disable_shortcut_kinds``." msgstr "" +"要允許的捷徑種類清單,以逗號分隔(例如 ``\"pep514,start\"``)。已啟用的捷徑仍" +"可能被 ``disable_shortcut_kinds`` 停用。" #: ../../using/windows.rst:784 msgid "``install.disable_shortcut_kinds``" @@ -1464,10 +1530,12 @@ msgid "" "start\"``). Disabled shortcuts are not reactivated by " "``enable_shortcut_kinds``." msgstr "" +"要排除的捷徑種類清單,以逗號分隔(例如 ``\"pep514,start\"``)。已停用的捷徑不" +"會被 ``enable_shortcut_kinds`` 重新啟用。" #: ../../using/windows.rst:789 msgid "``install.hard_link_entrypoints``" -msgstr "" +msgstr "``install.hard_link_entrypoints``" #: ../../using/windows.rst:790 msgid "" @@ -1477,6 +1545,10 @@ msgid "" "default, true. Disabling this may be necessary for troubleshooting or " "systems that have issues with file links." msgstr "" +"設為 true 時,全域捷徑會使用硬連結以節省磁碟空間;設為 false 則會改為複製每個" +"捷徑的可執行檔。變更此設定後,你必須執行 ``py install --refresh --force`` 來" +"更新現有的命令。預設為 true。在疑難排解,或是在檔案連結有問題的系統上,可能需" +"要停用此設定。" #: ../../using/windows.rst:797 msgid "``pep514_root``" @@ -1487,6 +1559,8 @@ msgid "" "Registry location to read and write PEP 514 entries into. By default, :file:" "`HKEY_CURRENT_USER\\\\Software\\\\Python`." msgstr "" +"讀取和寫入 PEP 514 項目的登錄檔位置。預設為 :file:`HKEY_CURRENT_USER\\" +"\\Software\\\\Python`。" #: ../../using/windows.rst:801 msgid "``start_folder``" @@ -1497,6 +1571,8 @@ msgid "" "Start menu folder to write shortcuts into. By default, ``Python``. This path " "is relative to the user's Programs folder." msgstr "" +"要寫入捷徑的「開始」功能表資料夾。預設為 ``Python``。這個路徑是相對於使用者的" +"「程式集」資料夾。" #: ../../using/windows.rst:806 msgid "``virtual_env``" @@ -1507,6 +1583,8 @@ msgid "" "Path to the active virtual environment. By default, this is " "``%VIRTUAL_ENV%``, but may be set empty to disable venv detection." msgstr "" +"目前啟用之虛擬環境的路徑。預設為 ``%VIRTUAL_ENV%``,但可以設為空值來停用虛擬" +"環境偵測。" #: ../../using/windows.rst:811 msgid "``shebang_can_run_anything_silently``" @@ -1517,10 +1595,11 @@ msgid "" "True to suppress visible warnings when a shebang launches an application " "other than a Python runtime." msgstr "" +"設為 true 時,在 shebang 啟動 Python runtime 以外的應用程式時,不顯示警告。" #: ../../using/windows.rst:815 msgid "``source_settings``" -msgstr "" +msgstr "``source_settings``" #: ../../using/windows.rst:816 msgid "" @@ -1529,16 +1608,21 @@ msgid "" "overwritten, but individual settings are not merged. These settings are " "currently only for :ref:`index signatures `." msgstr "" +"從來源 URL 對應到該索引專屬設定的對映。當多個設定檔都包含這個區段時,會新增或" +"覆寫各個 URL 的設定,但個別設定不會合併。這些設定目前只用於\\ :ref:`索引簽章 " +"`。" #: ../../using/windows.rst:826 ../../using/windows.rst:1803 msgid "Installing free-threaded binaries" -msgstr "" +msgstr "安裝自由執行緒版本" #: ../../using/windows.rst:830 msgid "" "Pre-built distributions of the free-threaded build are available by " "installing tags with the ``t`` suffix." msgstr "" +"安裝帶有 ``t`` 後綴的標籤,即可取得預先建置好的自由執行緒 (free-threaded) 版" +"本。" #: ../../using/windows.rst:833 msgid "" @@ -1558,10 +1642,13 @@ msgid "" "to your :envvar:`PATH` environment variable, the ``python3.14t.exe`` " "commands." msgstr "" +"它會像一般情況一樣安裝並註冊。如果你沒有安裝其他 runtime,``python`` 就會啟動" +"這個版本。否則你需要使用 ``py -V:3.14t ...``,或者如果你已將全域別名目錄加" +"入 :envvar:`PATH` 環境變數,則可以使用 ``python3.14t.exe`` 命令。" #: ../../using/windows.rst:848 msgid "Index signatures" -msgstr "" +msgstr "索引簽章" #: ../../using/windows.rst:852 msgid "" @@ -1573,6 +1660,10 @@ msgid "" "long as the client operating system already trusts its certification " "authority (root CA)." msgstr "" +"索引檔案可以加上簽章以偵測竄改。簽章是一個與索引位於相同 URL、在檔名後加上 " +"``.cat`` 的目錄檔 (catalog file)。目錄檔應包含對應索引檔案的雜湊值,並以有效" +"的 Authenticode 簽章簽署。這讓標準工具(在 Windows 上)能夠產生簽章,而且只要" +"用戶端作業系統已經信任其憑證授權單位(根 CA),任何憑證都可以使用。" #: ../../using/windows.rst:859 msgid "" @@ -1582,6 +1673,10 @@ msgid "" "``requires_signature`` set to true. When the setting exists in local " "configuration, even when false, settings in the index are ignored." msgstr "" +"只有在本機設定的 ``source_settings`` 區段包含該索引 URL 且 " +"``requires_signature`` 為 true,或索引 JSON 中的 ``requires_signature`` 設為 " +"true 時,才會下載並檢查索引簽章。當本機設定中存在此設定時,即使其值為 false," +"也會忽略索引中的設定。" #: ../../using/windows.rst:865 msgid "" @@ -1593,6 +1688,11 @@ msgid "" "for the common name, ``O=`` for the organizational unit, and ``C=`` for the " "publisher's country." msgstr "" +"除了要求有效的簽章之外,``required_root_subject`` 和 " +"``required_publisher_subject`` 設定還可以依據憑證的主體 (Subject) 欄位,進一" +"步限制可接受的簽章。設定中指定的任何屬性都必須與憑證中的屬性相符(憑證中額外" +"的屬性會被忽略)。常見的屬性有代表一般名稱的 ``CN=``、代表組織單位的 ``O=``," +"以及代表發行者所在國家的 ``C=``。" #: ../../using/windows.rst:873 msgid "" @@ -1603,6 +1703,10 @@ msgid "" "authentication). In combination with a specific root CA, this provides " "another mechanism to verify a legitimate signature." msgstr "" +"最後,``required_publisher_eku`` 設定可以要求發行者憑證必須被指派特定的增強金" +"鑰使用方法 (Enhanced Key Usage, EKU)。例如 EKU ``1.3.6.1.5.5.7.3.3`` 表示該憑" +"證是用於程式碼簽署(而不是伺服器或用戶端驗證)。搭配特定的根 CA,這提供了另一" +"種驗證簽章是否合法的機制。" #: ../../using/windows.rst:880 msgid "" @@ -1612,6 +1716,10 @@ msgid "" "by that root. The signature for this case would be found at ``https://www." "python.org/ftp/python/index-windows.json.cat``." msgstr "" +"以下是設定檔中 ``source_settings`` 區段的範例。在這個例子中,來源的發行者是" +"由 Microsoft Identity Verification 根憑證與該根憑證所指派的 EKU 組合唯一識" +"別。這個例子的簽章會位於 ``https://www.python.org/ftp/python/index-" +"windows.json.cat``。" #: ../../using/windows.rst:886 msgid "" @@ -1628,6 +1736,18 @@ msgid "" " }\n" "}" msgstr "" +"{\n" +" \"source_settings\": {\n" +" \"https://www.python.org/ftp/python/index-windows.json\": {\n" +" \"requires_signature\": true,\n" +" \"required_root_subject\": \"CN=Microsoft Identity Verification Root " +"Certificate Authority 2020\",\n" +" \"required_publisher_subject\": \"CN=Python Software Foundation\",\n" +" \"required_publisher_eku\": " +"\"1.3.6.1.4.1.311.97.608394634.79987812.305991749.578777327\"\n" +" }\n" +" }\n" +"}" #: ../../using/windows.rst:899 msgid "" @@ -1636,6 +1756,9 @@ msgid "" "valid and have a specific common name in the publisher's certificate, but no " "other checks are used." msgstr "" +"同樣的設定也可以改為寫在 ``index.json`` 檔案中。在這個例子裡省略了根憑證和 " +"EKU,表示簽章必須有效,且發行者憑證中必須有特定的一般名稱,但不會進行其他檢" +"查。" #: ../../using/windows.rst:904 msgid "" @@ -1647,6 +1770,13 @@ msgid "" " ]\n" "}" msgstr "" +"{\n" +" \"requires_signature\": true,\n" +" \"required_publisher_subject\": \"CN=Python Software Foundation\",\n" +" \"versions\": [\n" +" // ...\n" +" ]\n" +"}" #: ../../using/windows.rst:914 msgid "" @@ -1656,6 +1786,9 @@ msgid "" "used frequently, so that unauthorised modifications to the feed cannot " "disable verification." msgstr "" +"使用來源內部的設定時,會通知使用者,並在日誌檔或詳細輸出中顯示這些設定。對於" +"會經常使用的來源,建議將這些設定複製到本機設定檔中,這樣對來源未經授權的修改" +"就無法停用驗證。" #: ../../using/windows.rst:919 msgid "" @@ -1664,6 +1797,8 @@ msgid "" "``source_settings`` in a mandatory configuration file (see :ref:`pymanager-" "admin-config`)." msgstr "" +"無法在來源中或透過設定檔覆寫簽章檔案的位置。管理員可以在強制性的設定檔中提供" +"自己的 ``source_settings``\\ (請參閱\\ :ref:`pymanager-admin-config`)。" #: ../../using/windows.rst:924 msgid "" @@ -1673,6 +1808,9 @@ msgid "" "configuration in this scenario, you must provide a configuration file that " "disables signature checking for that feed." msgstr "" +"如果簽章驗證失敗,你會收到通知,並被詢問是否繼續。當不允許互動式確認時(例如" +"因為指定了 ``--yes``),一律會中止。在這種情況下,若要使用設定無效的來源,你" +"必須提供一個設定檔來停用該來源的簽章檢查。" #: ../../using/windows.rst:930 msgid "" @@ -1682,10 +1820,15 @@ msgid "" " }\n" "}" msgstr "" +"\"source_settings\": {\n" +" \"https://www.example.com/feed-with-invalid-signature.json\": {\n" +" \"requires_signature\": false\n" +" }\n" +"}" #: ../../using/windows.rst:940 msgid "Proxy settings" -msgstr "" +msgstr "代理伺服器設定" #: ../../using/windows.rst:944 msgid "" @@ -1693,6 +1836,8 @@ msgid "" "settings, including automatic authentication. For most users, this behaves " "the same as your browser and other applications." msgstr "" +"預設情況下,Python 安裝管理員會使用你系統層級的代理伺服器設定,包括自動驗證。" +"對大多數使用者來說,這和你的瀏覽器及其他應用程式的行為相同。" #: ../../using/windows.rst:948 msgid "" @@ -1702,6 +1847,9 @@ msgid "" "use the variables, so use caution before setting them globally for your " "entire machine." msgstr "" +"若要覆寫這些設定,請使用 ``NO_PROXY``、``HTTP_PROXY`` 和 ``HTTPS_PROXY`` 環境" +"變數。這些變數應在使用 Python 安裝管理員之前,於終端機工作階段中設定。其他應" +"用程式也可能使用這些變數,因此在為整台電腦全域設定它們之前請謹慎考慮。" #: ../../using/windows.rst:954 msgid "" @@ -1709,6 +1857,8 @@ msgid "" "proxy. Use this to bypass your system's default proxy setting and attempt to " "access the index server directly." msgstr "" +"將 ``NO_PROXY`` 設為任何非空值會停用所有代理伺服器。可以用它來略過系統預設的" +"代理伺服器設定,並嘗試直接存取索引伺服器。" #: ../../using/windows.rst:958 msgid "" @@ -1717,6 +1867,9 @@ msgid "" "connections will be using HTTPS, and so this is the usual setting to " "override." msgstr "" +"將 ``HTTPS_PROXY`` 設為像 ``example.com:8080`` 這樣的字串,所有 HTTPS 連線都" +"會連到該代理伺服器。對於預設索引,所有連線都會使用 HTTPS,因此這通常就是要覆" +"寫的設定。" #: ../../using/windows.rst:962 msgid "" @@ -1724,6 +1877,8 @@ msgid "" "server that does not use encrypted connections, but does require the default " "proxy server to be overridden. It follows the same format as ``HTTPS_PROXY``." msgstr "" +"如果你使用的私人索引伺服器不使用加密連線,但又需要覆寫預設的代理伺服器,則可" +"能需要 ``HTTP_PROXY`` 變數。它的格式與 ``HTTPS_PROXY`` 相同。" #: ../../using/windows.rst:966 msgid "" @@ -1732,10 +1887,12 @@ msgid "" "credentials. Only one set of credentials will be used for both types of " "proxy." msgstr "" +"兩種設定中都可以嵌入認證資訊,不過當 ``HTTPS_PROXY`` 中嵌入了認證資訊時,會優" +"先使用它。兩種代理伺服器都只會使用一組認證資訊。" #: ../../using/windows.rst:973 ../../using/windows.rst:985 msgid "Troubleshooting" -msgstr "" +msgstr "疑難排解" #: ../../using/windows.rst:975 msgid "" @@ -1745,24 +1902,30 @@ msgid "" "including any relevant log files (written to your :file:`%TEMP%` directory " "by default)." msgstr "" +"如果你的 Python 安裝管理員似乎無法正常運作,請依序嘗試以下的測試與修正方法," +"看看是否有幫助。如果仍無法解決,請到\\ `我們的問題追蹤系統 `_ 回報問題,並附上相關的日誌檔(預設寫入" +"你的 :file:`%TEMP%` 目錄)。" #: ../../using/windows.rst:989 msgid "Symptom" -msgstr "" +msgstr "症狀" #: ../../using/windows.rst:990 msgid "Things to try" -msgstr "" +msgstr "可以嘗試的方法" #: ../../using/windows.rst:992 msgid "" "``python`` gives me a \"command not found\" error or opens the Store app " "when I type it in my terminal." msgstr "" +"在終端機中輸入 ``python`` 時,出現「找不到命令」的錯誤,或是開啟了 Store 應用" +"程式。" #: ../../using/windows.rst:994 ../../using/windows.rst:1013 msgid "Did you :ref:`install the Python install manager `?" -msgstr "" +msgstr "你是否已經\\ :ref:`安裝 Python 安裝管理員 `?" #: ../../using/windows.rst:997 ../../using/windows.rst:1016 msgid "" @@ -1771,10 +1934,13 @@ msgid "" "disabling and re-enabling to refresh the command. The \"Python (default " "windowed)\" and \"Python install manager\" commands may also need refreshing." msgstr "" +"點選「開始」,開啟「管理應用程式執行別名」,並確認「Python (default)」的別名" +"已啟用。如果已經啟用,請試著先停用再重新啟用以重新整理命令。「Python " +"(default windowed)」和「Python install manager」命令可能也需要重新整理。" #: ../../using/windows.rst:1004 msgid "Check that the ``py`` and ``pymanager`` commands work." -msgstr "" +msgstr "確認 ``py`` 和 ``pymanager`` 命令可以正常運作。" #: ../../using/windows.rst:1007 ../../using/windows.rst:1023 msgid "" @@ -1783,17 +1949,20 @@ msgid "" "this entry once by default, after other user paths. If removed, shortcuts " "will not be found." msgstr "" +"確認你的 :envvar:`PATH` 變數中有 ``%UserProfile%" +"\\AppData\\Local\\Microsoft\\WindowsApps`` 這個項目。作業系統預設會在其他使用" +"者路徑之後加入一次這個項目。如果它被移除了,就會找不到捷徑。" #: ../../using/windows.rst:1012 msgid "" "``py`` gives me a \"command not found\" error when I type it in my terminal." -msgstr "" +msgstr "在終端機中輸入 ``py`` 時,出現「找不到命令」的錯誤。" #: ../../using/windows.rst:1028 msgid "" "``py`` gives me a \"can't open file\" error when I type commands in my " "terminal." -msgstr "" +msgstr "在終端機中輸入命令時,``py`` 出現「can't open file」錯誤。" #: ../../using/windows.rst:1030 msgid "" @@ -1801,26 +1970,33 @@ msgid "" "priority over the Python install manager. To remove, click Start, open " "\"Installed apps\", search for \"Python launcher\" and uninstall it." msgstr "" +"這通常表示你安裝了舊版啟動器,而且它的優先順序高於 Python 安裝管理員。若要移" +"除它,請點選「開始」,開啟「已安裝的應用程式」,搜尋「Python launcher」並將它" +"解除安裝。" #: ../../using/windows.rst:1035 msgid "``python`` doesn't launch the same runtime as ``py``" -msgstr "" +msgstr "``python`` 啟動的 runtime 與 ``py`` 不同" #: ../../using/windows.rst:1036 msgid "" "Click Start, open \"Installed apps\", look for any existing Python runtimes, " "and either remove them or Modify and disable the :envvar:`PATH` options." msgstr "" +"點選「開始」,開啟「已安裝的應用程式」,尋找任何已存在的 Python runtime,然後" +"將它們移除,或選擇「修改」並停用 :envvar:`PATH` 選項。" #: ../../using/windows.rst:1040 msgid "" "Click Start, open \"Manage app execution aliases\", and check that your " "``python.exe`` alias is set to \"Python (default)\"" msgstr "" +"點選「開始」,開啟「管理應用程式執行別名」,並確認你的 ``python.exe`` 別名設" +"定為「Python (default)」" #: ../../using/windows.rst:1043 msgid "``python`` and ``py`` don't launch the runtime I expect" -msgstr "" +msgstr "``python`` 和 ``py`` 沒有啟動我預期的 runtime" #: ../../using/windows.rst:1044 msgid "" @@ -1828,6 +2004,8 @@ msgid "" "``default_tag`` configuration. The ``py list`` command will show your " "default based on these settings." msgstr "" +"檢查你的 :envvar:`PYTHON_MANAGER_DEFAULT` 環境變數或 ``default_tag`` 設定。" +"``py list`` 命令會根據這些設定顯示你的預設版本。" #: ../../using/windows.rst:1049 msgid "" @@ -1835,6 +2013,8 @@ msgid "" "of unmanaged installs. Use ``py install`` to install the runtime you expect, " "or configure your default tag." msgstr "" +"由 Python 安裝管理員管理的安裝,會優先於未受管理的安裝被選用。請使用 ``py " +"install`` 安裝你預期的 runtime,或設定你的預設標籤。" #: ../../using/windows.rst:1055 msgid "" @@ -1843,28 +2023,35 @@ msgid "" "default tag or uninstall the prerelease runtime and reinstall it using ``py " "install``." msgstr "" +"不是由 Python 安裝管理員管理的預發布版本與實驗性安裝,可能會優先於穩定版本被" +"選用。請設定你的預設標籤,或解除安裝該預發布版本的 runtime,再使用 ``py " +"install`` 重新安裝。" #: ../../using/windows.rst:1060 msgid "" "``pythonw`` or ``pyw`` don't launch the same runtime as ``python`` or ``py``" -msgstr "" +msgstr "``pythonw`` 或 ``pyw`` 啟動的 runtime 與 ``python`` 或 ``py`` 不同" #: ../../using/windows.rst:1061 msgid "" "Click Start, open \"Manage app execution aliases\", and check that your " "``pythonw.exe`` and ``pyw.exe`` aliases are consistent with your others." msgstr "" +"點選「開始」,開啟「管理應用程式執行別名」,並確認你的 ``pythonw.exe`` 和 " +"``pyw.exe`` 別名與其他別名一致。" #: ../../using/windows.rst:1064 msgid "" "``pip`` gives me a \"command not found\" error when I type it in my terminal." -msgstr "" +msgstr "在終端機中輸入 ``pip`` 時,出現「找不到命令」的錯誤。" #: ../../using/windows.rst:1065 ../../using/windows.rst:1077 msgid "" "Have you activated a virtual environment? Run the ``." "venv\\Scripts\\activate`` script in your terminal to activate." msgstr "" +"你是否已經啟用虛擬環境?請在終端機中執行 ``.venv\\Scripts\\activate`` 腳本來" +"啟用。" #: ../../using/windows.rst:1069 msgid "" @@ -1874,10 +2061,14 @@ msgid "" "`PATH` (it will be shown in the command output if it is not) should make " "commands such as ``pip`` (and other installed packages) available." msgstr "" +"套件可能已經可用,但缺少產生的可執行檔。我們建議改用 ``python -m pip`` 命令。" +"執行 ``py install --refresh`` 並確認全域捷徑目錄位於 :envvar:`PATH` 上(如果" +"不在,命令輸出中會顯示出來),應該就能使用 ``pip``\\ (以及其他已安裝套件)等" +"命令。" #: ../../using/windows.rst:1076 msgid "I installed a package with ``pip`` but its command is not found." -msgstr "" +msgstr "我用 ``pip`` 安裝了套件,但找不到它的命令。" #: ../../using/windows.rst:1081 msgid "" @@ -1886,10 +2077,12 @@ msgid "" "shortcuts removed. Run ``py install --refresh`` to update the global " "shortcuts for newly installed packages." msgstr "" +"Python 安裝管理員不會自動為新的套件建立全域捷徑;同樣地,解除安裝的套件也不會" +"移除其捷徑。請執行 ``py install --refresh`` 來更新新安裝套件的全域捷徑。" #: ../../using/windows.rst:1087 msgid "Typing ``script-name.py`` in the terminal opens in a new window." -msgstr "" +msgstr "在終端機中輸入 ``script-name.py`` 時,會在新視窗中開啟。" #: ../../using/windows.rst:1088 msgid "" @@ -1898,10 +2091,13 @@ msgid "" "%*`` with the same name as the script, or install the `legacy launcher`_ and " "select it as the association for scripts." msgstr "" +"這是作業系統已知的限制。你可以在腳本名稱前加上 ``py``,建立一個與腳本同名、內" +"容為 ``@py \"%~dpn0.py\" %*`` 的批次檔,或是安裝\\ `舊版啟動器 `_ 並將它選為腳本的關聯程式。" #: ../../using/windows.rst:1093 msgid "Drag-dropping files onto a script doesn't work" -msgstr "" +msgstr "將檔案拖放到腳本上沒有作用" #: ../../using/windows.rst:1094 msgid "" @@ -1909,10 +2105,12 @@ msgid "" "`legacy launcher`_, or with the Python install manager when installed from " "the MSI." msgstr "" +"這是作業系統已知的限制。使用\\ `舊版啟動器 `_,或使用從 " +"MSI 安裝的 Python 安裝管理員時,可以支援這個功能。" #: ../../using/windows.rst:1098 msgid "I have installed the Python install manager multiple times." -msgstr "" +msgstr "我安裝了好幾次 Python 安裝管理員。" #: ../../using/windows.rst:1099 msgid "" @@ -1920,6 +2118,8 @@ msgid "" "Python website, and from the MSI, all at once. They are all compatible and " "will share configuration and runtimes." msgstr "" +"可以同時從 Store 或 WinGet、從 Python 網站上的 MSIX,以及從 MSI 安裝。它們全" +"都彼此相容,並會共用設定與 runtime。" #: ../../using/windows.rst:1104 msgid "" @@ -1927,10 +2127,12 @@ msgid "" "uninstall the install manager other than the typical Installed Apps (Add and " "Remove Programs) settings page." msgstr "" +"除了一般的「已安裝的應用程式」(新增或移除程式)設定頁面之外,其他解除安裝安" +"裝管理員的方法,請參閱前面的\\ :ref:`pymanager-advancedinstall` 章節。" #: ../../using/windows.rst:1108 msgid "My old ``py.ini`` settings no longer work." -msgstr "" +msgstr "我舊的 ``py.ini`` 設定不再有效。" #: ../../using/windows.rst:1109 msgid "" @@ -1938,6 +2140,8 @@ msgid "" "its settings, and so it will be ignored. See :ref:`pymanager-config` for " "information about configuration settings." msgstr "" +"新的 Python 安裝管理員不再支援這個設定檔及其設定,因此會忽略它。關於設定的資" +"訊,請參閱\\ :ref:`pymanager-config`。" #: ../../using/windows.rst:1116 msgid "The embeddable package"