8000 Fixed some wrong class names · symfony/symfony-docs@8d1364e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d1364e

Browse files
committed
Fixed some wrong class names
1 parent 28db8c6 commit 8d1364e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

translation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ all the information needed to fully translate its contents when needed::
313313
use Symfony\Component\Translation\Translatable;
314314

315315
// the first argument is required and it's the original message
316-
$message = new TranslatableMessage('Symfony is great!');
316+
$message = new Translatable('Symfony is great!');
317317
// the optional second argument defines the translation parameters and
318318
// the optional third argument is the translation domain
319-
$status = new TranslatableMessage('order.status', ['%status%' => $order->getStatus()], 'store');
319+
$status = new Translatable('order.status', ['%status%' => $order->getStatus()], 'store');
320320

321321
Templates are now much simpler because you can pass translatable objects to the
322322
``trans`` filter:

0 commit comments

Comments
 (0)
0