From 09551dde0ebeb29a48cb41d42a89a91798b91390 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 16 Jul 2025 14:16:00 +0000 Subject: [PATCH 1/2] Initial plan From d07b71ee997d23a266897184d4d5294265232607 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 16 Jul 2025 14:22:25 +0000 Subject: [PATCH 2/2] Complete translation of c-api/hash.po Co-authored-by: mattwang44 <24987826+mattwang44@users.noreply.github.com> --- c-api/hash.po | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/c-api/hash.po b/c-api/hash.po index 01b52c5549..dcb8889a1b 100644 --- a/c-api/hash.po +++ b/c-api/hash.po @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2024, Python Software Foundation +# Copyright (C) 2001-2025, Python Software Foundation # This file is distributed under the same license as the Python package. # # Translators: @@ -39,22 +39,24 @@ msgid "" "The `Mersenne prime `_ ``P = " "2**n -1``, used for numeric hash scheme." msgstr "" +"用於數值雜湊方案的\\ `梅森質數 (Mersenne prime) `_ ``P = 2**n -1``。" #: ../../c-api/hash.rst:28 msgid "The exponent ``n`` of ``P`` in :c:macro:`PyHASH_MODULUS`." -msgstr "" +msgstr ":c:macro:`PyHASH_MODULUS` 中 ``P`` 的指數 ``n``。" #: ../../c-api/hash.rst:34 msgid "Prime multiplier used in string and various other hashes." -msgstr "" +msgstr "用於字串和其他各種雜湊的質數乘數 (prime multiplier)。" #: ../../c-api/hash.rst:40 msgid "The hash value returned for a positive infinity." -msgstr "" +msgstr "正無窮大回傳的雜湊值。" #: ../../c-api/hash.rst:46 msgid "The multiplier used for the imaginary part of a complex number." -msgstr "" +msgstr "用於複數虛數部分的乘數。" #: ../../c-api/hash.rst:52 msgid "Hash function definition used by :c:func:`PyHash_GetFuncDef`." @@ -87,17 +89,21 @@ msgid "" "Hash a pointer value: process the pointer value as an integer (cast it to " "``uintptr_t`` internally). The pointer is not dereferenced." msgstr "" +"雜湊指標值:將指標值作為整數處理(在內部轉型為 ``uintptr_t``)。指標不會被取" +"值 (dereference)。" #: ../../c-api/hash.rst:88 msgid "The function cannot fail: it cannot return ``-1``." -msgstr "" +msgstr "此函式不會失敗:它不會回傳 ``-1``。" #: ../../c-api/hash.rst:94 msgid "" "Generic hashing function that is meant to be put into a type object's " "``tp_hash`` slot. Its result only depends on the object's identity." msgstr "" +"泛用雜湊函式,旨在放入型別物件的 ``tp_hash`` 插槽中。其結果僅取決於物件的識別" +"性。" #: ../../c-api/hash.rst:99 msgid "In CPython, it is equivalent to :c:func:`Py_HashPointer`." -msgstr "" +msgstr "在 CPython 中,它等價於 :c:func:`Py_HashPointer`。"