Skip to content

Commit 24b9aeb

Browse files
committed
Change translatable example parameter key
1 parent bd1b7f9 commit 24b9aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ all the information needed to fully translate its contents when needed::
316316
$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 Translatable('order.status', ['order' => $order], '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)