From 6e7adc1819a0f60d6605448cf703ddd7e89df0ae Mon Sep 17 00:00:00 2001 From: "Matt.Wang" Date: Fri, 11 Feb 2022 12:13:58 +0800 Subject: [PATCH] translate `library/getpass.po` --- library/getpass.po | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/library/getpass.po b/library/getpass.po index 4e1d2283ea..c023b17332 100644 --- a/library/getpass.po +++ b/library/getpass.po @@ -1,15 +1,15 @@ -# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2022, Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: +# Matt Wang , 2022 msgid "" msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-05-23 16:02+0000\n" -"Last-Translator: Adrian Liaw \n" +"PO-Revision-Date: 2022-02-11 12:04+0800\n" +"Last-Translator: Matt Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -17,10 +17,11 @@ 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.0.1\n" #: ../../library/getpass.rst:2 msgid ":mod:`getpass` --- Portable password input" -msgstr "" +msgstr ":mod:`getpass` --- 可攜式密碼輸入工具" #: ../../library/getpass.rst:11 msgid "**Source code:** :source:`Lib/getpass.py`" @@ -28,7 +29,7 @@ msgstr "**原始碼:**\\ :source:`Lib/getpass.py`" #: ../../library/getpass.rst:15 msgid "The :mod:`getpass` module provides two functions:" -msgstr "" +msgstr ":mod:`getpass` 模組 (module) 提供了兩個函式:" #: ../../library/getpass.rst:20 msgid "" @@ -39,6 +40,11 @@ msgid "" "dev/tty`) or if that is unavailable to ``sys.stderr`` (this argument is " "ignored on Windows)." msgstr "" +"提示使用者輸入一個密碼且不會有回音 (echo)。使用者會看到字串 *prompt* 作為提" +"示,其預設值為 ``'Password: '``。在 Unix 上,如有必要的話會使用替換錯誤處理函" +"式 (replace error handler) 寫入到類檔案物件 (file-like object) *stream*\\ " +"中。\\ *stream* 預設為主控終端機 (controlling terminal) (\\ :file:`/dev/tty`" +"\\ ),如果不可用則為 ``sys.stderr`` (此引數在 Windows 上會被忽略)。" #: ../../library/getpass.rst:27 msgid "" @@ -46,20 +52,25 @@ msgid "" "message to *stream* and reading from ``sys.stdin`` and issuing a :exc:" "`GetPassWarning`." msgstr "" +"如果無回音輸入 (echo-free input) 無法使用則 getpass() 將回退為印出一條警告訊" +"息到 *stream*\\ ,並從 ``sys.stdin`` 讀取且同時發出 :exc:`GetPassWarning`" +"\\ 。" #: ../../library/getpass.rst:32 msgid "" "If you call getpass from within IDLE, the input may be done in the terminal " "you launched IDLE from rather than the idle window itself." msgstr "" +"如果你從 IDLE 內部呼叫 getpass,輸入可能會在你啟動 IDLE 的終端機中完成,而非" +"在 IDLE 視窗中。" #: ../../library/getpass.rst:37 msgid "A :exc:`UserWarning` subclass issued when password input may be echoed." -msgstr "" +msgstr "當密碼輸入可能被回音時會發出的 :exc:`UserWarning` 子類別。" #: ../../library/getpass.rst:42 msgid "Return the \"login name\" of the user." -msgstr "" +msgstr "回傳使用者的\"登入名稱\"。" #: ../../library/getpass.rst:44 msgid "" @@ -69,8 +80,12 @@ msgid "" "the login name from the password database is returned on systems which " "support the :mod:`pwd` module, otherwise, an exception is raised." msgstr "" +"此函式會按順序檢查環境變數 :envvar:`LOGNAME`\\ 、\\ :envvar:`USER`\\ 、\\ :" +"envvar:`LNAME` 和 :envvar:`USERNAME`,並回傳其中第一個被設定成非空字串的值。" +"如果均未設定,則在支援 :mod:`pwd` 模組的系統上將會回傳來自密碼資料庫的登入名" +"稱,否則將引發一個例外。" #: ../../library/getpass.rst:51 msgid "" "In general, this function should be preferred over :func:`os.getlogin()`." -msgstr "" +msgstr "大部分情況下,此函式應該要比 :func:`os.getlogin()` 優先使用。"