Skip to content

Commit d71897e

Browse files
lilwad-0730claude
andcommitted
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 <noreply@anthropic.com>
1 parent fdfcaed commit d71897e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎c-api/file.po‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ msgid ""
5252
"to the :func:`io.open` function documentation."
5353
msgstr ""
5454
"從已打開檔案 *fd* 的檔案描述器建立一個 Python 檔案物件。引數 *name*、"
55-
"*encoding*、*errors* 和 *newline* 可以為 ``NULL`` 以使用預設值; *buffering* "
56-
"可以是 *-1* 以使用預設值。 *name* 被忽略並保留以實作向後相容性。失敗時回傳 "
55+
"*encoding*、*errors* 和 *newline* 可以為 ``NULL`` 以使用預設值;*buffering* "
56+
"可以是 *-1* 以使用預設值。*name* 被忽略並保留以實作向後相容性。失敗時回傳 "
5757
"``NULL``。有關引數的更全面描述,請參閱 :func:`io.open` 函式文件。"
5858

5959
#: ../../c-api/file.rst:31
@@ -93,7 +93,7 @@ msgid ""
9393
"regardless of length, but :exc:`EOFError` is raised if the end of the file "
9494
"is reached immediately."
9595
msgstr ""
96-
"相當於 ``p.readline([n])``,這個函式從物件 *p* 中讀取一行。 *p* 可以是檔案物"
96+
"相當於 ``p.readline([n])``,這個函式從物件 *p* 中讀取一行。*p* 可以是檔案物"
9797
"件或任何具有 :meth:`~io.IOBase.readline` 方法的物件。如果 *n* 為 ``0``,則不"
9898
"管該行的長度都只會讀取一行。如果 *n* 大於 ``0``,則不會從檔案中讀取超過 *n* "
9999
"個位元組;可以回傳該行的一部分。在這兩種情況下,如果立即到達檔案末尾,則回傳"
@@ -197,12 +197,12 @@ msgid ""
197197
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
198198
"written instead of the :func:`repr`."
199199
msgstr ""
200-
"將物件 *obj* 寫入檔案物件 *p*。 *flags* 唯一支援的旗標是 :c:macro:"
200+
"將物件 *obj* 寫入檔案物件 *p*。*flags* 唯一支援的旗標是 :c:macro:"
201201
"`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。"
202202

203203
#: ../../c-api/file.rst:128
204204
msgid "If *obj* is ``NULL``, write the string ``\"<NULL>\"``."
205-
msgstr ""
205+
msgstr "如果 *obj* 為 ``NULL``,則寫入字串 ``\"<NULL>\"``。"
206206

207207
#: ../../c-api/file.rst:130
208208
msgid ""
@@ -215,8 +215,8 @@ msgid ""
215215
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
216216
"failure; the appropriate exception will be set."
217217
msgstr ""
218-
"寫入字串 *s* 到 檔案物件 *p*。當成功時回傳 0,而當失敗時回傳 -1,並會設定合適"
219-
"的例外狀況。"
218+
"寫入字串 *s* 到檔案物件 *p*。當成功時回傳 ``0``,而當失敗時回傳 ``-1``,並會"
219+
"設定合適的例外狀況。"
220220

221221
#: ../../c-api/file.rst:140
222222
msgid "Soft-deprecated API"

0 commit comments

Comments
 (0)