-
-
Notifications
You must be signed in to change notification settings - Fork 404
Expand file tree
/
Copy pathcgitb.po
More file actions
100 lines (90 loc) · 4.27 KB
/
cgitb.po
File metadata and controls
100 lines (90 loc) · 4.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Copyright (C) 2001-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
# Maintained by the python-doc-es workteam.
# docs-es@python.org / https://mail.python.org/mailman3/lists/docs-es.python.org/
# Check https://github.com/PyCampES/python-docs-es/blob/3.7/TRANSLATORS to get the list of volunteers
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-06 11:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: python-doc-es (https://mail.python.org/mailman3/lists/docs-es.python.org)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/cgitb.rst:2
msgid ":mod:`cgitb` --- Traceback manager for CGI scripts"
msgstr ""
#: ../Doc/library/cgitb.rst:10
msgid "**Source code:** :source:`Lib/cgitb.py`"
msgstr ""
#: ../Doc/library/cgitb.rst:20
msgid ""
"The :mod:`cgitb` module provides a special exception handler for Python "
"scripts. (Its name is a bit misleading. It was originally designed to "
"display extensive traceback information in HTML for CGI scripts. It was "
"later generalized to also display this information in plain text.) After "
"this module is activated, if an uncaught exception occurs, a detailed, "
"formatted report will be displayed. The report includes a traceback showing "
"excerpts of the source code for each level, as well as the values of the "
"arguments and local variables to currently running functions, to help you "
"debug the problem. Optionally, you can save this information to a file "
"instead of sending it to the browser."
msgstr ""
#: ../Doc/library/cgitb.rst:30
msgid "To enable this feature, simply add this to the top of your CGI script::"
msgstr ""
#: ../Doc/library/cgitb.rst:35
msgid ""
"The options to the :func:`enable` function control whether the report is "
"displayed in the browser and whether the report is logged to a file for "
"later analysis."
msgstr ""
#: ../Doc/library/cgitb.rst:44
msgid ""
"This function causes the :mod:`cgitb` module to take over the interpreter's "
"default handling for exceptions by setting the value of :attr:`sys."
"excepthook`."
msgstr ""
#: ../Doc/library/cgitb.rst:47
msgid ""
"The optional argument *display* defaults to ``1`` and can be set to ``0`` to "
"suppress sending the traceback to the browser. If the argument *logdir* is "
"present, the traceback reports are written to files. The value of *logdir* "
"should be a directory where these files will be placed. The optional "
"argument *context* is the number of lines of context to display around the "
"current line of source code in the traceback; this defaults to ``5``. If the "
"optional argument *format* is ``\"html\"``, the output is formatted as "
"HTML. Any other value forces plain text output. The default value is ``"
"\"html\"``."
msgstr ""
#: ../Doc/library/cgitb.rst:59
msgid ""
"This function handles the exception described by *info* (a 3-tuple "
"containing the result of :func:`sys.exc_info`), formatting its traceback as "
"text and returning the result as a string. The optional argument *context* "
"is the number of lines of context to display around the current line of "
"source code in the traceback; this defaults to ``5``."
msgstr ""
#: ../Doc/library/cgitb.rst:68
msgid ""
"This function handles the exception described by *info* (a 3-tuple "
"containing the result of :func:`sys.exc_info`), formatting its traceback as "
"HTML and returning the result as a string. The optional argument *context* "
"is the number of lines of context to display around the current line of "
"source code in the traceback; this defaults to ``5``."
msgstr ""
#: ../Doc/library/cgitb.rst:77
msgid ""
"This function handles an exception using the default settings (that is, show "
"a report in the browser, but don't log to a file). This can be used when "
"you've caught an exception and want to report it using :mod:`cgitb`. The "
"optional *info* argument should be a 3-tuple containing an exception type, "
"exception value, and traceback object, exactly like the tuple returned by :"
"func:`sys.exc_info`. If the *info* argument is not supplied, the current "
"exception is obtained from :func:`sys.exc_info`."
msgstr ""