77# Shengjing Zhu <[email protected] >, 201988# Iterator <[email protected] >, 201999# ppcfish <[email protected] >, 201910+ # Freesand Leo <[email protected] >, 20221011#
1112#, fuzzy
1213msgid ""
@@ -15,7 +16,7 @@ msgstr ""
1516"Report-Msgid-Bugs-To : \n "
1617"POT-Creation-Date : 2021-01-01 16:02+0000\n "
1718"PO-Revision-Date : 2019-09-01 03:25+0000\n "
18- "Last-Translator : ppcfish <ppcfish@gmail .com>, 2019 \n "
19+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2022 \n "
1920"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2021"MIME-Version : 1.0\n "
2122"Content-Type : text/plain; charset=UTF-8\n "
@@ -326,7 +327,7 @@ msgid ""
326327"Move the cursor to the beginning of the line requested and make that line "
327328"visible. A request past the end of the file goes to the end. Clear any "
328329"selection and update the line and column status."
329- msgstr ""
330+ msgstr "将光标移到所请求行的开头并使该行可见。 对于超过文件尾的请求将会移到文件尾。 清除所有选区并更新行列状态。 "
330331
331332#: ../../library/idle.rst:151
332333msgid "Show Completions"
@@ -585,6 +586,8 @@ msgid ""
585586"and lines found by Find in Files. Also available in the context menu of the "
586587"Shell window and Output windows."
587588msgstr ""
589+ "查看当前行。 以光标提示,且上一行为文件名和行号。 如果找到目标,如果文件尚未打开则打开该文件,并显示目标行。 "
590+ "使用此菜单项来查看异常回溯中引用的源代码行以及用文件中查找功能找到的行。 也可在 Shell 窗口和 Output 窗口的上下文菜单中使用。"
588591
589592#: ../../library/idle.rst:281
590593msgid "Debugger (toggle)"
@@ -651,6 +654,8 @@ msgid ""
651654"the code which has scrolled above the top of the window. See :ref:`Code "
652655"Context <code-context>` in the Editing and Navigation section below."
653656msgstr ""
657+ "在编辑窗口顶部打开一个面板来显示在窗口顶部滚动的代码块上下文。 请参阅下文“编辑与导航”章节中的 :ref:`代码上下文 <code-"
658+ "context>`。"
654659
655660#: ../../library/idle.rst:313
656661msgid "Show/Hide Line Numbers (Editor Window only)"
@@ -662,6 +667,7 @@ msgid ""
662667"line of text. The default is off, which may be changed in the preferences "
663668"(see :ref:`Setting preferences <preferences>`)."
664669msgstr ""
670+ "在编辑窗口左侧打开一个显示代码文本行编号的列。 默认为关闭显示,这可以在首选项中修改 (参见 :ref:`设置首选项 <preferences>`)。"
665671
666672#: ../../library/idle.rst:321
667673msgid "Zoom/Restore Height"
@@ -676,6 +682,8 @@ msgid ""
676682"Changing screen settings may invalidate the saved height. This toggle has "
677683"no effect when a window is maximized."
678684msgstr ""
685+ "在窗口的正常尺寸和最大高度之间进行切换。 初始尺寸默认为 40 行每行 80 字符,除非在配置 IDLE 对话框的通用选项卡中做了修改。 "
686+ "屏幕的最大高度由首次在屏幕上将缩小的窗口最大化的操作来确定。 改变屏幕设置可能使保存的高度失效。 此切换操作在窗口最大化状态下无效。"
679687
680688#: ../../library/idle.rst:324
681689msgid "Window menu (Shell and Editor)"
@@ -745,7 +753,7 @@ msgstr "上下文菜单"
745753msgid ""
746754"Open a context menu by right-clicking in a window (Control-click on macOS). "
747755"Context menus have the standard clipboard functions also on the Edit menu."
748- msgstr ""
756+ msgstr "通过在窗口中右击(在 macOS 上则为按住 Control 键点击)来打开一个上下文菜单。 上下文菜单也具有编辑菜单中的标准剪贴板功能。 "
749757
750758#: ../../library/idle.rst:373
751759msgid ""
@@ -754,6 +762,7 @@ msgid ""
754762"the debugger. Breakpoints for a file are saved in the user's ``.idlerc`` "
755763"directory."
756764msgstr ""
765+ "编辑器窗口也具有断点功能。 设置了断点的行会被特别标记。 断点仅在启用调试器运行时有效。 文件的断点会被保存在用户的 ``.idlerc`` 目录中。"
757766
758767#: ../../library/idle.rst:379
759768msgid "Set Breakpoint"
@@ -787,7 +796,7 @@ msgstr "与调试菜单相同。"
787796msgid ""
788797"The Shell window also has an output squeezing facility explained in the "
789798"*Python Shell window* subsection below."
790- msgstr ""
799+ msgstr "Shell 窗口也有一个输出折叠功能,参见下文的 *Python Shell 窗口* 小节。 "
791800
792801#: ../../library/idle.rst:395
793802msgid "Squeeze"
@@ -797,7 +806,7 @@ msgstr "压缩"
797806msgid ""
798807"If the cursor is over an output line, squeeze all the output between the "
799808"code above and the prompt below down to a 'Squeezed text' label."
800- msgstr ""
809+ msgstr "如果将光标位于输出行上,则会折叠在上方代码和下方提示直到 'Squeezed text' 标签之间的所有输出。 "
801810
802811#: ../../library/idle.rst:400
803812msgid "Editing and navigation"
@@ -813,6 +822,8 @@ msgid ""
813822"you start IDLE. Thereafter, use the File menu. There can be only one open "
814823"editor window for a given file."
815824msgstr ""
825+ "IDLE 可以在启动时打开编辑器窗口,这取决于选项设置和你启动 IDLE 的方式。 在此之后,请使用 File 菜单。 "
826+ "对于给定的文件只能打开一个编辑器窗口。"
816827
817828#: ../../library/idle.rst:409
818829msgid ""
@@ -821,12 +832,14 @@ msgid ""
821832"number ('Ln') and column number ('Col'). Line numbers start with 1; column "
822833"numbers with 0."
823834msgstr ""
835+ "标题栏包含文件名称、完整路径,以及运行该窗口的 Python 和 IDLE 版本。 状态栏包含行号 ('Ln') 和列号 ('Col')。 行号从 1 "
836+ "开始;列号则从 0 开始。"
824837
825838#: ../../library/idle.rst:414
826839msgid ""
827840"IDLE assumes that files with a known .py* extension contain Python code and "
828841"that other files do not. Run Python code with the Run menu."
829- msgstr ""
842+ msgstr "IDE 会定扩展名为 .py* 的文件包含 Python 代码而其他文件不包含。 可使用 Run 菜单来运行 Python 代码。 "
830843
831844#: ../../library/idle.rst:418
832845msgid "Key bindings"
@@ -882,24 +895,24 @@ msgstr ":kbd:`C-k` 删除行(但未将其放入剪贴板)"
882895
883896#: ../../library/idle.rst:443
884897msgid ":kbd:`C-l` center window around the insertion point"
885- msgstr ""
898+ msgstr ":kbd:`C-l` 将插入点设为窗口中心 "
886899
887900#: ../../library/idle.rst:445
888901msgid ""
889902":kbd:`C-b` go backward one character without deleting (usually you can also "
890903"use the cursor key for this)"
891- msgstr ""
904+ msgstr ":kbd:`C-b` 后退一个字符而不删除该字符(通常你也可以用方向键进行此操作) "
892905
893906#: ../../library/idle.rst:448
894907msgid ""
895908":kbd:`C-f` go forward one character without deleting (usually you can also "
896909"use the cursor key for this)"
897- msgstr ""
910+ msgstr ":kbd:`C-f` 前进一个字符而不删除该字符(通常你也可以用方向键进行此操作) "
898911
899912#: ../../library/idle.rst:451
900913msgid ""
901914":kbd:`C-p` go up one line (usually you can also use the cursor key for this)"
902- msgstr ""
915+ msgstr ":kbd:`C-p` 向上一行(通常你也可以用方向键进行此操作) "
903916
904917#: ../../library/idle.rst:454
905918msgid ":kbd:`C-d` delete next character"
@@ -909,7 +922,7 @@ msgstr ":kbd:`C-d` 删除下一个字符"
909922msgid ""
910923"Standard keybindings (like :kbd:`C-c` to copy and :kbd:`C-v` to paste) may "
911924"work. Keybindings are selected in the Configure IDLE dialog."
912- msgstr ""
925+ msgstr "标准的键绑定(例如 :kbd:`C-c` 复制和 :kbd:`C-v` 粘贴)仍会有效。 键绑定可在配置 IDLE 对话框中选择。 "
913926
914927#: ../../library/idle.rst:460
915928msgid "Automatic indentation"
@@ -924,12 +937,16 @@ msgid ""
924937"Python Shell window one tab), number depends on Indent width. Currently, "
925938"tabs are restricted to four spaces due to Tcl/Tk limitations."
926939msgstr ""
940+ "在一个代码块开头的语句之后,下一行会缩进 4 个空格符(在 Python Shell 窗口中是一个制表符)。 在特定关键字之后(break, "
941+ "return 等),下一行将不再缩进。 在开头的缩进中,按 :kbd:`Backspace` 将会删除 4 个空格符。 :kbd:`Tab` "
942+ "则会插入空格符(在 Python Shell 窗口中是一个制表符),具体数量取决于缩进宽度。 目前,Tab 键按照 Tcl/Tk "
943+ "的规定设置为四个空格符。"
927944
928945#: ../../library/idle.rst:469
929946msgid ""
930947"See also the indent/dedent region commands on the :ref:`Format menu <format-"
931948"menu>`."
932- msgstr ""
949+ msgstr "另请参阅 :ref:`Format 菜单 <format-menu>` 的缩进/取消缩进区的命令。 "
933950
934951#: ../../library/idle.rst:476
935952msgid "Completions"
@@ -1062,12 +1079,16 @@ msgid ""
10621079"line will display. Clicking on a line in the context pane will move that "
10631080"line to the top of the editor."
10641081msgstr ""
1082+ "在一个包含 Python 代码的编辑器窗口内部,可以切换代码上下文以便显示或隐藏窗口顶部的面板。 当显示时,此面板可以冻结代码块的开头行,例如以 "
1083+ "``class``, ``def`` 或 ``if`` 关键字开头的行,这样的行在不显示时面板时可能离开视野。 "
1084+ "此面板的大小将根据需要扩展和收缩以显示当前层级的全部上下文,直至达到配置 IDLE 对话框中所定义的最大行数(默认为 15)。 "
1085+ "如果如果没有当前上下文行而此功能被启用,则将显示一个空行。 点击上下文面板中的某一行将把该行移至编辑器顶部。"
10651086
10661087#: ../../library/idle.rst:565
10671088msgid ""
10681089"The text and background colors for the context pane can be configured under "
10691090"the Highlights tab in the Configure IDLE dialog."
1070- msgstr ""
1091+ msgstr "上下文面板的文本和背景颜色可在配置 IDLE 对话框的 Highlights 选项卡中进行配置。 "
10711092
10721093#: ../../library/idle.rst:569
10731094msgid "Python Shell window"
@@ -1077,7 +1098,7 @@ msgstr "Python Shell 窗口"
10771098msgid ""
10781099"With IDLE's Shell, one enters, edits, and recalls complete statements. Most "
10791100"consoles and terminals only work with a single physical line at a time."
1080- msgstr ""
1101+ msgstr "通过 IDLE 的 Shell 可以输入、编辑和召回整条语句。 大部分控制台和终端在同一时刻只能处理单个物理行。 "
10811102
10821103#: ../../library/idle.rst:574
10831104msgid ""
@@ -1086,13 +1107,15 @@ msgid ""
10861107" more that one statement into Shell, the result will be a :exc:`SyntaxError`"
10871108" when multiple statements are compiled as if they were one."
10881109msgstr ""
1110+ "当向 Shell 粘贴代码时,它并不会被编译和执行,直到按下 :kbd:`Return` 键。 在此之前可以先编辑所粘贴的代码。 如果向 Shell "
1111+ "粘贴了多行代码,多条语句会被当作一条语句来编译,结果将引发 :exc:`SyntaxError`。"
10891112
10901113#: ../../library/idle.rst:579
10911114msgid ""
10921115"The editing features described in previous subsections work when entering "
10931116"code interactively. IDLE's Shell window also responds to the following "
10941117"keys."
1095- msgstr ""
1118+ msgstr "之前小节中描述的编辑功能在交互式地输入代码时也可使用。 IDLE 的 Shell 窗口还会响应以下按键。 "
10961119
10971120#: ../../library/idle.rst:582
10981121msgid ":kbd:`C-c` interrupts executing command"
@@ -1101,11 +1124,11 @@ msgstr ":kbd:`C-c` 中断执行命令"
11011124#: ../../library/idle.rst:584
11021125msgid ""
11031126":kbd:`C-d` sends end-of-file; closes window if typed at a ``>>>`` prompt"
1104- msgstr ""
1127+ msgstr ":kbd:`C-d` 发送文件结束命令;如果在 ``>>>`` 提示符后按下会关闭窗口。 "
11051128
11061129#: ../../library/idle.rst:586
11071130msgid ":kbd:`Alt-/` (Expand word) is also useful to reduce typing"
1108- msgstr ""
1131+ msgstr ":kbd:`Alt-/` (扩展单词) 也有助于减少输入量 "
11091132
11101133#: ../../library/idle.rst:588
11111134msgid "Command history"
@@ -1115,15 +1138,15 @@ msgstr "历史命令"
11151138msgid ""
11161139":kbd:`Alt-p` retrieves previous command matching what you have typed. On "
11171140"macOS use :kbd:`C-p`."
1118- msgstr ""
1141+ msgstr ":kbd:`Alt-p` 提取与你所输入键匹配的前一条命令。 在 macOS 上请使用 :kbd:`C-p`。 "
11191142
11201143#: ../../library/idle.rst:593
11211144msgid ":kbd:`Alt-n` retrieves next. On macOS use :kbd:`C-n`."
1122- msgstr ""
1145+ msgstr ":kbd:`Alt-n` 提取下一条命令。 在 macOS 上请使用 :kbd:`C-n`。 "
11231146
11241147#: ../../library/idle.rst:595
11251148msgid ":kbd:`Return` while on any previous command retrieves that command"
1126- msgstr ""
1149+ msgstr "在任意的前一条命令上按 :kbd:`Return` 将提取该命令 "
11271150
11281151#: ../../library/idle.rst:598
11291152msgid "Text colors"
@@ -1138,6 +1161,9 @@ msgid ""
11381161"``def``, strings, and comments. For any text window, these are the cursor "
11391162"(when present), found text (when possible), and selected text."
11401163msgstr ""
1164+ "IDLE 文本默认为白底黑字,但有特殊含义的文本将以彩色显示。 对于 Shell 来说包括 Shell 输出,Shell 错误,用户输出和用户错误。 "
1165+ "对于 Shell 提示符下或编辑器中的 Python 代码来说则包括关键字,内置类和函数名称,``class`` 和 ``def`` "
1166+ "之后的名称,字符串和注释等。 对于任意文本窗口来说则包括光标(如果存在)、找到的文本(如果可能)和选定的文本。"
11411167
11421168#: ../../library/idle.rst:607
11431169msgid ""
0 commit comments