We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fd48c commit 2d1505aCopy full SHA for 2d1505a
translation.rst
@@ -337,6 +337,14 @@ Templates are now much simpler because you can pass translatable objects to the
337
There's also a :ref:`function called t() <reference-twig-function-t>`,
338
available both in Twig and PHP, as a shortcut to create translatable objects.
339
340
+On the contrary, if you want your message to never be translated, you can
341
+ensure this behavior with the
342
+:class:`Symfony\\Component\\Translation\\StaticMessage` class::
343
+
344
+ use Symfony\Component\Translation\StaticMessage;
345
346
+ $message = new StaticMessage('This message will never be translated.');
347
348
.. _translation-in-templates:
349
350
Translations in Templates
0 commit comments