diff options
Diffstat (limited to 'docs/_locale/pt_BR/LC_MESSAGES/recipes.po')
-rw-r--r-- | docs/_locale/pt_BR/LC_MESSAGES/recipes.po | 115 |
1 files changed, 66 insertions, 49 deletions
diff --git a/docs/_locale/pt_BR/LC_MESSAGES/recipes.po b/docs/_locale/pt_BR/LC_MESSAGES/recipes.po index f6dc330..e92d01a 100644 --- a/docs/_locale/pt_BR/LC_MESSAGES/recipes.po +++ b/docs/_locale/pt_BR/LC_MESSAGES/recipes.po @@ -1,5 +1,5 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) 2009-2017, Marcel Hellkamp +# Copyright (C) 2009-2020, Marcel Hellkamp # This file is distributed under the same license as the Bottle package. # # Translators: @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: bottle\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-12-19 14:15+0100\n" -"PO-Revision-Date: 2015-12-13 21:06+0000\n" +"POT-Creation-Date: 2020-12-31 18:35+0100\n" +"PO-Revision-Date: 2020-12-31 17:35+0000\n" "Last-Translator: defnull <marc@gsites.de>\n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/bottle/bottle/language/pt_BR/)\n" "MIME-Version: 1.0\n" @@ -38,11 +38,22 @@ msgid "" "yourself. Here is an example for beaker sessions with a file-based backend::" msgstr "" -#: ../../recipes.rst:46 +#: ../../recipes.rst:45 +msgid "" +"WARNING: Beaker's SessionMiddleware is not thread safe. If two concurrent " +"requests modify the same session at the same time, one of the updates might " +"get lost. For this reason, sessions should only be populated once and " +"treated as a read-only store after that. If you find yourself updating " +"sessions regularly, and don't want to risk losing any updates, think about " +"using a real database instead or seek alternative session middleware " +"libraries." +msgstr "" + +#: ../../recipes.rst:49 msgid "Debugging with Style: Debugging Middleware" msgstr "" -#: ../../recipes.rst:48 +#: ../../recipes.rst:51 msgid "" "Bottle catches all Exceptions raised in your app code to prevent your WSGI " "server from crashing. If the built-in :func:`debug` mode is not enough and " @@ -50,14 +61,14 @@ msgid "" " this behaviour::" msgstr "" -#: ../../recipes.rst:56 +#: ../../recipes.rst:59 msgid "" "Now, bottle only catches its own exceptions (:exc:`HTTPError`, " ":exc:`HTTPResponse` and :exc:`BottleException`) and your middleware can " "handle the rest." msgstr "" -#: ../../recipes.rst:58 +#: ../../recipes.rst:61 msgid "" "The werkzeug_ and paste_ libraries both ship with very powerful debugging " "WSGI middleware. Look at :class:`werkzeug.debug.DebuggedApplication` for " @@ -66,35 +77,41 @@ msgid "" "code within the stack context, so **do not use them in production**." msgstr "" -#: ../../recipes.rst:62 +#: ../../recipes.rst:65 msgid "Unit-Testing Bottle Applications" msgstr "" -#: ../../recipes.rst:64 +#: ../../recipes.rst:67 msgid "" "Unit-testing is usually performed against methods defined in your web " "application without running a WSGI environment." msgstr "" -#: ../../recipes.rst:66 +#: ../../recipes.rst:69 msgid "A simple example using `Nose <http://readthedocs.org/docs/nose>`_::" msgstr "" -#: ../../recipes.rst:77 +#: ../../recipes.rst:80 ../../recipes.rst:97 msgid "Test script::" msgstr "" -#: ../../recipes.rst:84 +#: ../../recipes.rst:87 msgid "" "In the example the Bottle route() method is never executed - only index() is" " tested." msgstr "" -#: ../../recipes.rst:88 +#: ../../recipes.rst:89 +msgid "" +"If the code being tested requires access to ``bottle.request`` you can mock " +"it using `Boddle <https://github.com/keredson/boddle>`_::" +msgstr "" + +#: ../../recipes.rst:108 msgid "Functional Testing Bottle Applications" msgstr "" -#: ../../recipes.rst:90 +#: ../../recipes.rst:110 msgid "" "Any HTTP-based testing system can be used with a running WSGI server, but " "some testing frameworks work more intimately with WSGI, and provide the " @@ -103,64 +120,64 @@ msgid "" "<http://www.wsgi.org/en/latest/testing.html>`_ is a good starting point." msgstr "" -#: ../../recipes.rst:92 +#: ../../recipes.rst:112 msgid "" "Example using `WebTest <http://webtest.pythonpaste.org/>`_ and `Nose " "<http://readthedocs.org/docs/nose>`_::" msgstr "" -#: ../../recipes.rst:112 +#: ../../recipes.rst:132 msgid "Embedding other WSGI Apps" msgstr "" -#: ../../recipes.rst:114 +#: ../../recipes.rst:134 msgid "" "This is not the recommend way (you should use a middleware in front of " "bottle to do this) but you can call other WSGI applications from within your" " bottle app and let bottle act as a pseudo-middleware. Here is an example::" msgstr "" -#: ../../recipes.rst:130 +#: ../../recipes.rst:150 msgid "" "Again, this is not the recommend way to implement subprojects. It is only " "here because many people asked for this and to show how bottle maps to WSGI." msgstr "" -#: ../../recipes.rst:134 +#: ../../recipes.rst:154 msgid "Ignore trailing slashes" msgstr "" -#: ../../recipes.rst:136 +#: ../../recipes.rst:156 msgid "" "For Bottle, ``/example`` and ``/example/`` are two different routes [1]_. To" " treat both URLs the same you can add two ``@route`` decorators::" msgstr "" -#: ../../recipes.rst:142 +#: ../../recipes.rst:162 msgid "add a WSGI middleware that strips trailing slashes from all URLs::" msgstr "" -#: ../../recipes.rst:155 +#: ../../recipes.rst:175 msgid "or add a ``before_request`` hook to strip the trailing slashes::" msgstr "" -#: ../../recipes.rst:162 +#: ../../recipes.rst:182 msgid "Footnotes" msgstr "Notas de rodapé" -#: ../../recipes.rst:163 +#: ../../recipes.rst:183 msgid "Because they are. See <http://www.ietf.org/rfc/rfc3986.txt>" msgstr "" -#: ../../recipes.rst:167 +#: ../../recipes.rst:187 msgid "Keep-alive requests" msgstr "" -#: ../../recipes.rst:171 +#: ../../recipes.rst:191 msgid "For a more detailed explanation, see :doc:`async`." msgstr "" -#: ../../recipes.rst:173 +#: ../../recipes.rst:193 msgid "" "Several \"push\" mechanisms like XHR multipart need the ability to write " "response data without closing the connection in conjunction with the " @@ -172,74 +189,74 @@ msgid "" " paste_ server::" msgstr "" -#: ../../recipes.rst:190 +#: ../../recipes.rst:210 msgid "" "If you browse to ``http://localhost:8080/stream``, you should see 'START', " "'MIDDLE', and 'END' show up one at a time (rather than waiting 8 seconds to " "see them all at once)." msgstr "" -#: ../../recipes.rst:193 +#: ../../recipes.rst:213 msgid "Gzip Compression in Bottle" msgstr "" -#: ../../recipes.rst:196 +#: ../../recipes.rst:216 msgid "For a detailed discussion, see compression_" msgstr "" -#: ../../recipes.rst:198 +#: ../../recipes.rst:218 msgid "" "A common feature request is for Bottle to support Gzip compression, which " "speeds up sites by compressing static resources (like CSS and JS files) " "during a request." msgstr "" -#: ../../recipes.rst:200 +#: ../../recipes.rst:220 msgid "" "Supporting Gzip compression is not a straightforward proposition, due to a " "number of corner cases that crop up frequently. A proper Gzip implementation" " must:" msgstr "" -#: ../../recipes.rst:202 +#: ../../recipes.rst:222 msgid "Compress on the fly and be fast doing so." msgstr "" -#: ../../recipes.rst:203 +#: ../../recipes.rst:223 msgid "Do not compress for browsers that don't support it." msgstr "" -#: ../../recipes.rst:204 +#: ../../recipes.rst:224 msgid "Do not compress files that are compressed already (images, videos)." msgstr "" -#: ../../recipes.rst:205 +#: ../../recipes.rst:225 msgid "Do not compress dynamic files." msgstr "" -#: ../../recipes.rst:206 +#: ../../recipes.rst:226 msgid "Support two differed compression algorithms (gzip and deflate)." msgstr "" -#: ../../recipes.rst:207 +#: ../../recipes.rst:227 msgid "Cache compressed files that don't change often." msgstr "" -#: ../../recipes.rst:208 +#: ../../recipes.rst:228 msgid "De-validate the cache if one of the files changed anyway." msgstr "" -#: ../../recipes.rst:209 +#: ../../recipes.rst:229 msgid "Make sure the cache does not get to big." msgstr "" -#: ../../recipes.rst:210 +#: ../../recipes.rst:230 msgid "" "Do not cache small files because a disk seek would take longer than on-the-" "fly compression." msgstr "" -#: ../../recipes.rst:212 +#: ../../recipes.rst:232 msgid "" "Because of these requirements, it is the recommendation of the Bottle " "project that Gzip compression is best handled by the WSGI server Bottle runs" @@ -247,34 +264,34 @@ msgid "" "that can be used to accomplish this." msgstr "" -#: ../../recipes.rst:216 +#: ../../recipes.rst:236 msgid "Using the hooks plugin" msgstr "" -#: ../../recipes.rst:218 +#: ../../recipes.rst:238 msgid "" "For example, if you want to allow Cross-Origin Resource Sharing for the " "content returned by all of your URL, you can use the hook decorator and " "setup a callback function::" msgstr "" -#: ../../recipes.rst:236 +#: ../../recipes.rst:256 msgid "" "You can also use the ``before_request`` to take an action before every " "function gets called." msgstr "" -#: ../../recipes.rst:241 +#: ../../recipes.rst:261 msgid "Using Bottle with Heroku" msgstr "" -#: ../../recipes.rst:243 +#: ../../recipes.rst:263 msgid "" "Heroku_, a popular cloud application platform now provides support for " "running Python applications on their infastructure." msgstr "" -#: ../../recipes.rst:246 +#: ../../recipes.rst:266 msgid "" "This recipe is based upon the `Heroku Quickstart " "<http://devcenter.heroku.com/articles/quickstart>`_, with Bottle specific " @@ -284,7 +301,7 @@ msgid "" "<http://devcenter.heroku.com/articles/python>`_ guide::" msgstr "" -#: ../../recipes.rst:262 +#: ../../recipes.rst:282 msgid "" "Heroku's app stack passes the port that the application needs to listen on " "for requests, using the `os.environ` dictionary." |