8000 [po] auto sync · python/python-docs-zh-cn@7f2a574 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f2a574

Browse files
[po] auto sync
1 parent 825f13a commit 7f2a574

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.02%", "updated_at": "2025-02-24T01:19:23Z"}
1+
{"translation": "81.04%", "updated_at": "2025-02-26T02:19:42Z"}

library/readline.po

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,20 @@ msgstr "下列函数会在行缓冲区上操作。"
151151
msgid ""
152152
"Return the current contents of the line buffer (:c:data:`!rl_line_buffer` in"
153153
" the underlying library)."
154-
msgstr ""
154+
msgstr "返回行缓冲区的当前内容 (底层库中的 :c:data:`!rl_line_buffer`)。"
155155

156156
#: ../../library/readline.rst:91
157157
msgid ""
158158
"Insert text into the line buffer at the cursor position. This calls "
159159
":c:func:`!rl_insert_text` in the underlying library, but ignores the return "
160160
"value."
161-
msgstr ""
161+
msgstr "将文本插入到行缓冲区的当前游标位置。 该函数会调用底层库中的 :c:func:`!rl_insert_text`,但会忽略其返回值。"
162162

163163
#: ../../library/readline.rst:98
164164
msgid ""
165165
"Change what's displayed on the screen to reflect the current contents of the"
166166
" line buffer. This calls :c:func:`!rl_redisplay` in the underlying library."
167-
msgstr ""
167+
msgstr "改变屏幕的显示以反映行缓冲区的当前内容。 该函数会调用底层库中的 :c:func:`!rl_redisplay`。"
168168

169169
#: ../../library/readline.rst:103
170170
msgid "History file"
@@ -180,13 +180,17 @@ msgid ""
180180
" filename is :file:`~/.history`. This calls :c:func:`!read_history` in the "< 10000 /span>
181181
"underlying library."
182182
msgstr ""
183+
"载入一个 readline 历史文件,并将其添加到历史列表。 默认文件名为 :file:`~/.history`。 此函数会调用底层库中的 "
184+
":c:func:`!read_history`。"
183185

184186
#: ../../library/readline.rst:117
185187
msgid ""
186188
"Save the history list to a readline history file, overwriting any existing "
187189
"file. The default filename is :file:`~/.history`. This calls "
188190
":c:func:`!write_history` in the underlying library."
189191
msgstr ""
192+
"将历史列表保存到 readline 历史文件,覆盖任何现有的文件。 默认文件名为 :file:`~/.history`。 此函数会调用底层库中的 "
193+
":c:func:`!write_history`。"
190194

191195
#: ../../library/readline.rst:124
192196
msgid ""
@@ -195,6 +199,8 @@ msgid ""
195199
":c:func:`!append_history` in the underlying library. This function only "
196200
"exists if Python was compiled for a version of the library that supports it."
197201
msgstr ""
202+
"将历史列表的最后 *nelements* 项添加到历史文件。 默认文件名为 :file:`~/.history`。 该文件必须已存在。 "
203+
"此函数会调用底层库中的 :c:func:`!append_history`。 此函数仅当 Python 是针对支持该功能的库版本编译时才会存在。"
198204

199205
#: ../../library/readline.rst:136
200206
msgid ""
@@ -203,6 +209,8 @@ msgid ""
203209
"file, by calling :c:func:`!history_truncate_file` in the underlying library."
204210
" Negative values imply unlimited history file size."
205211
msgstr ""
212+
"设置或返回需要保存到历史文件的条目行数。 :func:`write_history_file` 函数会通过调用底层库中的 "
213+
":c:func:`!history_truncate_file` 以使用该值来截取历史文件。 负值意味着不限制历史文件的大小。"
206214

207215
#: ../../library/readline.rst:144
208216
msgid "History list"
@@ -218,6 +226,8 @@ msgid ""
218226
"underlying library. The Python function only exists if Python was compiled "
219227
"for a version of the library that supports it."
220228
msgstr ""
229+
"清空当前历史。 此函数会调用底层库中的 :c:func:`!clear_history`。 此 Python 函数仅当 Python "
230+
"是针对支持该功能的库版本编译时才会存在。"
221231

222232
#: ../../library/readline.rst:158
223233
msgid ""
@@ -231,13 +241,14 @@ msgid ""
231241
"Return the current contents of history item at *index*. The item index is "
232242
"one-based. This calls :c:func:`!history_get` in the underlying library."
233243
msgstr ""
244+
"返回 *index* 号位置上的历史条目的当前内容。 条目索引从一开始。 此函数会调用底层库中的 :c:func:`!history_get`。"
234245

235246
#: ../../library/readline.rst:171
236247
msgid ""
237248
"Remove history item specified by its position from the history. The position"
238249
" is zero-based. This calls :c:func:`!remove_history` in the underlying "
239250
"library."
240-
msgstr ""
251+
msgstr "从历史列表中移除指定位置上的历史条目。 条目位置从零开始。 此函数会调用底层库中的 :c:func:`!remove_history`。"
241252

242253
#: ../../library/readline.rst:178
243254
msgid ""

0 commit comments

Comments
 (0)
0