Tornado 6.5 Documentationthe .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.locale.load_gettext_translations once at one of load_translations (which uses a simple CSV format) or load_gettext_translations (which uses the .mo format supported by gettext and related tools). If nei- ther method is called, the Locale.translate detection, UTF- 16, and UTF-8-with-BOM. tornado.locale.load_gettext_translations(directory: str, domain: str) → None Loads translations from gettext’s locale tree Locale tree is similar to system’s /usr/share/locale0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 Documentationsupports loading translations in two formats: the .mo format used by gettext [https://docs.python.org/3/library/gettext.html#module-gettext] and related tools, and a simple .csv format. An application will 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 formats. You can get the list tornado.locale — Internationalization support get() set_default_locale() load_translations() load_gettext_translations() get_supported_locales() Locale Locale.get_closest() Locale.get() Locale.translate()0 码力 | 437 页 | 405.14 KB | 3 月前3
julia 1.10.10ASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9ASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4ASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 DocumentationASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release NotesASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1ASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4ASCII/Unicode U+0048 (category Lu: Letter, uppercase) julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[end] '\n': ASCII/Unicode U+000A (category Cc: Other, control) Many operations with end, just like a normal value: julia> str[end-1] '.': ASCII/Unicode U+002E (category Po: Punctuation, other) julia> str[end÷2] ' ': ASCII/Unicode U+0020 (category Zs: Separator, space) str[k] and str[k:k] do not give the same result: julia> str[6] ',': ASCII/Unicode U+002C (category Po: Punctuation, other) julia> str[6:6] "," The former is a single character value of type Char, while0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 12 条
- 1
- 2













