Tornado 6.5 Documentation
or a translation of the second string will be returned otherwise. The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders supports loading translations in two formats: the .mo format used by gettext and related tools, and a simple .csv format. An application will generally call either tornado.locale. load_translations or tornado tornado.locale.load_gettext_translations once at startup; see those methods for more details on the supported formats. You can get the list of supported locales in your application with tornado.locale.get_supported_locales()0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
or a translation of the second string will be returned otherwise. The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders None, we fall back on the Accept-Language header. The tornado.locale module supports loading translations in two formats: the .mo format used by gettext [https://docs.python.org/3/library/gettext.html#module-gettext] csv format. An application will generally call either tornado.locale.load_translations or tornado.locale.load_gettext_translations once at startup; see those methods for more details on the supported formats0 码力 | 437 页 | 405.14 KB | 2 月前3
共 2 条
- 1
相关搜索词