From d7d5c9df536f7c4883135895ecdff5e74d977dd2 Mon Sep 17 00:00:00 2001 From: cschan <45995789+cschan1828@users.noreply.github.com> Date: Sun, 24 Mar 2024 14:29:26 +0800 Subject: [PATCH 1/2] Add more translations of library/io --- library/io.po | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/io.po b/library/io.po index 229ca4a1c2..69fc524251 100644 --- a/library/io.po +++ b/library/io.po @@ -1084,17 +1084,19 @@ msgstr "" #: ../../library/io.rst:631 msgid "Raw File I/O" -msgstr "" +msgstr "原始檔案 I/O" #: ../../library/io.rst:635 msgid "" "A raw binary stream representing an OS-level file containing bytes data. It " "inherits from :class:`RawIOBase`." msgstr "" +"一個代表包含位元組資料的 OS 層級檔案的原始二進制串流。它繼承自 :class:" +"`RawIOBase`。" #: ../../library/io.rst:638 msgid "The *name* can be one of two things:" -msgstr "" +msgstr "*name* 可以是兩種事物之一:" #: ../../library/io.rst:640 msgid "" @@ -1102,6 +1104,8 @@ msgid "" "file which will be opened. In this case closefd must be ``True`` (the " "default) otherwise an error will be raised." msgstr "" +"一個字元串或 :class:`bytes` 物件代表將要打開的檔案路徑。在這種情況下," +"closefd 必須是 ```True`` (預設值),否則將引發錯誤。" #: ../../library/io.rst:643 msgid "" From 1c95562bafa6287cd6a8c2ab8a459ccb61cadfde Mon Sep 17 00:00:00 2001 From: cschan <45995789+cschan1828@users.noreply.github.com> Date: Tue, 26 Mar 2024 01:50:32 +0800 Subject: [PATCH 2/2] Fix the issues according to reviewer's feedback --- library/io.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/io.po b/library/io.po index 69fc524251..101cf3e05b 100644 --- a/library/io.po +++ b/library/io.po @@ -1104,8 +1104,8 @@ msgid "" "file which will be opened. In this case closefd must be ``True`` (the " "default) otherwise an error will be raised." msgstr "" -"一個字元串或 :class:`bytes` 物件代表將要打開的檔案路徑。在這種情況下," -"closefd 必須是 ```True`` (預設值),否則將引發錯誤。" +"代表將要打開的檔案路徑的一個字元串或 :class:`bytes` 物件。在這種情況下," +"closefd 必須是 ``True`` (預設值),否則將引發錯誤。" #: ../../library/io.rst:643 msgid ""