[BUGFIX] EXT:form: Make hardcoded messages translatable
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / View / Wizard / AbstractWizardView.php
index 1fdc5fc..a7dae1d 100644 (file)
@@ -35,6 +35,15 @@ abstract class AbstractWizardView {
         */
        protected $repository;
 
+       /**
+        * Returns an instance of LanguageService
+        *
+        * @return \TYPO3\CMS\Lang\LanguageService
+        */
+       protected function getLanguageService() {
+               return $GLOBALS['LANG'];
+       }
+
        /**
         * Creates the object and calls the initialize() method.
         *
@@ -42,6 +51,7 @@ abstract class AbstractWizardView {
         */
        public function __construct(ContentRepository $repository) {
                $this->setRepository($repository);
+               $this->getLanguageService()->includeLLFile('EXT:form/Resources/Private/Language/locallang_wizard.xlf');
        }
 
        /**