Forráskód Böngészése

translate controllers and fix missing controllercontext errors

Olivier Massot 4 éve
szülő
commit
e7b460e758
22 módosított fájl, 116 hozzáadás és 45 törlés
  1. 29 0
      ot_core/Classes/Controller/ActionController.php
  2. 0 8
      ot_core/Classes/Controller/SelectedSiteController.php
  3. 4 1
      ot_core/Resources/Private/Language/locallang.xlf
  4. 7 2
      ot_stats/Classes/Controller/OtStatsController.php
  5. 6 2
      ot_templating/Classes/Controller/OtCustomizerController.php
  6. 18 5
      ot_templating/Classes/Page/ErrorHandler.php
  7. 9 3
      ot_templating/Resources/Private/Language/locallang.xlf
  8. 19 0
      ot_templating/Resources/Private/Language/locallang_mod.xlf
  9. 2 2
      ot_templating/Resources/Private/Templates/Page/1Col.html
  10. 4 4
      ot_templating/Resources/Private/Templates/Page/3Col.html
  11. 1 1
      ot_templating/Resources/Private/Templates/Page/Contact.html
  12. 1 1
      ot_templating/Resources/Private/Templates/Page/Error/403.html
  13. 1 1
      ot_templating/Resources/Private/Templates/Page/Error/404.html
  14. 1 1
      ot_templating/Resources/Private/Templates/Page/Error/500.html
  15. 1 1
      ot_templating/Resources/Private/Templates/Page/Events.html
  16. 7 7
      ot_templating/Resources/Private/Templates/Page/Home.html
  17. 1 1
      ot_templating/Resources/Private/Templates/Page/Legal.html
  18. 1 1
      ot_templating/Resources/Private/Templates/Page/Members.html
  19. 1 1
      ot_templating/Resources/Private/Templates/Page/MembersCa.html
  20. 1 1
      ot_templating/Resources/Private/Templates/Page/News.html
  21. 1 1
      ot_templating/Resources/Private/Templates/Page/Structures.html
  22. 1 1
      ot_templating/Resources/Private/Templates/Page/StructuresEvents.html

+ 29 - 0
ot_core/Classes/Controller/ActionController.php

@@ -0,0 +1,29 @@
+<?php
+
+namespace Opentalent\OtCore\Controller;
+
+use Opentalent\OtCore\Page\OtPageRepository;
+
+/**
+ * Base class for all controllers of backend modules
+ *
+ * Class ActionController
+ */
+class ActionController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
+{
+    protected $otPageRepository;
+
+    public function injectOtPageRepository(OtPageRepository $otPageRepository) {
+        $this->otPageRepository = $otPageRepository;
+    }
+
+    /**
+     * Returns the language service.
+     *
+     * @return \TYPO3\CMS\Core\Localization\LanguageService
+     */
+    protected function getLanguageService()
+    {
+        return $GLOBALS['LANG'];
+    }
+}

+ 0 - 8
ot_core/Classes/Controller/SelectedSiteController.php

@@ -4,8 +4,6 @@ namespace Opentalent\OtCore\Controller;
 
 
 use Opentalent\OtCore\Exception\NoSiteSelected;
 use Opentalent\OtCore\Exception\NoSiteSelected;
 use Opentalent\OtCore\Page\OtPageRepository;
 use Opentalent\OtCore\Page\OtPageRepository;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
 
 
 /**
 /**
@@ -28,15 +26,9 @@ class SelectedSiteController extends ActionController
      */
      */
     protected $currentRootUid;
     protected $currentRootUid;
 
 
-    protected $otPageRepository;
-
     /** [FOR TESTS ONLY] */
     /** [FOR TESTS ONLY] */
     protected $preventPropagation = false;
     protected $preventPropagation = false;
 
 
-    public function injectOtPageRepository(OtPageRepository $otPageRepository) {
-        $this->otPageRepository = $otPageRepository;
-    }
-
     /**
     /**
      *
      *
      * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
      * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException

+ 4 - 1
ot_core/Resources/Private/Language/locallang.xlf

@@ -1,9 +1,12 @@
 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 <xliff version="1.0">
 <xliff version="1.0">
-	<file source-language="fr" datatype="plaintext" original="messages" date="2020-04-03T15:44:11Z" product-name="ot_templating">
+	<file source-language="fr" datatype="plaintext" original="messages" date="2020-04-03T15:44:11Z" product-name="ot_core">
 		<header/>
 		<header/>
 		<body>
 		<body>
 			<!--  -->
 			<!--  -->
+			<trans-unit id="an_error_occured">
+				<source>Une erreur s'est produite lors de l'opération, veuillez contacter un administrateur.</source>
+			</trans-unit>
 			<trans-unit id="noPageSelected">
 			<trans-unit id="noPageSelected">
 				<source>Veuillez sélectionner une des pages du site à personnaliser pour accéder à cette rubrique.</source>
 				<source>Veuillez sélectionner une des pages du site à personnaliser pour accéder à cette rubrique.</source>
 			</trans-unit>
 			</trans-unit>

+ 7 - 2
ot_stats/Classes/Controller/OtStatsController.php

@@ -68,8 +68,11 @@ class OtStatsController extends SelectedSiteController {
             $matomoRepository->createFor($this->currentRootUid);
             $matomoRepository->createFor($this->currentRootUid);
         } catch (\RuntimeException $e) {
         } catch (\RuntimeException $e) {
             OtLogger::error("OtStats - " . $e);
             OtLogger::error("OtStats - " . $e);
+
             $this->addFlashMessage(
             $this->addFlashMessage(
-                "Une erreur s'est produite lors de l'opération, veuillez contacter un administrateur.",
+                $this->getLanguageService()->sL(
+                    'LLL:EXT:ot_core/Resources/Private/Language/locallang.xlf:an_error_occured'
+                ),
                 '',
                 '',
                 AbstractMessage::ERROR
                 AbstractMessage::ERROR
             );
             );
@@ -95,7 +98,9 @@ class OtStatsController extends SelectedSiteController {
         } catch (\RuntimeException $e) {
         } catch (\RuntimeException $e) {
             OtLogger::error("OtStats - " . $e);
             OtLogger::error("OtStats - " . $e);
             $this->addFlashMessage(
             $this->addFlashMessage(
-                "Une erreur s'est produite lors de l'opération, veuillez contacter un administrateur.",
+                $this->getLanguageService()->sL(
+                    'LLL:EXT:ot_core/Resources/Private/Language/locallang.xlf:an_error_occured'
+                ),
                 '',
                 '',
                 AbstractMessage::ERROR
                 AbstractMessage::ERROR
             );
             );

+ 6 - 2
ot_templating/Classes/Controller/OtCustomizerController.php

@@ -63,7 +63,9 @@ class OtCustomizerController extends SelectedSiteController {
         // Clear the site's cache
         // Clear the site's cache
         OtCacheManager::clearSiteCache($this->currentRootUid);
         OtCacheManager::clearSiteCache($this->currentRootUid);
 
 
-        $this->addFlashMessage('Le thème a bien été modifié');
+        $this->addFlashMessage($this->getLanguageService()->sL(
+            'LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:theme_updated'
+        ));
 
 
         $this->forward('index');
         $this->forward('index');
     }
     }
@@ -101,7 +103,9 @@ class OtCustomizerController extends SelectedSiteController {
         // Clear the site's cache
         // Clear the site's cache
         OtCacheManager::clearSiteCache($this->currentRootUid);
         OtCacheManager::clearSiteCache($this->currentRootUid);
 
 
-        $this->addFlashMessage('Les préférences ont bien été enregistrées');
+        $this->addFlashMessage($this->getLanguageService()->sL(
+            'LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:settings_updated'
+        ));
 
 
         $this->forward(
         $this->forward(
             'index',
             'index',

+ 18 - 5
ot_templating/Classes/Page/ErrorHandler.php

@@ -9,9 +9,12 @@ use TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler;
 use TYPO3\CMS\Core\Error\PageErrorHandler\PageErrorHandlerInterface;
 use TYPO3\CMS\Core\Error\PageErrorHandler\PageErrorHandlerInterface;
 use TYPO3\CMS\Core\Http\HtmlResponse;
 use TYPO3\CMS\Core\Http\HtmlResponse;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
+use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
+use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
+use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext;
 use TYPO3\CMS\Fluid\View\TemplateView;
 use TYPO3\CMS\Fluid\View\TemplateView;
-use TYPO3Fluid\Fluid\View\ViewInterface;
 
 
 class ErrorHandler implements PageErrorHandlerInterface
 class ErrorHandler implements PageErrorHandlerInterface
 {
 {
@@ -50,6 +53,16 @@ class ErrorHandler implements PageErrorHandlerInterface
         $this->errorHandlerConfiguration = $configuration;
         $this->errorHandlerConfiguration = $configuration;
 
 
         $this->view = GeneralUtility::makeInstance(TemplateView::class);
         $this->view = GeneralUtility::makeInstance(TemplateView::class);
+
+        $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
+        $controllerContext = $objectManager->get(ControllerContext::class);
+        $renderingContext = $objectManager->get(RenderingContext::class);
+        $webRequest = $objectManager->get(\TYPO3\CMS\Extbase\Mvc\Request::class);
+        $webRequest->setControllerExtensionName('ot_templating');
+        $controllerContext->setRequest($webRequest);
+        $renderingContext->setControllerContext($controllerContext);
+
+        $this->view->setRenderingContext($renderingContext);
         $this->view->setTemplateRootPaths([self::TEMPLATES_ROOT_PATHS]);
         $this->view->setTemplateRootPaths([self::TEMPLATES_ROOT_PATHS]);
         $this->view->setLayoutRootPaths([self::LAYOUTS_ROOT_PATHS]);
         $this->view->setLayoutRootPaths([self::LAYOUTS_ROOT_PATHS]);
         $this->view->setPartialRootPaths([self::PARTIALS_ROOT_PATHS]);
         $this->view->setPartialRootPaths([self::PARTIALS_ROOT_PATHS]);
@@ -71,9 +84,9 @@ class ErrorHandler implements PageErrorHandlerInterface
     ): ResponseInterface {
     ): ResponseInterface {
 
 
         $homeUri = "https://opentalent.fr";
         $homeUri = "https://opentalent.fr";
-        $title = 'Page introuvable';
+        $title = 'Page Introuvable';
 
 
-        // This variable role is to prevent redirection loop,
+        // This variable aims to prevent redirection loop
         $isCircular = preg_match('/.*\/page-introuvable/', $request->getUri()->getPath());
         $isCircular = preg_match('/.*\/page-introuvable/', $request->getUri()->getPath());
 
 
         $pageRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(OtPageRepository::class);
         $pageRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(OtPageRepository::class);
@@ -90,7 +103,7 @@ class ErrorHandler implements PageErrorHandlerInterface
 
 
                 $subPages = $pageRepository->getAllSubpagesForPage($rootUid, true);
                 $subPages = $pageRepository->getAllSubpagesForPage($rootUid, true);
                 foreach ($subPages as $page) {
                 foreach ($subPages as $page) {
-                    if ($page['slug'] == '/page-introuvable') {
+                    if ($page['tx_fed_page_controller_action'] == 'OpenTalent.OtTemplating->error/404') {
 
 
                         $errorHandler = GeneralUtility::makeInstance(
                         $errorHandler = GeneralUtility::makeInstance(
                             PageContentErrorHandler::class,
                             PageContentErrorHandler::class,
@@ -104,7 +117,7 @@ class ErrorHandler implements PageErrorHandlerInterface
                     }
                     }
                 }
                 }
             } else {
             } else {
-                $title = "Page inexistante";
+                $title = 'Page Introuvable';
                 $homeUri = self::REDIRECT_FALLBACK;
                 $homeUri = self::REDIRECT_FALLBACK;
             }
             }
 
 

+ 9 - 3
ot_templating/Resources/Private/Language/locallang.xlf

@@ -337,9 +337,15 @@
 			<trans-unit id="an_error_occured">
 			<trans-unit id="an_error_occured">
 				<source>Une erreur s'est produite, nous nous excusons pour la gêne occasionnée</source>
 				<source>Une erreur s'est produite, nous nous excusons pour la gêne occasionnée</source>
 			</trans-unit>
 			</trans-unit>
-
-
-
+			<trans-unit id="theme_updated">
+				<source>Le thème a bien été modifié</source>
+			</trans-unit>
+			<trans-unit id="settings_updated">
+				<source>Les préférences ont bien été enregistrées</source>
+			</trans-unit>
+			<trans-unit id="missing_page">
+				<source>Page introuvable</source>
+			</trans-unit>
 
 
 			<trans-unit id="PRESIDENT" xml:space="preserve">
 			<trans-unit id="PRESIDENT" xml:space="preserve">
 			    <source>Président.e</source>
 			    <source>Président.e</source>

+ 19 - 0
ot_templating/Resources/Private/Language/locallang_mod.xlf

@@ -12,6 +12,25 @@
             <trans-unit id="mlang_labels_tabdescr" xml:space="preserve">
             <trans-unit id="mlang_labels_tabdescr" xml:space="preserve">
 				<source>Personnaliser votre site, par Opentalent</source>
 				<source>Personnaliser votre site, par Opentalent</source>
 			</trans-unit>
 			</trans-unit>
+
+            <trans-unit id="template_legal">
+                <source>Gabarit Mentions légales</source>
+            </trans-unit>
+            <trans-unit id="template_members">
+                <source>Gabarit Adherents</source>
+            </trans-unit>
+            <trans-unit id="template_members_ca">
+                <source>Gabarit Membres CA</source>
+            </trans-unit>
+            <trans-unit id="template_news">
+                <source>Gabarit Actualités</source>
+            </trans-unit>
+            <trans-unit id="template_structures">
+                <source>Gabarit Structures adhérentes</source>
+            </trans-unit>
+            <trans-unit id="template_structures_events">
+                <source>Gabarit Evènements des structures</source>
+            </trans-unit>
         </body>
         </body>
     </file>
     </file>
 </xliff>
 </xliff>

+ 2 - 2
ot_templating/Resources/Private/Templates/Page/1Col.html

@@ -6,13 +6,13 @@
 <f:layout name="{ot:template.current()}/1Col" />
 <f:layout name="{ot:template.current()}/1Col" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="1col" label="{f:translate(key: 'template_1col')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="1col" label="LLL:template_1col" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <f:comment><!-- Backend layout grid --></f:comment>
     <f:comment><!-- Backend layout grid --></f:comment>
     <flux:grid>
     <flux:grid>
         <flux:grid.row>
         <flux:grid.row>
-            <flux:grid.column colPos="0" name="Content" label="{f:translate(key: 'template_1col')}" />
+            <flux:grid.column colPos="0" name="Content" label="LLL:template_1col" />
         </flux:grid.row>
         </flux:grid.row>
     </flux:grid>
     </flux:grid>
 
 

+ 4 - 4
ot_templating/Resources/Private/Templates/Page/3Col.html

@@ -6,15 +6,15 @@
 <f:layout name="{ot:template.current()}/3Col" />
 <f:layout name="{ot:template.current()}/3Col" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="3col" label="{f:translate(key: 'template_3col')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="3col" label="LLL:template_3col" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <f:comment><!-- Backend layout grid --></f:comment>
     <f:comment><!-- Backend layout grid --></f:comment>
     <flux:grid>
     <flux:grid>
         <flux:grid.row>
         <flux:grid.row>
-            <flux:grid.column colPos="1" name="Leftcol" label="{f:translate(key: 'left_column')}" style="width: 25%" />
-            <flux:grid.column colPos="0" name="Content" label="{f:translate(key: 'content')}" style="width: 50%" />
-            <flux:grid.column colPos="2" name="Rightcol" label="{f:translate(key: 'right_column')}" style="width: 25%" />
+            <flux:grid.column colPos="1" name="Leftcol" label="LLL:left_column" style="width: 25%" />
+            <flux:grid.column colPos="0" name="Content" label="LLL:content" style="width: 50%" />
+            <flux:grid.column colPos="2" name="Rightcol" label="LLL:right_column" style="width: 25%" />
         </flux:grid.row>
         </flux:grid.row>
     </flux:grid>
     </flux:grid>
 </f:section>
 </f:section>

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Contact.html

@@ -5,7 +5,7 @@
 <f:layout name="{ot:template.current()}/Contact" />
 <f:layout name="{ot:template.current()}/Contact" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="contact" label="{f:translate(key: 'template_contact')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="contact" label="LLL:template_contact" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <!-- Backend layout grid -->
     <!-- Backend layout grid -->

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Error/403.html

@@ -3,7 +3,7 @@
 <f:layout name="ErrorPage" />
 <f:layout name="ErrorPage" />
 
 
 <f:section name="Configuration">
 <f:section name="Configuration">
-    <flux:form id="err403" label="{f:translate(key: 'template_err403')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="err403" label="LLL:template_err403" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 </f:section>
 </f:section>
 
 

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Error/404.html

@@ -3,7 +3,7 @@
 <f:layout name="ErrorPage" />
 <f:layout name="ErrorPage" />
 
 
 <f:section name="Configuration">
 <f:section name="Configuration">
-    <flux:form id="err404"  label="{f:translate(key: 'template_err404')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="err404"  label="LLL:template_err404" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 </f:section>
 </f:section>
 
 

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Error/500.html

@@ -3,7 +3,7 @@
 <f:layout name="ErrorPage" />
 <f:layout name="ErrorPage" />
 
 
 <f:section name="Configuration">
 <f:section name="Configuration">
-    <flux:form id="err500"  label="{f:translate(key: 'template_err500')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="err500"  label="LLL:template_err500" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 </f:section>
 </f:section>
 
 

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Events.html

@@ -6,7 +6,7 @@
 <f:layout name="{ot:template.current()}/Events" />
 <f:layout name="{ot:template.current()}/Events" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="events" label="{f:translate(key: 'template_events')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="events" label="LLL:template_events" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <f:comment><!-- Backend layout grid --></f:comment>
     <f:comment><!-- Backend layout grid --></f:comment>

+ 7 - 7
ot_templating/Resources/Private/Templates/Page/Home.html

@@ -6,18 +6,18 @@
 <f:layout name="{ot:template.current()}/Home" />
 <f:layout name="{ot:template.current()}/Home" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="home" label="{f:translate(key: 'template_home')}" extensionName="Opentalent.OtTemplating">
-        <flux:field.checkbox name="settings.staticDonors" label="{f:translate(key: 'static_donors')}" default="0"/>
-        <flux:field.input name="settings.eventsLimit" label="{f:translate(key: 'next_events_limit')}" default="5" minimum="1" maximum="24" eval="int"/>
-        <flux:field.input name="settings.eventsPeriod" label="{f:translate(key: 'next_events_period')}" default="8" minimum="0" eval="int"/>
+    <flux:form id="home" label="LLL:template_home" extensionName="Opentalent.OtTemplating">
+        <flux:field.checkbox name="settings.staticDonors" label="LLL:static_donors" default="0"/>
+        <flux:field.input name="settings.eventsLimit" label="LLL:next_events_limit" default="5" minimum="1" maximum="24" eval="int"/>
+        <flux:field.input name="settings.eventsPeriod" label="LLL:next_events_period" default="8" minimum="0" eval="int"/>
     </flux:form>
     </flux:form>
 
 
     <!-- Backend layout grid -->
     <!-- Backend layout grid -->
     <flux:grid>
     <flux:grid>
         <flux:grid.row>
         <flux:grid.row>
-            <flux:grid.column colPos="1" name="Leftcol" label="{f:translate(key: 'left_column')}" style="width: 25%" />
-            <flux:grid.column colPos="0" name="Content" label="{f:translate(key: 'content')}" style="width: 50%" />
-            <flux:grid.column colPos="2" name="Rightcol" label="{f:translate(key: 'right_column')}" style="width: 25%" />
+            <flux:grid.column colPos="1" name="Leftcol" label="LLL:left_column" style="width: 25%" />
+            <flux:grid.column colPos="0" name="Content" label="LLL:content" style="width: 50%" />
+            <flux:grid.column colPos="2" name="Rightcol" label="LLL:right_column" style="width: 25%" />
         </flux:grid.row>
         </flux:grid.row>
     </flux:grid>
     </flux:grid>
 
 

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Legal.html

@@ -6,7 +6,7 @@
 <f:layout name="{ot:template.current()}/Legal" />
 <f:layout name="{ot:template.current()}/Legal" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="legal" label="{f:translate(key: 'template_legal')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="legal" label="LLL:template_legal" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <!-- Backend layout grid -->
     <!-- Backend layout grid -->

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Members.html

@@ -6,7 +6,7 @@
 <f:layout name="{ot:template.current()}/Members" />
 <f:layout name="{ot:template.current()}/Members" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="members" label="{f:translate(key: 'template_members')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="members" label="LLL:template_members" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <f:comment><!-- Backend layout grid --></f:comment>
     <f:comment><!-- Backend layout grid --></f:comment>

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/MembersCa.html

@@ -6,7 +6,7 @@
 <f:layout name="{ot:template.current()}/MembersCa" />
 <f:layout name="{ot:template.current()}/MembersCa" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="members_ca" label="{f:translate(key: 'template_members_ca')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="members_ca" label="LLL:template_members_ca" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <!-- Backend layout grid -->
     <!-- Backend layout grid -->

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/News.html

@@ -5,7 +5,7 @@
 <f:layout name="{ot:template.current()}/News" />
 <f:layout name="{ot:template.current()}/News" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="news" label="{f:translate(key: 'template_news')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="news" label="LLL:template_news" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <f:comment><!-- Backend layout grid --></f:comment>
     <f:comment><!-- Backend layout grid --></f:comment>

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/Structures.html

@@ -6,7 +6,7 @@
 <f:layout name="{ot:template.current()}/Structures" />
 <f:layout name="{ot:template.current()}/Structures" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="structures" label="{f:translate(key: 'template_structures')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="structures" label="LLL:template_structures" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <!-- Backend layout grid -->
     <!-- Backend layout grid -->

+ 1 - 1
ot_templating/Resources/Private/Templates/Page/StructuresEvents.html

@@ -6,7 +6,7 @@
 <f:layout name="{ot:template.current()}/StructuresEvents" />
 <f:layout name="{ot:template.current()}/StructuresEvents" />
 
 
 <f:section name='Configuration'>
 <f:section name='Configuration'>
-    <flux:form id="structuresEvents" label="{f:translate(key: 'template_structures_events')}" extensionName="Opentalent.OtTemplating">
+    <flux:form id="structuresEvents" label="LLL:template_structures_events" extensionName="Opentalent.OtTemplating">
     </flux:form>
     </flux:form>
 
 
     <!-- Backend layout grid -->
     <!-- Backend layout grid -->