# SOME DESCRIPTIVE TITLE.
# Copyright (C) WangWeimin
# This file is distributed under the same license as the PyWebIO package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: PyWebIO 1.1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-21 00:26+0800\n"
"PO-Revision-Date: 2021-02-21 00:28+0800\n"
"Last-Translator: WangWeimin <wang0.618@qq.com>\n"
"Language: zh_CN\n"
"Language-Team: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"X-Generator: Poedit 2.4.2\n"

#: ../../index.rst:72
msgid "Manual"
msgstr "使用手册"

#: ../../index.rst:91
msgid "Implement Doc"
msgstr "实现文档"

#: ../../index.rst:2
msgid "PyWebIO"
msgstr "PyWebIO"

#: ../../index.rst:4
msgid ""
"PyWebIO provides a series of imperative functions to obtain user input and "
"output on the browser, turning the browser into a \"rich text terminal\", and "
"can be used to build simple web applications or browser-based GUI applications. "
"Using PyWebIO, developers can write applications just like writing terminal "
"scripts (interaction based on input and print), without the need to have "
"knowledge of HTML and JS. PyWebIO can also be easily integrated into existing "
"Web services. PyWebIO is very suitable for quickly building applications that do "
"not require complex UI."
msgstr ""
"PyWebIO提供了一系列命令式的交互函数来在浏览器上获取用户输入和进行输出，将浏览器变"
"成了一个“富文本终端”，可以用于构建简单的Web应用或基于浏览器的GUI应用。 使用"
"PyWebIO，开发者能像编写终端脚本一样(基于input和print进行交互)来编写应用，无需具备"
"HTML和JS的相关知识； PyWebIO还可以方便地整合进现有的Web服务。非常适合快速构建对UI"
"要求不高的应用。"

#: ../../index.rst:7
msgid "Features"
msgstr "特性"

#: ../../index.rst:9
msgid "Use synchronization instead of callback-based method to get input"
msgstr "使用同步而不是基于回调的方式获取输入，代码编写逻辑更自然"

#: ../../index.rst:10
msgid "Non-declarative layout, simple and efficient"
msgstr "非声明式布局，布局方式简单高效"

#: ../../index.rst:11
msgid ""
"Less intrusive: old script code can be transformed into a Web service only by "
"modifying the input and output operation"
msgstr "代码侵入性小，旧脚本代码仅需修改输入输出逻辑便可改造为Web服务"

#: ../../index.rst:12
msgid ""
"Support integration into existing web services, currently supports Flask, "
"Django, Tornado, aiohttp framework"
msgstr "支持整合到现有的Web服务，目前支持与Flask、Django、Tornado、aiohttp框架集成"

#: ../../index.rst:13
msgid "Support for ``asyncio`` and coroutine"
msgstr "同时支持基于线程的执行模型和基于协程的执行模型"

#: ../../index.rst:14
msgid "Support data visualization with third-party libraries"
msgstr "支持结合第三方库实现数据可视化"

#: ../../index.rst:17
msgid "Installation"
msgstr ""

#: ../../index.rst:19
msgid "Stable version::"
msgstr "稳定版::"

#: ../../index.rst:21
msgid "pip3 install -U pywebio"
msgstr ""

#: ../../index.rst:23
msgid "Development version::"
msgstr "开发版::"

#: ../../index.rst:25
msgid ""
"pip3 install -U https://code.aliyun.com/wang0618/pywebio/repository/archive.zip"
msgstr ""

#: ../../index.rst:27
msgid "**Prerequisites**: PyWebIO requires Python 3.5.2 or newer"
msgstr "**系统要求**: PyWebIO要求 Python 版本在 3.5.2 及以上"

#: ../../index.rst:32
msgid "Hello, world"
msgstr ""

#: ../../index.rst:34
msgid ""
"Here is a simple PyWebIO script to calculate the `BMI <https://en.wikipedia.org/"
"wiki/Body_mass_index>`_ ::"
msgstr ""
"这是一个使用PyWebIO计算 `BMI指数 <https://en.wikipedia.org/wiki/"
"Body_mass_index>`_ 的脚本:"

#: ../../index.rst:36
#, python-format
msgid ""
"# A simple script to calculate BMI\n"
"from pywebio.input import input, FLOAT\n"
"from pywebio.output import put_text\n"
"\n"
"def bmi():\n"
"    height = input(\"Input your height(cm)：\", type=FLOAT)\n"
"    weight = input(\"Input your weight(kg)：\", type=FLOAT)\n"
"\n"
"    BMI = weight / (height / 100) ** 2\n"
"\n"
"    top_status = [(16, 'Severely underweight'), (18.5, 'Underweight'),\n"
"                  (25, 'Normal'), (30, 'Overweight'),\n"
"                  (35, 'Moderately obese'), (float('inf'), 'Severely obese')]\n"
"\n"
"    for top, status in top_status:\n"
"        if BMI <= top:\n"
"            put_text('Your BMI: %.1f. Category: %s' % (BMI, status))\n"
"            break\n"
"\n"
"if __name__ == '__main__':\n"
"    bmi()"
msgstr ""
"from pywebio.input import input, FLOAT\n"
"from pywebio.output import put_text\n"
"\n"
"def bmi():\n"
"    height = input(\"请输入你的身高(cm)：\", type=FLOAT)\n"
"    weight = input(\"请输入你的体重(kg)：\", type=FLOAT)\n"
"\n"
"    BMI = weight / (height / 100) ** 2\n"
"\n"
"    top_status = [(14.9, '极瘦'), (18.4, '偏瘦'),\n"
"                  (22.9, '正常'), (27.5, '过重'),\n"
"                  (40.0, '肥胖'), (float('inf'), '非常肥胖')]\n"
"\n"
"    for top, status in top_status:\n"
"        if BMI <= top:\n"
"            put_text('你的 BMI 值: %.1f，身体状态：%s' % (BMI, status))\n"
"            break\n"
"\n"
"if __name__ == '__main__':\n"
"    bmi()"

#: ../../index.rst:58
msgid ""
"This is just a very simple script if you ignore PyWebIO, but after using the "
"input and output functions provided by PyWebIO, you can interact with the code "
"in the browser:"
msgstr ""
"如果没有使用PyWebIO，这只是一个非常简单的脚本，而通过使用PyWebIO提供的输入输出函"
"数，你可以在浏览器中与代码进行交互："

#: ../../index.rst:64
msgid ""
"In the last line of the above code, changing the function call ``bmi()`` to "
"`pywebio.start_server(bmi, port=80) <pywebio.platform.tornado.start_server>` "
"will start a bmi web service on port 80 ( :demo_host:`online Demo </?"
"pywebio_api=bmi>` )."
msgstr ""
"将上面代码最后一行对 ``bmi()`` 的直接调用改为使用 `pywebio.start_server(bmi, "
"port=80) <pywebio.platform.tornado.start_server>` 便可以在80端口提供 ``bmi()`` 服"
"务( :demo_host:`在线Demo </?pywebio_api=bmi>` )。"

#: ../../index.rst:66
msgid ""
"If you want to integrate the ``bmi()`` service into an existing web framework, "
"you can visit :ref:`Integration with a web framework "
"<integration_web_framework>` section of this document."
msgstr ""
"将 ``bmi()`` 服务整合到现有的Web框架请参考 :ref:`与Web框架集成 "
"<integration_web_framework>` 。"

#: ../../index.rst:69
msgid "Documentation"
msgstr ""

#: ../../index.rst:70
msgid ""
"This documentation is also available in `PDF and Epub formats <https://"
"readthedocs.org/projects/pywebio/downloads/>`_."
msgstr ""
"这个文档同时也提供 `PDF 和 Epub 格式 <https://readthedocs.org/projects/pywebio/"
"downloads/>`_."

#: ../../index.rst:98
msgid "Indices and tables"
msgstr ""

#: ../../index.rst:100
msgid ":ref:`genindex`"
msgstr ""

#: ../../index.rst:101
msgid ":ref:`modindex`"
msgstr ""

#: ../../index.rst:102
msgid ":ref:`search`"
msgstr ""

#: ../../index.rst:106
msgid "Discussion and support"
msgstr ""

#: ../../index.rst:108
msgid ""
"Need help when use PyWebIO? Make a new discussion on `Github Discussions "
"<https://github.com/wang0618/PyWebIO/discussions>`_."
msgstr ""

#: ../../index.rst:110
msgid ""
"Report bugs on the `GitHub issue <https://github.com/wang0618/pywebio/issues>`_."
msgstr ""
