@@ -597,16 +597,19 @@ msgid ""
597597" error, the Python interpreter won't execute it at all, and the HTTP server "
598598"will most likely send a cryptic error to the client."
599599msgstr ""
600+ "很不幸,当你在命令行中尝试 CGI 脚本时它通常会无法运行,而能在命令行中完美运行的脚本则可能会在运行于服务器时神秘地失败。 "
601+ "但有一个理由使你仍然应当在命令行中测试你的脚本:如果它包含语法错误,Python 解释器将根本不会执行它,而 HTTP "
602+ "服务器将很可能向客户端发送令人费解的错误信息。"
600603
601604#: ../../library/cgi.rst:439
602605msgid ""
603606"Assuming your script has no syntax errors, yet it does not work, you have no"
604607" choice but to read the next section."
605- msgstr ""
608+ msgstr "假定你的脚本没有语法错误,但它仍然无法起作用,你将别无选择,只能继续阅读下一节。 "
606609
607610#: ../../library/cgi.rst:444
608611msgid "Debugging CGI scripts"
609- msgstr ""
612+ msgstr "调试 CGI 脚本 "
610613
611614#: ../../library/cgi.rst:448
612615msgid ""
@@ -632,18 +635,22 @@ msgid ""
632635"the :file:`cgi.py` script has been installed correctly. If you follow the "
633636"same procedure for your own script, you should now be able to debug it."
634637msgstr ""
638+ "如果此操作给出类型为 404 的错误,说明服务器找不到此脚本 -- 也许你需要将它安装到不同的目录。 "
639+ "如果它给出另一种错误,说明存在安装问题,你应当解决此问题才能继续操作。 如果你得到一个格式良好的环境和表单内容清单(在这个例子中,应当会列出的有字段 "
640+ "\" addr\" 值为 \" At Home\" 以及 \" name\" 值为 \" Joe Blow\" ),则说明 :file:`cgi.py` "
641+ "脚本已正确安装。 如果你为自己的脚本执行了同样的过程,现在你应该能够调试它了。"
635642
636643#: ../../library/cgi.rst:470
637644msgid ""
638645"The next step could be to call the :mod:`cgi` module's :func:`test` function"
639646" from your script: replace its main code with the single statement ::"
640- msgstr ""
647+ msgstr "下一步骤可以是在你的脚本中调用 :mod:`cgi` 模块的 :func:`test` 函数:用这一条语句替换它的主代码 :: "
641648
642649#: ../../library/cgi.rst:475
643650msgid ""
644651"This should produce the same results as those gotten from installing the "
645652":file:`cgi.py` file itself."
646- msgstr ""
653+ msgstr "这将产生从安装 :file:`cgi.py` 文件本身所得到的相同结果。 "
647654
648655#: ../../library/cgi.rst:478
649656msgid ""
0 commit comments