@@ -1279,6 +1279,9 @@ msgid ""
12791279"usually displays a ``Tk`` error box with a 'cannot connect' message that "
12801280"directs the user here. It then exits."
12811281msgstr ""
1282+ "IDLE 使用一个套接字在 IDLE GUI 进程和用户代码执行进程之间通信。 当 Shell 启动或重启动时必须建立一个连接。 (重启动会以一个内容为"
1283+ " 'RESTART' 的分隔行来标示)。 如果用户进程无法连接到 GUI 进程,它通常会显示一个包含 'cannot connect' 消息的 "
1284+ "``Tk`` 错误提示框来引导用户。 随后将会退出程序。"
12821285
12831286#: ../../library/idle.rst:676
12841287msgid ""
@@ -1289,6 +1292,10 @@ msgid ""
12891292"diagnose with ``tcpconnect -irv 127.0.0.1 6543`` in one terminal window and "
12901293"``tcplisten <same args>`` in another."
12911294msgstr ""
1295+ "有一个 Unix 系统专属的连接失败是由系统网络设置中错误配置的掩码规则导致的。 当从一个终端启动 IDLE 时,用户将看到一条以 ``** "
1296+ "Invalid host:`` 开头的消息。 有效的值为 ``127.0.0.1 (idlelib.rpc.LOCALHOST)``。 "
1297+ "用户可以在一个终端窗口输入 ``tcpconnect -irv 127.0.0.1 6543`` 并在另一个终端窗口中输入 ``tcplisten "
1298+ "<same args>`` 来进行诊断。"
12921299
12931300#: ../../library/idle.rst:684
12941301msgid ""
@@ -1298,6 +1305,8 @@ msgid ""
12981305"IDLE cannot import the stdlib file. The current fix is to rename the user "
12991306"file."
13001307msgstr ""
1308+ "导致连接失败的一个常见原因是用户创建的文件与标准库模块同名,例如 *random.py* 和 *tkinter.py*。 "
1309+ "当这样的文件与要运行的文件位于同一目录中时,IDLE 将无法导入标准库模块。 可用的解决办法是重命名用户文件。"
13011310
13021311#: ../../library/idle.rst:690
13031312msgid ""
@@ -1307,6 +1316,8 @@ msgid ""
13071316"allow this internal connection because no data is visible on external ports."
13081317" A similar problem is a network mis-configuration that blocks connections."
13091318msgstr ""
1319+ "虽然现在已不太常见,但杀毒软件或防火墙程序也有可能会阻止连接。 如果无法将此类程序设为允许连接,那么为了运行 IDLE 就必须将其关闭。 "
1320+ "允许这样的内部连接是安全的,因为数据在外部端口上不可见。 一个类似的问题是错误的网络配置阻止了连接。"
13101321
13111322#: ../../library/idle.rst:697
13121323msgid ""
0 commit comments