From 0e4062728f507282b5070da48fa7914544f91353 Mon Sep 17 00:00:00 2001 From: Steven Hsu <hsuhaochun@gmail.com> Date: Wed, 5 Oct 2022 09:48:11 +0800 Subject: [PATCH 1/2] Update glossary Translate the entry "attribute." --- glossary.po | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/glossary.po b/glossary.po index 80f9402e2c..f461688cd6 100644 --- a/glossary.po +++ b/glossary.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: Python 3.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-09-30 00:28+0000\n" -"PO-Revision-Date: 2022-09-01 12:05+0800\n" +"PO-Revision-Date: 2022-10-05 09:39+0800\n" "Last-Translator: Steven Hsu <hsuhaochun@gmail.com>\n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -322,8 +322,8 @@ msgid "" "dotted expressions. For example, if an object *o* has an attribute *a* it " "would be referenced as *o.a*." msgstr "" -"一個與某物件相關聯的值,該值大多能透過使用點分隔運算式 (dotted expression) 的名稱" -"被參照。例如,如果物件 *o* 有一個屬性 *a*,則該屬性能以 *o.a* 被參照。" +"一個與某物件相關聯的值,該值大多能透過使用點分隔運算式 (dotted expression) 的" +"名稱被參照。例如,如果物件 *o* 有一個屬性 *a*,則該屬性能以 *o.a* 被參照。" #: ../../glossary.rst:144 msgid "" @@ -333,6 +333,10 @@ msgid "" "using a dotted expression, and would instead need to be retrieved with :func:" "`getattr`." msgstr "" +"如果一個物件允許,給予該物件一個屬性,其名稱不是由\\ :ref:`identifiers`\\ 所" +"定義的識別符 (identifier),這樣做是有可能的,例如使用 :func:`setattr`。像這樣" +"的屬性將無法使用點分隔運算式來存取,而是需要使用 :func:`getattr` 來對它進行檢" +"索 (retrieve)。" #: ../../glossary.rst:149 msgid "awaitable" From a43702baec3f0c59457b123c40b2b20c1e7d95fe Mon Sep 17 00:00:00 2001 From: Steven Hsu <hsuhaochun@gmail.com> Date: Wed, 5 Oct 2022 14:36:26 +0800 Subject: [PATCH 2/2] Apply suggestions from code review All suggestions are applied. Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com> --- glossary.po | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/glossary.po b/glossary.po index f461688cd6..535dc3a4c5 100644 --- a/glossary.po +++ b/glossary.po @@ -333,10 +333,9 @@ msgid "" "using a dotted expression, and would instead need to be retrieved with :func:" "`getattr`." msgstr "" -"如果一個物件允許,給予該物件一個屬性,其名稱不是由\\ :ref:`identifiers`\\ 所" -"定義的識別符 (identifier),這樣做是有可能的,例如使用 :func:`setattr`。像這樣" -"的屬性將無法使用點分隔運算式來存取,而是需要使用 :func:`getattr` 來對它進行檢" -"索 (retrieve)。" +"如果一個物件允許,給予該物件一個名稱不是由\\ :ref:`identifiers`\\ 所" +"定義之識別符 (identifier) 的屬性是有可能的,例如使用 :func:`setattr`。像這樣" +"的屬性將無法使用點分隔運算式來存取,而是需要使用 :func:`getattr` 來取得它。" #: ../../glossary.rst:149 msgid "awaitable"