diff --git a/CodeExamples/localPackages/example_extension/Classes/Controller/AddressController.php b/CodeExamples/localPackages/example_extension/Classes/Controller/AddressController.php
index d6fde3f..1d75f28 100644
--- a/CodeExamples/localPackages/example_extension/Classes/Controller/AddressController.php
+++ b/CodeExamples/localPackages/example_extension/Classes/Controller/AddressController.php
@@ -22,6 +22,7 @@ namespace Workshop\ExampleExtension\Controller;
*/
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
+use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use Workshop\ExampleExtension\Domain\Model\Address;
use Workshop\ExampleExtension\Domain\Repository\AddressRepository;
@@ -55,7 +56,10 @@ class AddressController extends ActionController
$this->addressRepository->update($address);
$this->addFlashMessage(
- $address->getCompanyName() . ' was updated.',
+ LocalizationUtility::translate('flashSuccess', 'ExampleExtension', [
+ 'companyName' => $address->getCompanyName(),
+ 'street' => $address->getStreet(),
+ ]),
'Update successfully'
);
$this->redirect('index');
diff --git a/CodeExamples/localPackages/example_extension/Resources/Private/Language/locallang.xlf b/CodeExamples/localPackages/example_extension/Resources/Private/Language/locallang.xlf
index 53b85c8..9599d4f 100644
--- a/CodeExamples/localPackages/example_extension/Resources/Private/Language/locallang.xlf
+++ b/CodeExamples/localPackages/example_extension/Resources/Private/Language/locallang.xlf
@@ -30,6 +30,10 @@
+
+
+
+