Browse Source

minor translation fixes

Olivier Massot 4 năm trước cách đây
mục cha
commit
1a57c81610

+ 2 - 2
ot_connect/Classes/Service/OtAuthenticationService.php

@@ -313,7 +313,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
             'password' => $randomStr,
             'name' => $userApiData['name'],
             'first_name' => $userApiData['first_name'],
-            'description' => '[ATTENTION: enregistrement auto-généré, ne pas modifier directement] FE User',
+            'description' => '[Warning: auto-generated record, do not modify] FE User',
             'usergroup' => 21,
             'deleted' => 0,
             'tx_opentalent_opentalentId' => $userApiData['id'],
@@ -373,7 +373,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
                 $be_row = [
                     'username' => $userApiData['username'],
                     'password' => $randomStr,
-                    'description' => '[ATTENTION: enregistrement auto-généré, ne pas modifier directement] BE Admin for ' . $access['subDomain'] . ' (id: ' . $access['id'] . ')',
+                    'description' => '[Warning: auto-generated record, do not modify] BE Admin for ' . $access['subDomain'] . ' (id: ' . $access['id'] . ')',
                     'deleted' => 0,
                     'lang' => 'fr',
                     'usergroup' => isset(self::PRODUCT_MAPPING[$access['product']]) ? self::PRODUCT_MAPPING[$access['product']] : 1,

+ 10 - 0
ot_core/Classes/ViewHelpers/OtAbstractViewHelper.php

@@ -37,4 +37,14 @@ class OtAbstractViewHelper  extends AbstractViewHelper implements LoggerAwareInt
     {
         $this->pageRepository = $pageRepository;
     }
+
+    /**
+     * Returns the language service.
+     *
+     * @return \TYPO3\CMS\Core\Localization\LanguageService
+     */
+    protected function getLanguageService()
+    {
+        return $GLOBALS['LANG'];
+    }
 }

+ 1 - 1
ot_core/Configuration/TCA/Overrides/pages.php

@@ -4,7 +4,7 @@ defined('TYPO3_MODE') or die();
 // ** Add fields to the backend
 $columns = array (
     'tx_opentalent_structure_id' => array (
-        'label' => 'Id de la structure',
+        'label' => 'LLL:EXT:ot_core/Resources/Private/Language/locallang.xlf:structure_id',
         'displayCond' => 'HIDE_FOR_NON_ADMINS',
         'config' => array (
             'type' => 'input',

+ 3 - 0
ot_core/Resources/Private/Language/locallang.xlf

@@ -10,6 +10,9 @@
 			<trans-unit id="noPageSelected">
 				<source>Veuillez sélectionner une des pages du site à personnaliser pour accéder à cette rubrique.</source>
 			</trans-unit>
+			<trans-unit id="structure_id">
+				<source>Id de la structure</source>
+			</trans-unit>
 		</body>
 	</file>
 </xliff>