add translated string support
This commit is contained in:
1 parent
451e38cad4
commit
9fc72cf891
6 files changed
+7956
-7501
No files matched your search
@@ -274,3 +274,52 @@ Template Variable Attribute Beginning With Underscore
|
||||
|
||||
(ERROR)
|
||||
|
||||
==================
|
||||
Template Variable Translated String
|
||||
==================
|
||||
|
||||
{{ _("Hello") }}
|
||||
|
||||
---
|
||||
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(literal
|
||||
(translated_string
|
||||
(string))))))
|
||||
(content))
|
||||
|
||||
==================
|
||||
Template Variable Translated String With Filter
|
||||
==================
|
||||
|
||||
{{ _('Hello')|upper }}
|
||||
|
||||
---
|
||||
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(literal
|
||||
(translated_string
|
||||
(string))))
|
||||
(filter_expression
|
||||
(filter))))
|
||||
(content))
|
||||
|
||||
==================
|
||||
Template Variable Translated String With Spaces
|
||||
:error
|
||||
==================
|
||||
|
||||
{{ _( "Hello" ) }}
|
||||
|
||||
---
|
||||
|
||||
(ERROR)
|
||||
|
||||
Reference in new issue
Block a user