Skip to content

Commit ab1f722

Browse files
committed
Fix build errors
1 parent 0227d2c commit ab1f722

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

translation.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,18 +300,14 @@ sure how it would be translated. For example, it could be translated multiple
300300
times if intended to be displayed to multiple users.
301301

302302
Instead of translating a string at the time of creation, a ``Translatable``
303-
object can be created that can then be translated when used.
304-
305-
.. code-block:: php
303+
object can be created that can then be translated when used::
306304

307305
$message = new Translatable('Symfony is great!');
308306
$message = t('Symfony is great!');
309307

310308
Later this message can be translated with a translator in either PHP or in Twig.
311309

312-
PHP:
313-
314-
.. code-block:: php
310+
PHP::
315311

316312
Translatable::trans($translator, $message);
317313

0 commit comments

Comments
 (0)