Skip to content

Translate c-api/number.po - #1261

Open
lilwad-0730 wants to merge 2 commits into
python:3.15from
lilwad-0730:c-api/number
Open

lilwad-0730 wants to merge 2 commits into
python:3.15from
lilwad-0730:c-api/number

Conversation

@lilwad-0730

Copy link
Copy Markdown
Contributor

Complete 41 untranslated entries covering numeric operations, in-place operations, and type conversions.

Preserve English operator names, code expressions, and reST references. Fix two reST formatting issues and remove redundant failure wording.

Validation: sphinx-lint, PO parsing, 79-character line-width checks, and git diff --check passed.

Closes #1260

lilwad-0730 and others added 2 commits November 7, 2026 14:29
Complete 41 untranslated entries covering numeric operations, in-place operations, and type conversions.

Preserve English operator names, code expressions, and reST references. Fix two reST formatting issues and remove redundant failure wording.

Validation: sphinx-lint, PO parsing, 79-character line-width checks, and git diff --check passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread c-api/number.po
"expression ``o1 / o2``."
msgstr ""
"回傳 *o1* 除以 *o2* 所得數學值的合理近似值,失敗時回傳 ``NULL``。回傳數值之所"
"以是「近似值」,是因為二進位浮點數無法精確表示所有實數。;無法以二進位表示所"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"以是「近似值」,是因為二進位浮點數無法精確表示所有實數。;無法以二進位表示所"
"以是「近似值」,是因為二進位浮點數無法精確表示所有實數;無法以二進位表示所"

Comment thread c-api/number.po
"the equivalent of the Python statement ``o1 //= o2``."
msgstr ""
"回傳 *o1* 除以 *o2* 後向下取整的結果,失敗時回傳 ``NULL``。若 *o1* 支援,則會"
"以 *in-place* 方式執行此運算。這相當於 Python 陳述式 ``o1 //= o2``。"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

in-place 可以翻譯嗎?

Comment thread c-api/number.po
msgstr ""
"回傳 *o1* 除以 *o2* 所得數學值的合理近似值,失敗時回傳 ``NULL``。回傳值之所以"
"是「近似值」,是因為二進位浮點數只能表示近似值;無法以二進位表示所有實數。即"
"使傳入兩個整數,此函式仍可能回傳浮點數值。若 *o1* 支援,則會以 *in-place* 方"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ditto

Comment thread c-api/number.po
"operation is done *in-place* when *o1* supports it. This is the equivalent "
"of the Python statement ``o1 %= o2``."
msgstr ""
"回傳 *o1* 除以 *o2* 的餘數,失敗時回傳 ``NULL``。若 *o1* 支援,則會以 *in-"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ditto

Comment thread c-api/number.po
Comment on lines +263 to +265
"請參閱內建函式 :func:`pow`。失敗時回傳 ``NULL``。若 *o1* 支援,則會以 *in-"
"place* 方式執行此運算。當 o3 為 :c:data:`Py_None` 時,這相當於 Python 陳述式 "
"``o1 **= o2``;否則,相當於 ``pow(o1, o2, o3)`` 的原地運算版本。若要忽略 "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ditto, in-place 一處有翻譯一處沒翻

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate c-api/number.po

2 participants