Tornado 6.5 Documentation
Python is required. Examples in the Tornado documentation will generally use the native form. Translation between the two forms is generally straightforward: # Decorated: # Native: # Normal function Locale.translate method. Templates also have the global function call _() available for string translation. The translate function has two forms: _("Translate this string") which translates the string the value of the third argument. In the example above, a translation of the first string will be returned if len(people) is 1, or a translation of the second string will be returned otherwise. The most0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
Python is required. Examples in the Tornado documentation will generally use the native form. Translation between the two forms is generally straightforward: # Decorated: # Native: Locale.translate method. Templates also have the global function call _() available for string translation. The translate function has two forms: _("Translate this string") which translates the string the value of the third argument. In the example above, a translation of the first string will be returned if len(people) is 1, or a translation of the second string will be returned otherwise. The most0 码力 | 437 页 | 405.14 KB | 2 月前3
共 2 条
- 1
相关搜索词