File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -812,16 +812,19 @@ texts* and complex expressions:
812
812
{{ message|trans|raw }}
813
813
{{ '<h3>bar</h3>'|trans|raw }}
814
814
815
- .. versionadded :: 2.1
816
- You can now set the translation domain for an entire Twig template with a
817
- single tag:
815
+ .. tip ::
816
+
817
+ You can set the translation domain for an entire Twig template with a single tag:
818
818
819
- .. code-block :: jinja
819
+ .. code-block :: jinja
820
+
821
+ {% trans_default_domain "app" %}
820
822
821
- {% trans_default_domain "app" %}
823
+ Note that this only influences the current template, not any "included"
824
+ templates (in order to avoid side effects).
822
825
823
- Note that this only influences the current template, not any "included"
824
- templates (in order to avoid side effects).
826
+ .. versionadded :: 2.1
827
+ The `` trans_default_domain `` tag is new in Symfony2.1
825
828
826
829
PHP Templates
827
830
~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments