Tornado 6.0 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 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 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 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 6.1 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 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 5.1 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 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 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 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 4.5 Documentation
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 most placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized template:FriendFeed - {{ 0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 4.5 Documentation
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 most placeholders for variables (the %(num)d in the example above) since placeholders can move around on translation. Here is a properly internationalized template: 24 Chapter 4. Documentation Tornado Documentation0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 6.4 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 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 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 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 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 码力 | 268 页 | 1.09 MB | 1 年前3
共 20 条
- 1
- 2













