Skip to content

Add more translations of library/io #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions library/io.po
Original file line number Diff line number Diff line change
Expand Up @@ -729,45 +729,52 @@ 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 ""
"Some operating systems could support additional values, like :const:`os."
"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 ""
Expand All @@ -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 ""
Expand Down