Skip to content

Translate c-api/mapping.po #897

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 2 commits into from
May 27, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Payon <ken71301@hotmail.com>
  • Loading branch information
mattwang44 and ken71301 committed May 27, 2024
commit 79a4d96116d03d9cefc77512afc71c74e9f5c68a
15 changes: 8 additions & 7 deletions c-api/mapping.po
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ msgid ""
msgstr ""
"如果物件有提供對映協定或支援切片 (slicing) 則回傳 ``1``,否則回傳 ``0``。請注"
"意,對於具有 :meth:`~object.__getitem__` 方法的 Python 類別,它會回傳 ``1``,"
"因為通常無法確定該類別支援什麼類型的鍵。這個函式總是成功的。"
"因為通常無法確定該類別支援什麼類型的鍵。這個函式總會是成功的。"

#: ../../c-api/mapping.rst:25
msgid ""
Expand Down Expand Up @@ -88,16 +88,16 @@ msgid ""
"always succeeds."
msgstr ""
"如果對映物件具有鍵 *key* 則回傳 ``1``,否則回傳 ``0``。這相當於 Python 運算"
"式 ``key in o``。這個函式總是成功的。"
"式 ``key in o``。這個函式總會是成功的。"

#: ../../c-api/mapping.rst:63
msgid ""
"Exceptions which occur when this calls :meth:`~object.__getitem__` method "
"are silently ignored. For proper error handling, use :c:func:"
"`PyObject_GetItem()` instead."
msgstr ""
"呼叫 :meth:`~object.__getitem__` 方法時發生的例外將被默默忽略。為了適當地處理"
"錯誤,請改用 :c:func:`PyObject_GetItem()`。"
"當它呼叫 :meth:`~object.__getitem__` 方法時發生的例外將被默默忽略。為了適當地"
"處理錯誤,請改用 :c:func:`PyObject_GetItem()`。"

#: ../../c-api/mapping.rst:70
msgid ""
Expand All @@ -114,14 +114,15 @@ msgid ""
"while creating the temporary :class:`str` object are silently ignored. For "
"proper error handling, use :c:func:`PyMapping_GetItemString` instead."
msgstr ""
"呼叫 :meth:`~object.__getitem__` 方法或建立臨時 :class:`str` 物件時發生的例外"
"將默默忽略。為了適當地處理錯誤,請改用 :c:func:`PyMapping_GetItemString`。"
"當它呼叫 :meth:`~object.__getitem__` 方法或建立臨時 :class:`str` 物件時發生的"
"例外將被默默忽略。為了適當地處理錯誤,請改用 :c:func:"
"`PyMapping_GetItemString`。"

#: ../../c-api/mapping.rst:84
msgid ""
"On success, return a list of the keys in object *o*. On failure, return "
"``NULL``."
msgstr "成功時回傳包含物件 *o* 內之鍵的串列,失敗時回傳 ``NULL``。"
msgstr "成功時回傳一個物件 *o* 內之鍵的串列,失敗時回傳 ``NULL``。"

#: ../../c-api/mapping.rst:87 ../../c-api/mapping.rst:96
#: ../../c-api/mapping.rst:105
Expand Down