Skip to content

Commit c1eddf7

Browse files
committed
Reformatted trans_default_domain versionadded block
1 parent 0dee5c6 commit c1eddf7

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

book/translation.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -812,16 +812,19 @@ texts* and complex expressions:
812812
{{ message|trans|raw }}
813813
{{ '<h3>bar</h3>'|trans|raw }}
814814
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:
818818

819-
.. code-block:: jinja
819+
.. code-block:: jinja
820+
821+
{% trans_default_domain "app" %}
820822
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).
822825

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
825828

826829
PHP Templates
827830
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)