@@ -77,10 +77,10 @@ Filters
77
77
| | spaces and capitalizes the string) |
78
78
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
79
79
| ``text|trans(arguments = {}, domain = 'messages', locale = null) `` | This will translate the text into the current language, more |
80
- | | information in :ref: `book-translation-twig `. |
80
+ | | information in :ref: `book-translation-filers `. |
81
81
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
82
82
| ``text|transchoice(count, arguments = {}, domain = 'messages', locale = null) `` | This will translate the text with pluralization, more information |
83
- | | in :ref: `book-translation-twig `. |
83
+ | | in :ref: `book-translation-filters `. |
84
84
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
85
85
| ``variable|yaml_encode(inline = 0) `` | This will transform the variable text into a YAML syntax. |
86
86
+---------------------------------------------------------------------------------+-------------------------------------------------------------------+
@@ -110,23 +110,26 @@ Filters
110
110
Tags
111
111
----
112
112
113
- +---------------------------------------------------+-------------------------------------------------------------------+
114
- | Tag Syntax | Usage |
115
- +===================================================+===================================================================+
116
- | ``{% render url('route', {parameters}) %} `` | This will render the Response Content for the given controller |
117
- | | that the URL points to. For more information, |
118
- | | see :ref: `templating-embedding-controller `. |
119
- +---------------------------------------------------+-------------------------------------------------------------------+
120
- | ``{% form_theme form 'file' %} `` | This will look inside the given file for overridden form blocks, |
121
- | | more information in :doc: `/cookbook/form/form_customization `. |
122
- +---------------------------------------------------+-------------------------------------------------------------------+
123
- | ``{% trans with {variables} %}...{% endtrans %} `` | This will translate and render the text, more information in |
124
- | | :ref: `book-translation-twig ` |
125
- +---------------------------------------------------+-------------------------------------------------------------------+
126
- | ``{% transchoice count with {variables} %} `` | This will translate and render the text with pluralization, more |
127
- | ... | information in :ref: `book-translation-twig ` |
128
- | ``{% endtranschoice %} `` | |
129
- +---------------------------------------------------+-------------------------------------------------------------------+
113
+ +---------------------------------------------------+--------------------------------------------------------------------+
114
+ | Tag Syntax | Usage |
115
+ +===================================================+====================================================================+
116
+ | ``{% render url('route', {parameters}) %} `` | This will render the Response Content for the given controller |
117
+ | | that the URL points to. For more information, |
118
+ | | see :ref: `templating-embedding-controller `. |
119
+ +---------------------------------------------------+--------------------------------------------------------------------+
120
+ | ``{% form_theme form 'file' %} `` | This will look inside the given file for overridden form blocks, |
121
+ | | more information in :doc: `/cookbook/form/form_customization `. |
122
+ +---------------------------------------------------+--------------------------------------------------------------------+
123
+ | ``{% trans with {variables} %}...{% endtrans %} `` | This will translate and render the text, more information in |
124
+ | | :ref: `book-translation-tags ` |
125
+ +---------------------------------------------------+--------------------------------------------------------------------+
126
+ | ``{% transchoice count with {variables} %} `` | This will translate and render the text with pluralization, more |
127
+ | ... | information in :ref: `book-translation-tags ` |
128
+ | ``{% endtranschoice %} `` | |
129
+ +---------------------------------------------------+--------------------------------------------------------------------+
130
+ | ``{% trans_default_domain language %} `` | This will set the default domain for message catalogues in the |
131
+ | | current template |
132
+ +---------------------------------------------------+--------------------------------------------------------------------+
130
133
131
134
Tests
132
135
-----
0 commit comments