Skip to content

Commit ce6e6f8

Browse files
sync with cpython fd9db61a
1 parent becfe0f commit ce6e6f8

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

library/linecache.po

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.14\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-09-08 15:25+0800\n"
10+
"POT-Creation-Date: 2025-12-28 00:16+0000\n"
1111
"PO-Revision-Date: 2025-07-07 23:50+0800\n"
1212
"Last-Translator: Weilin Du <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -31,24 +31,23 @@ msgstr "**原始碼:**\\ :source:`Lib/linecache.py`"
3131
msgid ""
3232
"The :mod:`linecache` module allows one to get any line from a Python source "
3333
"file, while attempting to optimize internally, using a cache, the common "
34-
"case where many lines are read from a single file. This is used by "
35-
"the :mod:`traceback` module to retrieve source lines for inclusion in the "
36-
"formatted traceback."
34+
"case where many lines are read from a single file. This is used by the :mod:"
35+
"`traceback` module to retrieve source lines for inclusion in the formatted "
36+
"traceback."
3737
msgstr ""
3838
":mod:`linecache` 模組允許從 Python 原始碼檔案中取得任何一行。當嘗試在程式內部"
39-
"進行最佳化,會使用快取,這是從單一檔案讀取許多行的常見情況。 這"
40-
"被 :mod:`traceback` 模組用來擷取來自原始碼檔案的行,以包含在格式化的 "
41-
"traceback 中。"
39+
"進行最佳化,會使用快取,這是從單一檔案讀取許多行的常見情況。 這被 :mod:"
40+
"`traceback` 模組用來擷取來自原始碼檔案的行,以包含在格式化的 traceback 中。"
4241

4342
#: ../../library/linecache.rst:18
4443
msgid ""
4544
"The :func:`tokenize.open` function is used to open files. This function "
4645
"uses :func:`tokenize.detect_encoding` to get the encoding of the file; in "
4746
"the absence of an encoding token, the file encoding defaults to UTF-8."
4847
msgstr ""
49-
":func:`tokenize.open` 函式用來開啟檔案。這個函式使"
50-
"用 :func:`tokenize.detect_encoding` 來取得檔案的編碼;在沒有編碼標記的情況"
51-
"下,檔案編碼預設為 UTF-8。"
48+
":func:`tokenize.open` 函式用來開啟檔案。這個函式使用 :func:`tokenize."
49+
"detect_encoding` 來取得檔案的編碼;在沒有編碼標記的情況下,檔案編碼預設為 "
50+
"UTF-8。"
5251

5352
#: ../../library/linecache.rst:22
5453
msgid "The :mod:`linecache` module defines the following functions:"
@@ -66,21 +65,21 @@ msgstr ""
6665
#: ../../library/linecache.rst:33
6766
msgid ""
6867
"If *filename* indicates a frozen module (starting with ``'<frozen '``), the "
69-
"function will attepmt to get the real file name from "
68+
"function will attempt to get the real file name from "
7069
"``module_globals['__file__']`` if *module_globals* is not ``None``."
7170
msgstr ""
7271

7372
#: ../../library/linecache.rst:37
7473
msgid ""
75-
"If a file named *filename* is not found, the function first checks for "
76-
"a :pep:`302` ``__loader__`` in *module_globals*. If there is such a loader "
77-
"and it defines a ``get_source`` method, then that determines the source "
78-
"lines (if ``get_source()`` returns ``None``, then ``''`` is returned). "
79-
"Finally, if *filename* is a relative filename, it is looked up relative to "
80-
"the entries in the module search path, ``sys.path``."
74+
"If a file named *filename* is not found, the function first checks for a :"
75+
"pep:`302` ``__loader__`` in *module_globals*. If there is such a loader and "
76+
"it defines a ``get_source`` method, then that determines the source lines "
77+
"(if ``get_source()`` returns ``None``, then ``''`` is returned). Finally, if "
78+
"*filename* is a relative filename, it is looked up relative to the entries "
79+
"in the module search path, ``sys.path``."
8180
msgstr ""
82-
"如果找不到名為 *filename* 的檔案,函式會先檢查 *module_globals* 中是否"
83-
"有 :pep:`302` `__loader__` 載入器。如果有這樣一個載入器,而且它定義了一個 "
81+
"如果找不到名為 *filename* 的檔案,函式會先檢查 *module_globals* 中是否有 :"
82+
"pep:`302` `__loader__` 載入器。如果有這樣一個載入器,而且它定義了一個 "
8483
"``get_source`` 方法,這之後它就會決定原始碼行(如果 ``get_source()`` 回傳 "
8584
"``None``,那麼就會回傳 ``''``)。最後,如果 *filename* 是相對的檔案名稱,則會"
8685
"相對於模組搜尋路徑 ``sys.path`` 中的項目進行搜尋。"

library/os.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-11-19 00:14+0000\n"
9+
"POT-Creation-Date: 2025-12-28 00:16+0000\n"
1010
"PO-Revision-Date: 2024-04-29 15:24+0800\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -6380,7 +6380,7 @@ msgstr ""
63806380
#: ../../library/os.rst:5617
63816381
msgid ""
63826382
"If :option:`-X cpu_count <-X>` is given or :envvar:`PYTHON_CPU_COUNT` is "
6383-
"set, :func:`cpu_count` returns the overridden value *n*."
6383+
"set, :func:`cpu_count` returns the override value *n*."
63846384
msgstr ""
63856385

63866386
#: ../../library/os.rst:5624
@@ -6406,7 +6406,7 @@ msgstr ""
64066406
#: ../../library/os.rst:5640
64076407
msgid ""
64086408
"If :option:`-X cpu_count <-X>` is given or :envvar:`PYTHON_CPU_COUNT` is "
6409-
"set, :func:`process_cpu_count` returns the overridden value *n*."
6409+
"set, :func:`process_cpu_count` returns the override value *n*."
64106410
msgstr ""
64116411

64126412
#: ../../library/os.rst:5643

0 commit comments

Comments
 (0)