Skip to content

Translate library/getpass.po #232

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 1 commit into from
Feb 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions library/getpass.po
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
# 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 <mattwang44@gmail.com>, 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 <adrianliaw2000@gmail.com>\n"
"PO-Revision-Date: 2022-02-11 12:04+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"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`"
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 ""
Expand All @@ -39,27 +40,37 @@ msgid ""
"dev/tty`) or if that is unavailable to ``sys.stderr`` (this argument is "
"ignored on Windows)."
msgstr ""
"提示使用者輸入一個密碼且不會有回音 (echo)。使用者會看到字串 *prompt* 作為提"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"示,其預設值為 ``'Password: '``。在 Unix 上,如有必要的話會使用替換錯誤處理函"
"式 (replace error handler) 寫入到類檔案物件 (file-like object) *stream*\\ "
"中。\\ *stream* 預設為主控終端機 (controlling terminal) (\\ :file:`/dev/tty`"
"\\ ),如果不可用則為 ``sys.stderr`` (此引數在 Windows 上會被忽略)。"

#: ../../library/getpass.rst:27
msgid ""
"If echo free input is unavailable getpass() falls back to printing a warning "
"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 ""
Expand All @@ -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()` 優先使用。"