From 75244bffebe8e458d013e8f5160747186f39742f Mon Sep 17 00:00:00 2001 From: cschan <45995789+cschan1828@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:50:57 +0800 Subject: [PATCH] Add more translations of library/io --- library/io.po | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/library/io.po b/library/io.po index 799a6543b7..eac22ef555 100644 --- a/library/io.po +++ b/library/io.po @@ -729,28 +729,31 @@ msgid "" "to the position indicated by *whence*, and return the new absolute position. " "Values for *whence* are:" msgstr "" +"將串流位置改變到給定的位元組 *offset*,此位置是相對於由 *whence* 指示的位置解" +"釋的,並回傳新的絕對位置。*whence* 的值可為:" #: ../../library/io.rst:413 msgid "" ":data:`os.SEEK_SET` or ``0`` -- start of the stream (the default); *offset* " "should be zero or positive" msgstr "" +":data:`os.SEEK_SET` 或 ``0`` -- 串流的起點(預設值);*offset* 應為零或正數" #: ../../library/io.rst:415 msgid "" ":data:`os.SEEK_CUR` or ``1`` -- current stream position; *offset* may be " "negative" -msgstr "" +msgstr ":data:`os.SEEK_CUR` 或 ``1`` -- 目前串流位置;*offset* 可以是負數" #: ../../library/io.rst:417 msgid "" ":data:`os.SEEK_END` or ``2`` -- end of the stream; *offset* is usually " "negative" -msgstr "" +msgstr ":data:`os.SEEK_END` 或 ``2`` -- 串流的結尾;*offset* 通常是負數" #: ../../library/io.rst:420 ../../library/io.rst:930 msgid "The :data:`!SEEK_*` constants." -msgstr "" +msgstr ":data:`!SEEK_*` 常數。" #: ../../library/io.rst:423 msgid "" @@ -758,16 +761,20 @@ msgid "" "SEEK_HOLE` or :const:`os.SEEK_DATA`. The valid values for a file could " "depend on it being open in text or binary mode." msgstr "" +"某些作業系統可以支援額外的值,例如 :const:`os.SEEK_HOLE` 或 :const:`os." +"SEEK_DATA`。檔案的合法值取決於它是以文字模式還是二進位模式開啟。" #: ../../library/io.rst:430 msgid "" "Return ``True`` if the stream supports random access. If ``False``, :meth:" "`seek`, :meth:`tell` and :meth:`truncate` will raise :exc:`OSError`." msgstr "" +"如果串流支援隨機存取,則回傳 ``True``。如果是 ``False``,則 :meth:`seek`、:" +"meth:`tell` 和 :meth:`truncate` 會引發 :exc:`OSError`。" #: ../../library/io.rst:435 msgid "Return the current stream position." -msgstr "" +msgstr "回傳目前串流的位置。" #: ../../library/io.rst:439 msgid "" @@ -777,10 +784,14 @@ msgid "" "the contents of the new file area depend on the platform (on most systems, " "additional bytes are zero-filled). The new file size is returned." msgstr "" +"將串流的大小調整為指定的 *size* 位元組(如果沒有指定 *size*,則調整為目前位" +"置)。目前串流位置不會改變。這種調整可以擴展或縮減當前檔案大小。在擴展的情況" +"下,新檔案區域的內容取決於平台(在大多數系統上,額外的位元組會被填充為零)。" +"回傳新的檔案大小。" #: ../../library/io.rst:446 msgid "Windows will now zero-fill files when extending." -msgstr "" +msgstr "Windows 現在在擴展時會對檔案進行零填充 (zero-fill)。" #: ../../library/io.rst:451 msgid ""