diff --git a/typo3/sysext/backend/Classes/Module/ModuleLoader.php b/typo3/sysext/backend/Classes/Module/ModuleLoader.php index 5e969c7ec63b0473ac8c94f6662f30ee31051e13..dfc1806ce7801fa554ff052132b77228c59f39ed 100644 --- a/typo3/sysext/backend/Classes/Module/ModuleLoader.php +++ b/typo3/sysext/backend/Classes/Module/ModuleLoader.php @@ -173,7 +173,7 @@ class ModuleLoader $finalModuleConfiguration = $setupInformation['configuration']; $finalModuleConfiguration['name'] = $name; // Language processing. This will add module labels and image reference to the internal ->moduleLabels array of the LANG object. - $this->addLabelsForModule($name, $setupInformation['labels']); + $this->addLabelsForModule($name, ($finalModuleConfiguration['labels'] ?? $setupInformation['labels'])); // Default script setup if ($setupInformation['configuration']['script'] === '_DISPATCH' || isset($setupInformation['configuration']['routeTarget'])) { diff --git a/typo3/sysext/backend/ext_tables.php b/typo3/sysext/backend/ext_tables.php index 87d03b3f67791006f295707aca2902da02d416a4..e5d39f7f65a1bba55e677c3fdf2d5af738351116 100644 --- a/typo3/sysext/backend/ext_tables.php +++ b/typo3/sysext/backend/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'user,group', 'name' => 'web_layout', 'icon' => 'EXT:backend/Resources/Public/Icons/module-page.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf' ) ); diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-72827-ModuleIconConfigurationViaLabelstabs_imagestab.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-72827-ModuleIconConfigurationViaLabelstabs_imagestab.rst index 5f2ac7e813083ebcf85d757c700d2782657c3d35..2e20cc499cc6317d3bd2619a3a7e6283686f367f 100644 --- a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-72827-ModuleIconConfigurationViaLabelstabs_imagestab.rst +++ b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-72827-ModuleIconConfigurationViaLabelstabs_imagestab.rst @@ -43,8 +43,6 @@ Replace the ``[labels][tabs_images][tab]`` with ``[icon]`` in ``ext_tables.php`` 'name' => 'system_dbint', 'workspaces' => 'online', 'icon' => 'EXT:lowlevel/Resources/Public/Icons/module-dbint.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf' ) - ); \ No newline at end of file + ); diff --git a/typo3/sysext/core/ext_tables.php b/typo3/sysext/core/ext_tables.php index 53be2108398a62a1d8eb974531f364f2bee27218..1a5fced4019b1cfade63d0e0604475868a374973 100644 --- a/typo3/sysext/core/ext_tables.php +++ b/typo3/sysext/core/ext_tables.php @@ -61,46 +61,34 @@ $GLOBALS['TBE_MODULES'] = array( 'help' => '', '_configuration' => array( 'web' => array( - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf' - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_web.xlf', 'name' => 'web', 'iconIdentifier' => 'module-web' ), 'file' => array( - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf' - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_file.xlf', 'navigationFrameModule' => 'file_navframe', 'name' => 'file', 'workspaces' => 'online,custom', 'iconIdentifier' => 'module-file' ), 'user' => array( - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf' - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_usertools.xlf', 'name' => 'user', 'iconIdentifier' => 'status-user-backend' ), 'tools' => array( - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf' - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_admintools.xlf', 'name' => 'tools', 'iconIdentifier' => 'module-tools' ), 'system' => array( - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf' - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_system.xlf', 'name' => 'system', 'iconIdentifier' => 'module-system' ), 'help' => array( - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf' - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_help.xlf', 'name' => 'help', 'iconIdentifier' => 'module-help' ) diff --git a/typo3/sysext/dbal/ext_tables.php b/typo3/sysext/dbal/ext_tables.php index 880c6b4025848b23e64c11c5e7e84944fb6c52a1..872923716ec2fe461e5691071e9c5afa80c027ba 100644 --- a/typo3/sysext/dbal/ext_tables.php +++ b/typo3/sysext/dbal/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'admin', 'name' => 'tools_txdbalM1', 'icon' => 'EXT:dbal/Resources/Public/Icons/module-dbal.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:dbal/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:dbal/Resources/Private/Language/locallang_mod.xlf' ) ); } diff --git a/typo3/sysext/func/ext_tables.php b/typo3/sysext/func/ext_tables.php index a3ddb703fc8de974563dc746ab212fabec068773..02b6f7de3c0f48aa869646a4cd03abdc524fdaf7 100644 --- a/typo3/sysext/func/ext_tables.php +++ b/typo3/sysext/func/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'user,group', 'name' => 'web_func', 'icon' => 'EXT:func/Resources/Public/Icons/module-func.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_web_func.xlf', - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_web_func.xlf' ) ); } diff --git a/typo3/sysext/info/ext_tables.php b/typo3/sysext/info/ext_tables.php index 1b83637f3dae4bf5f346db4b7e21f0cfbca26d38..41714a09a1c0f5434261ab0a3911b939115d4563 100644 --- a/typo3/sysext/info/ext_tables.php +++ b/typo3/sysext/info/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'user,group', 'name' => 'web_info', 'icon' => 'EXT:info/Resources/Public/Icons/module-info.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_web_info.xlf', - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_web_info.xlf' ) ); } diff --git a/typo3/sysext/install/ext_tables.php b/typo3/sysext/install/ext_tables.php index 58fa1dbf38bf87b60085a90df8b67a978e981c0f..386905568c217aba91b442837d5403cce5d8436a 100644 --- a/typo3/sysext/install/ext_tables.php +++ b/typo3/sysext/install/ext_tables.php @@ -21,9 +21,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'admin', 'name' => 'system_extinstall', 'icon' => 'EXT:install/Resources/Public/Icons/module-install.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf', - ), + 'labels' => 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf' ) ); } diff --git a/typo3/sysext/lowlevel/ext_tables.php b/typo3/sysext/lowlevel/ext_tables.php index 73736a49337944f14e4ab776e93ae16104a6fa3f..cf379075394132d66ea3209fbaf512f7661d1c51 100644 --- a/typo3/sysext/lowlevel/ext_tables.php +++ b/typo3/sysext/lowlevel/ext_tables.php @@ -13,9 +13,7 @@ if (TYPO3_MODE === 'BE') { 'name' => 'system_dbint', 'workspaces' => 'online', 'icon' => 'EXT:lowlevel/Resources/Public/Icons/module-dbint.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf' ) ); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule( @@ -29,9 +27,7 @@ if (TYPO3_MODE === 'BE') { 'name' => 'system_config', 'workspaces' => 'online', 'icon' => 'EXT:lowlevel/Resources/Public/Icons/module-config.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod_configuration.xlf', - ), + 'labels' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod_configuration.xlf' ) ); } diff --git a/typo3/sysext/recordlist/ext_tables.php b/typo3/sysext/recordlist/ext_tables.php index 19dcd17fd9f1b9ba40e905902b1a7ce8b31c7ad6..1cd7e7803a67ec66a0c6f9b104d7f32230ce02a4 100644 --- a/typo3/sysext/recordlist/ext_tables.php +++ b/typo3/sysext/recordlist/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'user,group', 'name' => 'web_list', 'icon' => 'EXT:recordlist/Resources/Public/Icons/module-list.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:lang/locallang_mod_web_list.xlf', - ), + 'labels' => 'LLL:EXT:lang/locallang_mod_web_list.xlf' ) ); diff --git a/typo3/sysext/scheduler/ext_tables.php b/typo3/sysext/scheduler/ext_tables.php index 9fa19841cef9d6b2f6878e60a4e80bfd0d86c27b..44ca2567122d01c435694d07773332748c8d53e5 100644 --- a/typo3/sysext/scheduler/ext_tables.php +++ b/typo3/sysext/scheduler/ext_tables.php @@ -13,9 +13,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'admin', 'name' => 'system_txschedulerM1', 'icon' => 'EXT:scheduler/Resources/Public/Icons/module-scheduler.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:scheduler/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:scheduler/Resources/Private/Language/locallang_mod.xlf' ) ); diff --git a/typo3/sysext/setup/ext_tables.php b/typo3/sysext/setup/ext_tables.php index 117a59521a1f6d61cd715f908aadb73e5eb32adb..a784569fd5d070f929a9a0130fc362bc43bad1de 100644 --- a/typo3/sysext/setup/ext_tables.php +++ b/typo3/sysext/setup/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'group,user', 'name' => 'user_setup', 'icon' => 'EXT:setup/Resources/Public/Icons/module-setup.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:setup/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:setup/Resources/Private/Language/locallang_mod.xlf' ) ); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr( diff --git a/typo3/sysext/taskcenter/ext_tables.php b/typo3/sysext/taskcenter/ext_tables.php index 6ba59ccd03ec1bff597d20a8da9455105987c9bf..5b0150083a2a42da7998e8e99bbbfb02343b84f3 100644 --- a/typo3/sysext/taskcenter/ext_tables.php +++ b/typo3/sysext/taskcenter/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'group,user', 'name' => 'user_task', 'icon' => 'EXT:taskcenter/Resources/Public/Icons/module-taskcenter.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf' ) ); } diff --git a/typo3/sysext/tstemplate/ext_tables.php b/typo3/sysext/tstemplate/ext_tables.php index d12e8ede53a879596da792d3f115959b30832f1d..7a4124669e62099eef4116696d7227e46d7c1aba 100644 --- a/typo3/sysext/tstemplate/ext_tables.php +++ b/typo3/sysext/tstemplate/ext_tables.php @@ -12,9 +12,7 @@ if (TYPO3_MODE === 'BE') { 'access' => 'admin', 'name' => 'web_ts', 'icon' => 'EXT:tstemplate/Resources/Public/Icons/module-tstemplate.svg', - 'labels' => array( - 'll_ref' => 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_mod.xlf', - ), + 'labels' => 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_mod.xlf' ) );