Skip to content

Conversation

@mattwang44
Copy link
Collaborator

fix #178

c-api/cell.po Outdated
Comment on lines 41 to 46
"\"Cell\" 物件用於實現被多個作用域所參照 (reference) 的變數。對於每個這樣的變"
"數,都會有個 cell 物件為了儲存該值而被建立;參照該值的每個 stack frame 中的區"
"域性變數包含外部作用域的 cell 參照,它同樣使用了該變數。訪問該值時,將使用 "
"cell 中包含的值而不是單元格物件本身。這種對“Cell”物件的非關聯化的參照需要支援"
"生成的位元組碼;訪問時不會自動非關聯化這些內容。Cell 物件在其他地方可能不太有"
"用。"
Copy link
Member

Choose a reason for hiding this comment

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

爲什麼這個使用\"Cell\"“Cell”Cell

c-api/cell.po Outdated
"Return true if *ob* is a cell object; *ob* must not be ``NULL``. This "
"function always succeeds."
msgstr ""
"如果 *ob* 是一個 cell 物件則回傳真值;\\ *ob* 必須不為 ``NULL``\\ 。此函式總"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"如果 *ob* 是一個 cell 物件則回傳真值;\\ *ob* 必須不為 ``NULL``\\ 。此函式總"
"如果 *ob* 是一個 cell 物件則回傳真值;*ob* 必須不為 ``NULL``。此函式總"
"detector's set of observed objects. Other fields of the object are not "
"affected."
msgstr ""
"用它的型別和初始參照來初始化新分配物件 *op*\\ 。已初始化的物件會被回傳。如果 "
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"用它的型別和初始參照來初始化新分配物件 *op*\\ 。已初始化的物件會被回傳。如果 "
"用它的型別和初始參照來初始化新分配物件 *op*。已初始化的物件會被回傳。如果 "
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
"object."
msgstr ""
"這個物件像是 Python 中的 ``None``\\ 。它只應該透過 :c:macro:`Py_None` 巨集來"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"這個物件像是 Python 中的 ``None``\\ 。它只應該透過 :c:macro:`Py_None` 巨集來"
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來"
c-api/cell.po Outdated
"Create and return a new cell object containing the value *ob*. The parameter "
"may be ``NULL``."
msgstr ""
msgstr "建立並回傳一個包含 *ob* 的新 cell 物件。參數可以為 ``NULL``\\"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
msgstr "建立並回傳一個包含 *ob* 的新 cell 物件。參數可以為 ``NULL``\\ 。"
msgstr "建立並回傳一個包含 *ob* 的新 cell 物件。參數可以為 ``NULL``。"
c-api/gen.po Outdated
msgstr ""
"產生器物件是 Python 用來實現產生器疊代器 (generator iterator) 的物件。它們通"
"常透過疊代會產生值的函式來建立,而不是顯式呼叫 :c:func:`PyGen_New` 或 :c:"
"func:`PyGen_NewWithQualName`\\ 。"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"func:`PyGen_NewWithQualName`\\ "
"func:`PyGen_NewWithQualName`。"
c-api/gen.po Outdated
Comment on lines 53 to 54
"如果 *ob* 是一個產生器 (generator) 物件則回傳真值;*ob* 必須不為 ``NULL``"
"\\ 。此函式總是會成功執行。"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"如果 *ob* 是一個產生器 (generator) 物件則回傳真值;*ob* 必須不為 ``NULL``"
"\\ 。此函式總是會成功執行。"
"如果 *ob* 是一個產生器 (generator) 物件則回傳真值;*ob* 必須不為 ``NULL``"
"。此函式總是會成功執行。"
c-api/gen.po Outdated
Comment on lines 61 to 62
"如果 *ob* 的型別是 :c:type:`PyGen_Type` 則回傳真值;*ob* 必須不為 ``NULL``"
"\\ 。此函式總是會成功執行。"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"如果 *ob* 的型別是 :c:type:`PyGen_Type` 則回傳真值;*ob* 必須不為 ``NULL``"
"\\ 。此函式總是會成功執行。"
"如果 *ob* 的型別是 :c:type:`PyGen_Type` 則回傳真值;*ob* 必須不為 ``NULL``"
"。此函式總是會成功執行。"
c-api/gen.po Outdated
Comment on lines 70 to 71
"基於 *frame* 物件建立並回傳一個新的產生器物件。此函式會取走一個對 *frame* 的"
"參照 (reference)。引數必須不為 ``NULL``\\ 。"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"基於 *frame* 物件建立並回傳一個新的產生器物件。此函式會取走一個對 *frame* 的"
"參照 (reference)。引數必須不為 ``NULL``\\ "
"基於 *frame* 物件建立並回傳一個新的產生器物件。此函式會取走一個對 *frame* 的"
"參照 (reference)。引數必須不為 ``NULL``。"
c-api/gen.po Outdated
Comment on lines 80 to 82
"基於 *frame* 物件建立並回傳一個新的產生器物件,其中 ``__name__`` 和 "
"``__qualname__`` 設為 *name* 和 *qualname*\\ 。此函式會取走一個對 *frame* 的"
"參照。*frame* 引數必須不為 ``NULL``\\ 。"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"基於 *frame* 物件建立並回傳一個新的產生器物件,其中 ``__name__`` 和 "
"``__qualname__`` 設為 *name* 和 *qualname*\\ 。此函式會取走一個對 *frame* 的"
"參照。*frame* 引數必須不為 ``NULL``\\ "
"基於 *frame* 物件建立並回傳一個新的產生器物件,其中 ``__name__`` 和 "
"``__qualname__`` 設為 *name* 和 *qualname*。此函式會取走一個對 *frame* 的"
"參照。*frame* 引數必須不為 ``NULL``。"
@mattwang44 mattwang44 changed the base branch from 3.10 to 3.11 October 16, 2022 07:21
@mattwang44 mattwang44 force-pushed the trans-some-c-api branch 2 times, most recently from 267bc18 to 7b0e6dc Compare October 16, 2022 07:36
@mattwang44 mattwang44 force-pushed the trans-some-c-api branch 2 times, most recently from b6e4f01 to 0acc6d0 Compare November 14, 2022 02:49
@mattwang44 mattwang44 merged commit 58d663c into python:3.11 Dec 30, 2022
@mattwang44 mattwang44 deleted the trans-some-c-api branch December 30, 2022 03:44
beccalzh pushed a commit to beccalzh/python-docs-zh-tw that referenced this pull request Sep 4, 2024
Translate `c-api/{allocation,cell,gen}.po`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants