From d71897e1bb8c718b251a2c59dfd1712647566859 Mon Sep 17 00:00:00 2001 From: andywang Date: Sat, 7 Nov 2026 15:05:25 +0800 Subject: [PATCH] Translate c-api/file.po Translate the remaining untranslated entry and fix existing translations: remove stray spaces after full-width punctuation and between Chinese words, and restore inline literal markup for the 0 and -1 return values. Closes #1262 Co-Authored-By: Claude Opus 5.5 --- c-api/file.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/c-api/file.po b/c-api/file.po index a8c54fa86a4..ee59a6b591b 100644 --- a/c-api/file.po +++ b/c-api/file.po @@ -52,8 +52,8 @@ msgid "" "to the :func:`io.open` function documentation." msgstr "" "從已打開檔案 *fd* 的檔案描述器建立一個 Python 檔案物件。引數 *name*、" -"*encoding*、*errors* 和 *newline* 可以為 ``NULL`` 以使用預設值; *buffering* " -"可以是 *-1* 以使用預設值。 *name* 被忽略並保留以實作向後相容性。失敗時回傳 " +"*encoding*、*errors* 和 *newline* 可以為 ``NULL`` 以使用預設值;*buffering* " +"可以是 *-1* 以使用預設值。*name* 被忽略並保留以實作向後相容性。失敗時回傳 " "``NULL``。有關引數的更全面描述,請參閱 :func:`io.open` 函式文件。" #: ../../c-api/file.rst:31 @@ -93,7 +93,7 @@ msgid "" "regardless of length, but :exc:`EOFError` is raised if the end of the file " "is reached immediately." msgstr "" -"相當於 ``p.readline([n])``,這個函式從物件 *p* 中讀取一行。 *p* 可以是檔案物" +"相當於 ``p.readline([n])``,這個函式從物件 *p* 中讀取一行。*p* 可以是檔案物" "件或任何具有 :meth:`~io.IOBase.readline` 方法的物件。如果 *n* 為 ``0``,則不" "管該行的長度都只會讀取一行。如果 *n* 大於 ``0``,則不會從檔案中讀取超過 *n* " "個位元組;可以回傳該行的一部分。在這兩種情況下,如果立即到達檔案末尾,則回傳" @@ -197,12 +197,12 @@ msgid "" "is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is " "written instead of the :func:`repr`." msgstr "" -"將物件 *obj* 寫入檔案物件 *p*。 *flags* 唯一支援的旗標是 :c:macro:" +"將物件 *obj* 寫入檔案物件 *p*。*flags* 唯一支援的旗標是 :c:macro:" "`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。" #: ../../c-api/file.rst:128 msgid "If *obj* is ``NULL``, write the string ``\"\"``." -msgstr "" +msgstr "如果 *obj* 為 ``NULL``,則寫入字串 ``\"\"``。" #: ../../c-api/file.rst:130 msgid "" @@ -215,8 +215,8 @@ msgid "" "Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on " "failure; the appropriate exception will be set." msgstr "" -"寫入字串 *s* 到 檔案物件 *p*。當成功時回傳 0,而當失敗時回傳 -1,並會設定合適" -"的例外狀況。" +"寫入字串 *s* 到檔案物件 *p*。當成功時回傳 ``0``,而當失敗時回傳 ``-1``,並會" +"設定合適的例外狀況。" #: ../../c-api/file.rst:140 msgid "Soft-deprecated API"