Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 657f35e

Browse files
[po] auto sync
1 parent 5b28ace commit 657f35e

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

library/cgi.po

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,16 +573,19 @@ msgid ""
573573
" error, the Python interpreter won't execute it at all, and the HTTP server "
574574
"will most likely send a cryptic error to the client."
575575
msgstr ""
576+
"很不幸,当你在命令行中尝试 CGI 脚本时它通常会无法运行,而能在命令行中完美运行的脚本则可能会在运行于服务器时神秘地失败。 "
577+
"但有一个理由使你仍然应当在命令行中测试你的脚本:如果它包含语法错误,Python 解释器将根本不会执行它,而 HTTP "
578+
"服务器将很可能向客户端发送令人费解的错误信息。"
576579

577580
#: ../../library/cgi.rst:413
578581
msgid ""
579582
"Assuming your script has no syntax errors, yet it does not work, you have no"
580583
" choice but to read the next section."
581-
msgstr ""
584+
msgstr "假定你的脚本没有语法错误,但它仍然无法起作用,你将别无选择,只能继续阅读下一节。"
582585

583586
#: ../../library/cgi.rst:418
584587
msgid "Debugging CGI scripts"
585-
msgstr ""
588+
msgstr "调试 CGI 脚本"
586589

587590
#: ../../library/cgi.rst:422
588591
msgid ""
@@ -596,6 +599,10 @@ msgid ""
596599
"directory, it should be possible to send it a request by entering a URL into"
597600
" your browser of the form:"
598601
msgstr ""
602+
"首先,请检查是否有安装上的小错误 --- 仔细阅读上面关于安装 CGI 脚本的部分可以使你节省大量时间。 "
603+
"如果你不确定你是否正确理解了安装过程,请尝试将此模块 (:file:`cgi.py`) 的副本作为 CGI 脚本安装。 "
604+
"当作为脚本被发起调用时,该文件将以 HTML 格式转储其环境和表单内容。 请给它赋予正确的模式等,并向它发送一个请求。 如果它是安装在标准的 :file"
605+
":`cgi-bin` 目录下,应该可以通过在你的浏览器中输入表单的 URL 来向它发送请求。"
599606

600607
#: ../../library/cgi.rst:435
601608
msgid ""
@@ -608,18 +615,22 @@ msgid ""
608615
"the :file:`cgi.py` script has been installed correctly. If you follow the "
609616
"same procedure for your own script, you should now be able to debug it."
610617
msgstr ""
618+
"如果此操作给出类型为 404 的错误,说明服务器找不到此脚本 -- 也许你需要将它安装到不同的目录。 "
619+
"如果它给出另一种错误,说明存在安装问题,你应当解决此问题才能继续操作。 如果你得到一个格式良好的环境和表单内容清单(在这个例子中,应当会列出的有字段 "
620+
"\"addr\" 值为 \"At Home\" 以及 \"name\" 值为 \"Joe Blow\"),则说明 :file:`cgi.py` "
621+
"脚本已正确安装。 如果你为自己的脚本执行了同样的过程,现在你应该能够调试它了。"
611622

612623
#: ../../library/cgi.rst:444
613624
msgid ""
614625
"The next step could be to call the :mod:`cgi` module's :func:`test` function"
615626
" from your script: replace its main code with the single statement ::"
616-
msgstr ""
627+
msgstr "下一步骤可以是在你的脚本中调用 :mod:`cgi` 模块的 :func:`test` 函数:用这一条语句替换它的主代码 ::"
617628

618629
#: ../../library/cgi.rst:449
619630
msgid ""
620631
"This should produce the same results as those gotten from installing the "
621632
":file:`cgi.py` file itself."
622-
msgstr ""
633+
msgstr "这将产生从安装 :file:`cgi.py` 文件本身所得到的相同结果。"
623634

624635
#: ../../library/cgi.rst:452
625636
msgid ""

0 commit comments

Comments
 (0)