diff --git a/README.md b/README.md index 9156bcf51..07ae97055 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ - [ ] advanced_foreword (reserved) - [ ] appcontext [@rosekc](https://github.com/rosekc) rosekc -- [ ] async-await [@rosekc](https://github.com/your_username) rosekc +- [x] async-await [@rosekc](https://github.com/rosekc) rosekc - [ ] becomingbig - [x] blueprints [@frostming](https://github.com/frostming) Frost Ming - [ ] changes diff --git a/docs/locales/zh_CN/LC_MESSAGES/advanced_foreword.po b/docs/locales/zh_CN/LC_MESSAGES/advanced_foreword.po index 45c789d54..36deaa32f 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/advanced_foreword.po +++ b/docs/locales/zh_CN/LC_MESSAGES/advanced_foreword.po @@ -85,4 +85,3 @@ msgid "" "must build with caution, watching for exploits when building to your " "requirements." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/api.po b/docs/locales/zh_CN/LC_MESSAGES/api.po index eef671478..a092df4d5 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/api.po +++ b/docs/locales/zh_CN/LC_MESSAGES/api.po @@ -6613,4 +6613,3 @@ msgstr "" #~ msgid "Raises" #~ msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/appcontext.po b/docs/locales/zh_CN/LC_MESSAGES/appcontext.po index f262b83b4..d3e27a40d 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/appcontext.po +++ b/docs/locales/zh_CN/LC_MESSAGES/appcontext.po @@ -202,4 +202,3 @@ msgid "" "sent: :data:`appcontext_pushed`, :data:`appcontext_tearing_down`, and " ":data:`appcontext_popped`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/async-await.po b/docs/locales/zh_CN/LC_MESSAGES/async-await.po index f22c84ebb..f93f39347 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/async-await.po +++ b/docs/locales/zh_CN/LC_MESSAGES/async-await.po @@ -10,7 +10,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-05-30 19:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"Last-Translator: rosekc \n" "Language-Team: zh_CN \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" @@ -19,7 +19,7 @@ msgstr "" #: ../../async-await.rst:4 msgid "Using ``async`` and ``await``" -msgstr "" +msgstr "使用 ``async`` 和 ``await``" #: ../../async-await.rst:8 msgid "" @@ -29,10 +29,14 @@ msgid "" "where ``contextvars.ContextVar`` is available. This allows views to be " "defined with ``async def`` and use ``await``." msgstr "" +"只要在安装 Flask 时加上 ``async`` 额外依赖(``pip install flask[async]``)," +"包括路由、错误处理、请求前、请求后以及清理(teardown)的函数都可以使用协程函数。" +"这需要 Python 3.7+ 的环境,以提供 ``contextvars.ContextVar`` 的支持。" +"这允许视图函数使用 ``async def`` 定义,以及使用 ``await``。" #: ../../async-await.rst:21 msgid "Using ``async`` on Windows on Python 3.8" -msgstr "" +msgstr "在 Windows,Python 3.8 环境下使用 ``async``" #: ../../async-await.rst:23 msgid "" @@ -40,10 +44,13 @@ msgid "" "something like ``ValueError: set_wakeup_fd only works in main thread``, " "please upgrade to Python 3.9." msgstr "" +"在 Windows,Python 3.8 环境下存在一个与 asyncio 相关的 bug。如果遇到" +"类似 ``ValueError: set_wakeup_fd only works in main thread`` 的信息," +"请升级到 Python 3.9。" #: ../../async-await.rst:29 msgid "Performance" -msgstr "" +msgstr "性能" #: ../../async-await.rst:31 msgid "" @@ -52,6 +59,9 @@ msgid "" " request comes in to an async view, Flask will start an event loop in a " "thread, run the view function there, then return the result." msgstr "" +"异步函数需要一个事件循环来执行。作为一个 WSGI 应用,Flask 使用一个线程去处理" +"请求/响应循环。当请求进入一个异步视图函数时,Flask 将在一个线程中启动一个事件" +"循环,在这个事件循环中执行视图函数,然后返回结果。" #: ../../async-await.rst:36 msgid "" @@ -61,6 +71,9 @@ msgid "" "etc. However, the number of requests your application can handle at one " "time will remain the same." msgstr "" +"即使使用异步视图函数,每一个请求依然与一个线程绑定在一起。这样设计的好处是让" +"视图函数中可以执行异步代码,例如多个并行的数据库查询,HTTP 请求外部 API 等等。" +"然而,同一时间应用本身能接受的请求数量不会改变。" #: ../../async-await.rst:42 msgid "" @@ -70,10 +83,13 @@ msgid "" "most use cases, but Flask's async support enables writing and using code " "that wasn't possible natively before." msgstr "" +"**异步并不一定比同步代码快。** 异步的优势是在 IO 密集任务上,但是在 CPU 密集任务上" +"则不然。传统的 Flask 视图函数在大多数情况下是合适的选择,而 Flask 对异步的支持让" +"运行和使用协程代码成为可能,这是以前原生环境无法做到的。" #: ../../async-await.rst:50 msgid "Background tasks" -msgstr "" +msgstr "后台任务" #: ../../async-await.rst:52 msgid "" @@ -83,6 +99,9 @@ msgid "" "cancelled. Therefore you cannot spawn background tasks, for example via " "``asyncio.create_task``." msgstr "" +"异步函数在其执行完成前,都一个事件循环中运行。当异步函数完成时,事件循环也将停止。" +"这意味着异步函数完成的时候,所有尚未完成的其他衍生任务都将被取消。因此,不能使用" +"类似 ``asyncio.create_task`` 的方法来创建后台任务。" #: ../../async-await.rst:58 msgid "" @@ -93,10 +112,14 @@ msgid "" ":ref:`asgi`. This works as the adapter creates an event loop that runs " "continually." msgstr "" +"要使用后台任务,最好的方法就是使用任务队列去激活后台任务,而不是在视图函数中" +"创建。考虑到这点,使用 ASGI 服务器来为 Flask 提供服务来创建后台任务,然后如" +" :ref:`asgi` 提到的使用 asgiref 中的 WsgiToAsgi 适配器。这起作用是因为" +"适配器创建了一个持续运行的事件循环。" #: ../../async-await.rst:67 msgid "When to use Quart instead" -msgstr "" +msgstr "何时使用 Quart 作为替代品" #: ../../async-await.rst:69 msgid "" @@ -107,6 +130,10 @@ msgid "" "handle many concurrent requests, long running requests, and websockets " "without requiring multiple worker processes or threads." msgstr "" +"基于实现上的不同,Flask 的异步支持的性能比异步优先的框架会稍低。如果已经拥有" +"一个以异步为主的代码库,考虑使用 `Quart`_ 会更合理。Quart 是一个基于 `ASGI`_ " +"的 Flask 重新实现版本(而 Flask 是基于 WSGI 的)。这让多并行请求,长时间运行" +"的请求,以及 websockets 编程不再需要多个工作进程或线程。" #: ../../async-await.rst:76 msgid "" @@ -117,10 +144,14 @@ msgid "" "whether you should use Flask, Quart, or something else is ultimately up " "to understanding the specific needs of your project." msgstr "" +"其实当前已经可以使用 Gevent 或 Eventlet 运行 Flask 来获得异步请求处理的好处。" +"这些库通过为底层 Python 库打补丁的方式实现,而 ``async``/``await`` 与 ASGI" +"使用了现代标准 Python 的特性。决定是否应使用 Flask,Quart 或其他工具最终取决于" +"对项目的具体需求的理解。" #: ../../async-await.rst:88 msgid "Extensions" -msgstr "" +msgstr "扩展" #: ../../async-await.rst:90 msgid "" @@ -131,6 +162,10 @@ msgid "" "awaitable either and will probably be blocking if called within an async " "view." msgstr "" +"Flask 扩展系统的实现先于 Flask 异步支持,所以并不会假设视图函数是异步的。如果扩展" +"提供了对视图函数的有附加功能的装饰器,这些装饰器因为不会异步等待(await)函数运行或者不是" +"异步可等待(awaitable)的,在异步视图函数上可能不能正常运行。扩展提供的其他函数或许" +"同样不是异步可等待的,在异步视图函数中调用的时候大概率会阻塞。" #: ../../async-await.rst:96 msgid "" @@ -139,16 +174,19 @@ msgid "" "provides a view function decorator add ``ensure_sync`` before calling the" " decorated function," msgstr "" +"扩展作者可以通过使用 :meth:`flask.Flask.ensure_sync` 方法来支持异步函数。" +"举例来说,如果扩展提供了一个视图函数装饰器,使用 ``ensure_sync`` 调用被包裹的函数。" #: ../../async-await.rst:111 msgid "" "Check the changelog of the extension you want to use to see if they've " "implemented async support, or make a feature request or PR to them." msgstr "" +"检查扩展的更新记录,查看是否实现了异步支持。如果没有可以向他们提交 PR。" #: ../../async-await.rst:116 msgid "Other event loops" -msgstr "" +msgstr "其他事件循环" #: ../../async-await.rst:118 msgid "" @@ -156,6 +194,8 @@ msgid "" "override :meth:`flask.Flask.ensure_sync` to change how async functions " "are wrapped to use a different library." msgstr "" +"当前 Flask 只支持 :mod:`asyncio`。通过覆写 :meth:`flask.Flask.ensure_sync` " +"来修改包裹异步函数的实现,以使用其他的库。" #~ msgid "" #~ "Routes, error handlers, before request, " @@ -166,4 +206,3 @@ msgstr "" #~ " allows views to be defined with " #~ "``async def`` and use ``await``." #~ msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/becomingbig.po b/docs/locales/zh_CN/LC_MESSAGES/becomingbig.po index 9f32296d0..6d679fc47 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/becomingbig.po +++ b/docs/locales/zh_CN/LC_MESSAGES/becomingbig.po @@ -165,4 +165,3 @@ msgid "" "developers to improve the tools for larger applications is getting " "feedback from users." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/blueprints.po b/docs/locales/zh_CN/LC_MESSAGES/blueprints.po index 5a1fe93e9..68115c5e2 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/blueprints.po +++ b/docs/locales/zh_CN/LC_MESSAGES/blueprints.po @@ -375,4 +375,3 @@ msgstr "" #: ../../blueprints.rst:302 msgid "See :doc:`/errorhandling`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/changes.po b/docs/locales/zh_CN/LC_MESSAGES/changes.po index 06135a0ca..40827a78f 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/changes.po +++ b/docs/locales/zh_CN/LC_MESSAGES/changes.po @@ -2556,4 +2556,3 @@ msgstr "" #: ../../../CHANGES.rst:1178 msgid "First public preview release." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/cli.po b/docs/locales/zh_CN/LC_MESSAGES/cli.po index 9416daa58..f6e514911 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/cli.po +++ b/docs/locales/zh_CN/LC_MESSAGES/cli.po @@ -567,4 +567,3 @@ msgid "" "PyCharm, we can copy that configuration and alter the *Script* argument " "to run a different CLI command, e.g. ``flask shell``." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/config.po b/docs/locales/zh_CN/LC_MESSAGES/config.po index 77b94d997..33b947cd7 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/config.po +++ b/docs/locales/zh_CN/LC_MESSAGES/config.po @@ -808,4 +808,3 @@ msgstr "" #: ../../config.rst:760 msgid "Example usage for both::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/contributing.po b/docs/locales/zh_CN/LC_MESSAGES/contributing.po index 957ae5710..c2e6f7606 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/contributing.po +++ b/docs/locales/zh_CN/LC_MESSAGES/contributing.po @@ -265,4 +265,3 @@ msgstr "" #: ../../../CONTRIBUTING.rst:227 msgid "Read more about `Sphinx `__." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/debugging.po b/docs/locales/zh_CN/LC_MESSAGES/debugging.po index 919b7274c..5c8aa6c13 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/debugging.po +++ b/docs/locales/zh_CN/LC_MESSAGES/debugging.po @@ -141,4 +141,3 @@ msgid "" " can. If the reloader is not disabled, it could cause an unexpected " "reload if code changes during debugging." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/asgi.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/asgi.po index 40ededd36..6d2e53a15 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/asgi.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/asgi.po @@ -35,4 +35,3 @@ msgid "" "and then serving the ``asgi_app`` with the asgi server, e.g. using " "`Hypercorn `_," msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/cgi.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/cgi.po index 572380b7f..bcce4e084 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/cgi.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/cgi.po @@ -90,4 +90,3 @@ msgstr "" #: ../../deploying/cgi.rst:59 msgid "For more information consult the documentation of your webserver." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/fastcgi.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/fastcgi.po index fffaef199..37f20a6de 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/fastcgi.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/fastcgi.po @@ -215,4 +215,3 @@ msgstr "" #: ../../deploying/fastcgi.rst:233 msgid "Different python interpreters being used." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/index.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/index.po index 10c136ebb..8cc8ac2a0 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/index.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/index.po @@ -80,4 +80,3 @@ msgstr "" #: ../../deploying/index.rst:25 msgid "Self-hosted options" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/mod_wsgi.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/mod_wsgi.po index 1a182f6e6..e3af80f82 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/mod_wsgi.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/mod_wsgi.po @@ -261,4 +261,3 @@ msgid "" "This sets up the load paths according to the settings of the virtual " "environment. Keep in mind that the path has to be absolute." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/uwsgi.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/uwsgi.po index f612ef789..ce88f4b91 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/uwsgi.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/uwsgi.po @@ -96,4 +96,3 @@ msgid "" "This configuration binds the application to ``/yourapplication``. If you" " want to have it in the URL root its a bit simpler::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/deploying/wsgi-standalone.po b/docs/locales/zh_CN/LC_MESSAGES/deploying/wsgi-standalone.po index dab2ce768..18d113068 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/deploying/wsgi-standalone.po +++ b/docs/locales/zh_CN/LC_MESSAGES/deploying/wsgi-standalone.po @@ -156,4 +156,3 @@ msgid "" "If you want to rewrite the headers from another header, you might want to" " use a fixer like this::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/design.po b/docs/locales/zh_CN/LC_MESSAGES/design.po index 2d88110e9..be55e2f85 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/design.po +++ b/docs/locales/zh_CN/LC_MESSAGES/design.po @@ -296,4 +296,3 @@ msgid "" "The idea of Flask is to build a good foundation for all applications. " "Everything else is up to you or extensions." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/errorhandling.po b/docs/locales/zh_CN/LC_MESSAGES/errorhandling.po index 5246b844e..a3710e31a 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/errorhandling.po +++ b/docs/locales/zh_CN/LC_MESSAGES/errorhandling.po @@ -482,4 +482,3 @@ msgid "" "See :doc:`/debugging` for information about how to debug errors in " "development and production." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/extensiondev.po b/docs/locales/zh_CN/LC_MESSAGES/extensiondev.po index 4d5ec00b6..e1930d1da 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/extensiondev.po +++ b/docs/locales/zh_CN/LC_MESSAGES/extensiondev.po @@ -413,4 +413,3 @@ msgid "" "``python_requires=\">= 3.6\"`` in ``setup.py`` to indicate supported " "versions." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/extensions.po b/docs/locales/zh_CN/LC_MESSAGES/extensions.po index a1045b807..5809c1f1e 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/extensions.po +++ b/docs/locales/zh_CN/LC_MESSAGES/extensions.po @@ -63,4 +63,3 @@ msgid "" "create your own. Read :doc:`/extensiondev` to develop your own Flask " "extension." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/foreword.po b/docs/locales/zh_CN/LC_MESSAGES/foreword.po index 393f3049a..3aa8d3274 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/foreword.po +++ b/docs/locales/zh_CN/LC_MESSAGES/foreword.po @@ -99,4 +99,3 @@ msgid "" " curious about the Flask design principles, head over to the section " "about :doc:`design`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/htmlfaq.po b/docs/locales/zh_CN/LC_MESSAGES/htmlfaq.po index e59a11ef4..3782b0d25 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/htmlfaq.po +++ b/docs/locales/zh_CN/LC_MESSAGES/htmlfaq.po @@ -364,4 +364,3 @@ msgstr "" #: ../../htmlfaq.rst:206 msgid "For most applications, it is undoubtedly better to use HTML5 than XHTML." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/installation.po b/docs/locales/zh_CN/LC_MESSAGES/installation.po index ca47f50dc..fe45ff126 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/installation.po +++ b/docs/locales/zh_CN/LC_MESSAGES/installation.po @@ -182,4 +182,3 @@ msgid "" msgstr "" "Flask 现在已经安装好了。阅读 :doc:`/quickstart` 或是前往 :doc:`文档概览 ` 进一步了解 " "Flask。" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/license.po b/docs/locales/zh_CN/LC_MESSAGES/license.po index c883c5c1a..703487fa4 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/license.po +++ b/docs/locales/zh_CN/LC_MESSAGES/license.po @@ -111,4 +111,3 @@ msgid "" "https://palletsprojects.com/p/flask/ if you use it in a medium that " "supports links." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/logging.po b/docs/locales/zh_CN/LC_MESSAGES/logging.po index 4902627cd..3e4b5a1a9 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/logging.po +++ b/docs/locales/zh_CN/LC_MESSAGES/logging.po @@ -156,4 +156,3 @@ msgid "" ":meth:`app.logger ` or its own named logger. Consult " "each extension's documentation for details." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/appdispatch.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/appdispatch.po index 3f9e8ad00..55a197663 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/appdispatch.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/appdispatch.po @@ -139,4 +139,3 @@ msgid "" "falls back to another application if the creator function returns " "``None``::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/appfactories.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/appfactories.po index 22e0396cb..6af4d726e 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/appfactories.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/appfactories.po @@ -168,4 +168,3 @@ msgid "" "Add in WSGI middlewares when the application is being created if " "necessary." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/caching.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/caching.po index bf39d86a4..6a418d564 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/caching.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/caching.po @@ -37,4 +37,3 @@ msgid "" "extension for Flask does. Flask-Caching supports various backends, and it" " is even possible to develop your own caching backend." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/celery.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/celery.po index f74f73bb2..a77409cb8 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/celery.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/celery.po @@ -120,4 +120,3 @@ msgid "" "Now that the worker is running, ``wait`` will return the result once the " "task is finished." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/deferredcallbacks.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/deferredcallbacks.po index 49e15a569..3dccb4552 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/deferredcallbacks.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/deferredcallbacks.po @@ -61,4 +61,3 @@ msgid "" " of the user in a cookie in a :meth:`~flask.Flask.before_request` " "callback::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/distribute.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/distribute.po index 124156b08..863e0ff70 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/distribute.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/distribute.po @@ -213,4 +213,3 @@ msgid "" "folder instead of copying the data over. You can then continue to work " "on the code without having to run ``install`` again after each change." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/fabric.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/fabric.po index 4a0189178..af9fa0ec4 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/fabric.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/fabric.po @@ -248,4 +248,3 @@ msgid "" " type ``fab deploy`` and see your application being deployed " "automatically to one or more remote servers." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/favicon.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/favicon.po index 788cb5ec3..33abc3496 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/favicon.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/favicon.po @@ -82,4 +82,3 @@ msgid "" "The `Favicon `_ article on " "Wikipedia" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/fileuploads.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/fileuploads.po index 9d574dc55..ec79dee14 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/fileuploads.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/fileuploads.po @@ -202,4 +202,3 @@ msgid "" "called `Flask-Uploads`_ that implements a full fledged upload mechanism " "that allows controlling which file extensions are allowed to be uploaded." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/flashing.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/flashing.po index f6beb01c8..ccf7874cc 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/flashing.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/flashing.po @@ -101,4 +101,3 @@ msgid "" " :func:`~flask.get_flashed_messages`. This is useful if you wish to " "render each category in a separate block." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/index.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/index.po index 098395231..99459f7b1 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/index.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/index.po @@ -37,4 +37,3 @@ msgid "" "but Flask makes it easy to implement them. Some common patterns are " "collected in the following pages." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/jquery.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/jquery.po index b4d2e876a..9554d7b99 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/jquery.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/jquery.po @@ -173,4 +173,3 @@ msgid "" "application demonstrating the code on this page, as well as the same " "thing using ``XMLHttpRequest`` and ``fetch``." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/lazyloading.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/lazyloading.po index 037b2c0bd..60f02c2ff 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/lazyloading.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/lazyloading.po @@ -103,4 +103,3 @@ msgid "" "to be in a file that is imported upfront to work properly on the first " "request. The same goes for any kind of remaining decorator." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/methodoverrides.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/methodoverrides.po index 99b4d07c8..931bab38c 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/methodoverrides.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/methodoverrides.po @@ -42,4 +42,3 @@ msgstr "" #: ../../patterns/methodoverrides.rst:37 msgid "To use this with Flask, wrap the app object with the middleware::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/mongoengine.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/mongoengine.po index b5f8a4a78..5aca2d63d 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/mongoengine.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/mongoengine.po @@ -103,4 +103,3 @@ msgid "" "Flask-MongoEngine adds helpful utilities on top of MongoEngine. Check out" " their `documentation `_ as well." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/packages.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/packages.po index 15794fa2c..67794d153 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/packages.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/packages.po @@ -153,4 +153,3 @@ msgid "" "blueprint. For a gentle introduction into this topic refer to the " ":doc:`/blueprints` chapter of the documentation." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/requestchecksum.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/requestchecksum.po index fb40096ff..5cf796531 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/requestchecksum.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/requestchecksum.po @@ -54,4 +54,3 @@ msgstr "" #: ../../patterns/requestchecksum.rst:46 msgid "Example usage::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/singlepageapplications.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/singlepageapplications.po index 03ee79d3f..795586a83 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/singlepageapplications.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/singlepageapplications.po @@ -32,4 +32,3 @@ msgstr "" #: ../../patterns/singlepageapplications.rst:9 msgid "The following example demonstrates how to serve an SPA along with an API::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlalchemy.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlalchemy.po index 0f12656b0..f135f9e0c 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlalchemy.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlalchemy.po @@ -180,4 +180,3 @@ msgid "" "For more information about SQLAlchemy, head over to the `website " "`_." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlite3.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlite3.po index a048a263d..08db0d285 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlite3.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/sqlite3.po @@ -148,4 +148,3 @@ msgstr "" #: ../../patterns/sqlite3.rst:148 msgid "You can then create such a database from the Python shell:" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/streaming.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/streaming.po index a49018f1a..ac00323a6 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/streaming.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/streaming.po @@ -96,4 +96,3 @@ msgid "" "Without the :func:`~flask.stream_with_context` function you would get a " ":class:`RuntimeError` at that point." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/subclassing.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/subclassing.po index 9d9144696..6029ad584 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/subclassing.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/subclassing.po @@ -36,4 +36,3 @@ msgid "" "This is the recommended approach for overriding or augmenting Flask's " "internal functionality." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/templateinheritance.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/templateinheritance.po index 5585f84ca..0bd5253b9 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/templateinheritance.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/templateinheritance.po @@ -71,4 +71,3 @@ msgid "" " tag must be the first tag in the template. To render the contents of a " "block defined in the parent template, use ``{{ super() }}``." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/urlprocessors.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/urlprocessors.po index 1301c29ca..705fe53f0 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/urlprocessors.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/urlprocessors.po @@ -102,4 +102,3 @@ msgid "" "it no longer has to check if the URL is really interested in a " "``'lang_code'`` parameter::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/viewdecorators.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/viewdecorators.po index c9a3f7325..859875273 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/viewdecorators.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/viewdecorators.po @@ -165,4 +165,3 @@ msgid "" ":class:`~werkzeug.routing.Rule` to a view function. This is possible with" " this decorator. For example::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/patterns/wtforms.po b/docs/locales/zh_CN/LC_MESSAGES/patterns/wtforms.po index 2f05573f8..67749ad69 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/patterns/wtforms.po +++ b/docs/locales/zh_CN/LC_MESSAGES/patterns/wtforms.po @@ -131,4 +131,3 @@ msgstr "" #: ../../patterns/wtforms.rst:122 msgid "For more information about WTForms, head over to the `WTForms website`_." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/quickstart.po b/docs/locales/zh_CN/LC_MESSAGES/quickstart.po index 7b6f8b7b4..2c93a2859 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/quickstart.po +++ b/docs/locales/zh_CN/LC_MESSAGES/quickstart.po @@ -1028,4 +1028,3 @@ msgstr "" #: ../../quickstart.rst:938 msgid "Ready to deploy your new Flask app? See :doc:`deploying/index`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/reqcontext.po b/docs/locales/zh_CN/LC_MESSAGES/reqcontext.po index efd00fc6f..49cfc1914 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reqcontext.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reqcontext.po @@ -348,4 +348,3 @@ msgid "" "If you need to access the underlying object that is proxied, use the " ":meth:`~werkzeug.local.LocalProxy._get_current_object` method::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/security.po b/docs/locales/zh_CN/LC_MESSAGES/security.po index 0a3f985c7..4c3f13446 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/security.po +++ b/docs/locales/zh_CN/LC_MESSAGES/security.po @@ -399,4 +399,3 @@ msgid "" "Depending on your site's use case, it may be good to show a warning about" " copying code in general." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/server.po b/docs/locales/zh_CN/LC_MESSAGES/server.po index 6fe0298f1..647e24d50 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/server.po +++ b/docs/locales/zh_CN/LC_MESSAGES/server.po @@ -133,4 +133,3 @@ msgid "" "Place the call in a main block, otherwise it will interfere when trying " "to import and run the application with a production server later." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/shell.po b/docs/locales/zh_CN/LC_MESSAGES/shell.po index b8e19d582..c37f02139 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/shell.po +++ b/docs/locales/zh_CN/LC_MESSAGES/shell.po @@ -150,4 +150,3 @@ msgstr "" #: ../../shell.rst:99 msgid "Just put them into a module (like `shelltools`) and import from there:" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/signals.po b/docs/locales/zh_CN/LC_MESSAGES/signals.po index 08f3db9b0..6c7973837 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/signals.po +++ b/docs/locales/zh_CN/LC_MESSAGES/signals.po @@ -227,4 +227,3 @@ msgstr "" #: ../../signals.rst:185 msgid "Take a look at :ref:`core-signals-list` for a list of all builtin signals." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/templating.po b/docs/locales/zh_CN/LC_MESSAGES/templating.po index 42ec818c3..c93ab258a 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/templating.po +++ b/docs/locales/zh_CN/LC_MESSAGES/templating.po @@ -271,4 +271,3 @@ msgid "" ":`registering-filters`), but this demonstrates how to pass functions in a" " context processor." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/testing.po b/docs/locales/zh_CN/LC_MESSAGES/testing.po index 0f4d0c78c..c5a2c0f9e 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/testing.po +++ b/docs/locales/zh_CN/LC_MESSAGES/testing.po @@ -380,4 +380,3 @@ msgid "" "the command, use its :meth:`~click.BaseCommand.make_context` method. This" " is useful for testing complex validation rules and custom types. ::" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/blog.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/blog.po index a60e19242..35d2d0803 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/blog.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/blog.po @@ -229,4 +229,3 @@ msgstr "" #: ../../tutorial/blog.rst:336 msgid "Continue to :doc:`install`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/database.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/database.po index 7625c28c3..5d33b6a8e 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/database.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/database.po @@ -212,4 +212,3 @@ msgstr "" #: ../../tutorial/database.rst:213 msgid "Continue to :doc:`views`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/deploy.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/deploy.po index cbf48f07a..f2a38c666 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/deploy.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/deploy.po @@ -162,4 +162,3 @@ msgstr "" #: ../../tutorial/deploy.rst:139 msgid "Continue to :doc:`next`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/factory.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/factory.po index a301dc297..fc3f0e42f 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/factory.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/factory.po @@ -189,4 +189,3 @@ msgstr "" #: ../../tutorial/factory.rst:180 msgid "Continue to :doc:`database`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/index.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/index.po index aadeb30e0..f76f5e6d0 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/index.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/index.po @@ -90,4 +90,3 @@ msgstr "" #: ../../tutorial/index.rst:64 msgid "Continue to :doc:`layout`." msgstr "下一节是 :doc:`layout`。" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/install.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/install.po index c329748ed..7ad63f959 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/install.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/install.po @@ -133,4 +133,3 @@ msgstr "" #: ../../tutorial/install.rst:114 msgid "Continue to :doc:`tests`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/layout.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/layout.po index 4cd23714d..dc8fddded 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/layout.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/layout.po @@ -105,4 +105,3 @@ msgstr "" #: ../../tutorial/layout.rst:110 msgid "Continue to :doc:`factory`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/next.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/next.po index 5564f159a..55acc8e55 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/next.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/next.po @@ -89,4 +89,3 @@ msgstr "" #: ../../tutorial/next.rst:33 msgid "Have fun and make awesome applications!" msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/static.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/static.po index 8734c4294..61a1e7a0c 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/static.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/static.po @@ -79,4 +79,3 @@ msgstr "" #: ../../tutorial/static.rst:72 msgid "Continue to :doc:`blog`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/templates.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/templates.po index 952ac1689..70ed6549d 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/templates.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/templates.po @@ -206,4 +206,3 @@ msgstr "" #: ../../tutorial/templates.rst:187 msgid "Continue to :doc:`static`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/tests.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/tests.po index f40d37427..4966d3577 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/tests.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/tests.po @@ -388,4 +388,3 @@ msgstr "" #: ../../tutorial/tests.rst:561 msgid "Continue to :doc:`deploy`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/tutorial/views.po b/docs/locales/zh_CN/LC_MESSAGES/tutorial/views.po index 29d36ac43..8f0a88927 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/tutorial/views.po +++ b/docs/locales/zh_CN/LC_MESSAGES/tutorial/views.po @@ -292,4 +292,3 @@ msgstr "" #: ../../tutorial/views.rst:301 msgid "Continue to :doc:`templates`." msgstr "" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/views.po b/docs/locales/zh_CN/LC_MESSAGES/views.po index c37557e04..d4a55ee86 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/views.po +++ b/docs/locales/zh_CN/LC_MESSAGES/views.po @@ -227,4 +227,3 @@ msgid "" "If you have a lot of APIs that look similar you can refactor that " "registration code::" msgstr "" -