From 2c396f5054addffd5210cda705461808d9925de5 Mon Sep 17 00:00:00 2001 From: Super Date: Sat, 8 Mar 2025 14:18:28 +0800 Subject: [PATCH 01/12] translate library/os rst:117,124,127,134,136,211,571 --- library/os.po | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/os.po b/library/os.po index 7369950f4b..2e09717903 100644 --- a/library/os.po +++ b/library/os.po @@ -200,6 +200,8 @@ msgid "" ":func:`locale.getpreferredencoding` returns ``'utf-8'`` (the *do_setlocale* " "argument has no effect)." msgstr "" +":func:`locale.getpreferredencoding` 回傳 ``'utf-8'`` (the *do_setlocale* " +"argument has no effect)." #: ../../library/os.rst:119 msgid "" @@ -215,6 +217,8 @@ msgid "" "On Unix, :func:`os.device_encoding` returns ``'utf-8'`` rather than the " "device encoding." msgstr "" +"在Unix中, :func:`os.device_encoding` 回傳 ``'utf-8'`` 而非 " +"device encoding." #: ../../library/os.rst:127 msgid "" @@ -222,6 +226,9 @@ msgid "" "envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware " "mode)." msgstr "" +"請注意,在UTF-8模式中,stream的預設參數會被 :" +"envvar:`PYTHONIOENCODING` 取代(如同在 default locale-aware " +"模式一樣)." #: ../../library/os.rst:131 msgid "" @@ -234,10 +241,12 @@ msgid "" "Command line arguments, environment variables and filenames are decoded to " "text using the UTF-8 encoding." msgstr "" +"命令列中的參數、環境變數及檔案名稱使用UTF-8編碼 " #: ../../library/os.rst:136 msgid ":func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding." msgstr "" +":func:`os.fsdecode` 和 :func:`os.fsencode` 使用 UTF-8 編碼" #: ../../library/os.rst:137 msgid "" @@ -438,6 +447,8 @@ msgid "" "Calling :func:`putenv` directly does not change :data:`os.environ`, so it's " "better to modify :data:`os.environ`." msgstr "" +"直接呼叫 :func:`putenv` 並不會改變 :data:`os.environ`, " +":data:`os.environ`會更適合用於修正 " #: ../../library/os.rst:216 msgid "" @@ -727,6 +738,7 @@ msgstr "" #: ../../library/os.rst:571 msgid "The function is now always available." msgstr "" +"此函式並非永遠可用" #: ../../library/os.rst:577 msgid "Set the current process's effective group id." From 76be8c7a5c30805b4a52167a71c3c5469caadb8c Mon Sep 17 00:00:00 2001 From: Super Date: Sat, 8 Mar 2025 23:48:35 +0800 Subject: [PATCH 02/12] update library/os rst:117,124,127,134,136,211,571 --- library/os.po | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/library/os.po b/library/os.po index 2e09717903..581885265d 100644 --- a/library/os.po +++ b/library/os.po @@ -200,8 +200,8 @@ msgid "" ":func:`locale.getpreferredencoding` returns ``'utf-8'`` (the *do_setlocale* " "argument has no effect)." msgstr "" -":func:`locale.getpreferredencoding` 回傳 ``'utf-8'`` (the *do_setlocale* " -"argument has no effect)." +":func:`locale.getpreferredencoding` 回傳 ``'utf-8'`` (*do_setlocale* " +"引數並無任何效果)." #: ../../library/os.rst:119 msgid "" @@ -218,7 +218,7 @@ msgid "" "device encoding." msgstr "" "在Unix中, :func:`os.device_encoding` 回傳 ``'utf-8'`` 而非 " -"device encoding." +"裝置編碼" #: ../../library/os.rst:127 msgid "" @@ -226,9 +226,9 @@ msgid "" "envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware " "mode)." msgstr "" -"請注意,在UTF-8模式中,stream的預設參數會被 :" -"envvar:`PYTHONIOENCODING` 取代(如同在 default locale-aware " -"模式一樣)." +"請注意,在UTF-8模式中,串流參數會被 :" +"envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化偵測 " +"模式一樣)." #: ../../library/os.rst:131 msgid "" @@ -241,7 +241,7 @@ msgid "" "Command line arguments, environment variables and filenames are decoded to " "text using the UTF-8 encoding." msgstr "" -"命令列中的參數、環境變數及檔案名稱使用UTF-8編碼 " +"命令列中的引數、環境變數及檔案名稱以文字形式使用 UTF-8 編碼 " #: ../../library/os.rst:136 msgid ":func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding." @@ -448,7 +448,7 @@ msgid "" "better to modify :data:`os.environ`." msgstr "" "直接呼叫 :func:`putenv` 並不會改變 :data:`os.environ`, " -":data:`os.environ`會更適合用於修正 " +"因此,更適合修改 :data:`os.environ` " #: ../../library/os.rst:216 msgid "" @@ -738,7 +738,7 @@ msgstr "" #: ../../library/os.rst:571 msgid "The function is now always available." msgstr "" -"此函式並非永遠可用" +"此函式自現在起,永遠可用" #: ../../library/os.rst:577 msgid "Set the current process's effective group id." From b44ecc6d74763ecb7e719629231bdd23ea9b8a07 Mon Sep 17 00:00:00 2001 From: Super Date: Sun, 9 Mar 2025 20:25:41 +0800 Subject: [PATCH 03/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/os.po b/library/os.po index 581885265d..ec25505531 100644 --- a/library/os.po +++ b/library/os.po @@ -200,8 +200,8 @@ msgid "" ":func:`locale.getpreferredencoding` returns ``'utf-8'`` (the *do_setlocale* " "argument has no effect)." msgstr "" -":func:`locale.getpreferredencoding` 回傳 ``'utf-8'`` (*do_setlocale* " -"引數並無任何效果)." +":func:`locale.getpreferredencoding` 回傳 ``'utf-8'``\\ (*do_setlocale* " +"引數並無任何效果)。" #: ../../library/os.rst:119 msgid "" From 5ae10df9c1c5da05824e1b2d085d3a11dbc7b19f Mon Sep 17 00:00:00 2001 From: Super Date: Sun, 9 Mar 2025 20:26:06 +0800 Subject: [PATCH 04/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/os.po b/library/os.po index ec25505531..bf49869449 100644 --- a/library/os.po +++ b/library/os.po @@ -228,7 +228,7 @@ msgid "" msgstr "" "請注意,在UTF-8模式中,串流參數會被 :" "envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化偵測 " -"模式一樣)." +"模式一樣)。" #: ../../library/os.rst:131 msgid "" From 8613e8fce4ab8f144be6504caa5136711e6f6731 Mon Sep 17 00:00:00 2001 From: Super Date: Sun, 9 Mar 2025 20:26:15 +0800 Subject: [PATCH 05/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/os.po b/library/os.po index bf49869449..5b8fdc1d31 100644 --- a/library/os.po +++ b/library/os.po @@ -241,7 +241,7 @@ msgid "" "Command line arguments, environment variables and filenames are decoded to " "text using the UTF-8 encoding." msgstr "" -"命令列中的引數、環境變數及檔案名稱以文字形式使用 UTF-8 編碼 " +"命令列引數、環境變數及檔案名稱會以 UTF-8 編碼形式來被解碼成文字。" #: ../../library/os.rst:136 msgid ":func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding." From 8171b6d450c997af85f3e59864687135923de09b Mon Sep 17 00:00:00 2001 From: Super Date: Sun, 9 Mar 2025 20:26:22 +0800 Subject: [PATCH 06/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/os.po b/library/os.po index 5b8fdc1d31..ee0e13f672 100644 --- a/library/os.po +++ b/library/os.po @@ -738,7 +738,7 @@ msgstr "" #: ../../library/os.rst:571 msgid "The function is now always available." msgstr "" -"此函式自現在起,永遠可用" +"此函式現在都會是可用的。" #: ../../library/os.rst:577 msgid "Set the current process's effective group id." From 391d9d62db279256de9fbf5648b1c161fd4036c5 Mon Sep 17 00:00:00 2001 From: Super Date: Sun, 9 Mar 2025 20:26:29 +0800 Subject: [PATCH 07/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/os.po b/library/os.po index ee0e13f672..1d86cb88d2 100644 --- a/library/os.po +++ b/library/os.po @@ -447,8 +447,8 @@ msgid "" "Calling :func:`putenv` directly does not change :data:`os.environ`, so it's " "better to modify :data:`os.environ`." msgstr "" -"直接呼叫 :func:`putenv` 並不會改變 :data:`os.environ`, " -"因此,更適合修改 :data:`os.environ` " +"呼叫 :func:`putenv` 並不會改變 :data:`os.environ`," +"所以建議直接修改 :data:`os.environ`。" #: ../../library/os.rst:216 msgid "" From b58f7cef4695381feb71f2fbd437bd110b4ce31d Mon Sep 17 00:00:00 2001 From: Super Date: Sun, 9 Mar 2025 20:26:37 +0800 Subject: [PATCH 08/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/os.po b/library/os.po index 1d86cb88d2..2108547ab0 100644 --- a/library/os.po +++ b/library/os.po @@ -246,7 +246,7 @@ msgstr "" #: ../../library/os.rst:136 msgid ":func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding." msgstr "" -":func:`os.fsdecode` 和 :func:`os.fsencode` 使用 UTF-8 編碼" +":func:`os.fsdecode` 和 :func:`os.fsencode` 使用 UTF-8 編碼。" #: ../../library/os.rst:137 msgid "" From c7f0dcb2720305acc4f9560da159656aa2cae59c Mon Sep 17 00:00:00 2001 From: Super Date: Mon, 10 Mar 2025 19:50:05 +0800 Subject: [PATCH 09/12] Update library/os.po Co-authored-by: W. H. Wang --- library/os.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/os.po b/library/os.po index 2108547ab0..4709627b4b 100644 --- a/library/os.po +++ b/library/os.po @@ -217,8 +217,8 @@ msgid "" "On Unix, :func:`os.device_encoding` returns ``'utf-8'`` rather than the " "device encoding." msgstr "" -"在Unix中, :func:`os.device_encoding` 回傳 ``'utf-8'`` 而非 " -"裝置編碼" +"在 Unix 中,:func:`os.device_encoding` 回傳 ``'utf-8'`` 而非" +"裝置編碼。" #: ../../library/os.rst:127 msgid "" From 3a13f6d5238c1302bb86ae6294e719cb6b9efa89 Mon Sep 17 00:00:00 2001 From: Super Date: Mon, 10 Mar 2025 19:54:11 +0800 Subject: [PATCH 10/12] update library/os --- library/os.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/os.po b/library/os.po index 4709627b4b..4eeb1e3353 100644 --- a/library/os.po +++ b/library/os.po @@ -226,8 +226,8 @@ msgid "" "envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware " "mode)." msgstr "" -"請注意,在UTF-8模式中,串流參數會被 :" -"envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化偵測 " +"請注意,在UTF-8模式中,基礎的串流設定會被 " +"envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化覺察 " "模式一樣)。" #: ../../library/os.rst:131 From 42ed6f39dabc5372156f441a65b976e717db3248 Mon Sep 17 00:00:00 2001 From: Super Date: Tue, 11 Mar 2025 09:30:44 +0800 Subject: [PATCH 11/12] update os.rst:127 --- library/os.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/os.po b/library/os.po index 4eeb1e3353..713ec79583 100644 --- a/library/os.po +++ b/library/os.po @@ -226,7 +226,7 @@ msgid "" "envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware " "mode)." msgstr "" -"請注意,在UTF-8模式中,基礎的串流設定會被 " +"請注意,在 UTF-8 模式中,標準的串流設定會被 " "envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化覺察 " "模式一樣)。" From 411948a7d86501c3bf28cb70acc19afc5ccce030 Mon Sep 17 00:00:00 2001 From: "W. H. Wang" Date: Tue, 11 Mar 2025 11:20:53 +0800 Subject: [PATCH 12/12] fix(library/os): missing colon --- library/os.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/os.po b/library/os.po index 713ec79583..8e5e0369c7 100644 --- a/library/os.po +++ b/library/os.po @@ -227,7 +227,7 @@ msgid "" "mode)." msgstr "" "請注意,在 UTF-8 模式中,標準的串流設定會被 " -"envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化覺察 " +":envvar:`PYTHONIOENCODING` 覆蓋(如同在預設在地化覺察 " "模式一樣)。" #: ../../library/os.rst:131