[TASK] Move language include to .xlf
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 // avoid that this block is loaded in the frontend or within the upgrade-wizards
6 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
7 /** Registers a Backend Module */
8 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
9 'TYPO3.CMS.' . $_EXTKEY,
10 'web',
11 'workspaces',
12 'before:info',
13 array(
14 // An array holding the controller-action-combinations that are accessible
15 'Review' => 'index,fullIndex,singleIndex',
16 'Preview' => 'index,newPage'
17 ),
18 array(
19 'access' => 'user,group',
20 'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
21 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
22 'navigationComponentId' => 'typo3-pagetree'
23 )
24 );
25
26 // register ExtDirect
27 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
28 'TYPO3.Workspaces.ExtDirect',
29 'TYPO3\\CMS\\Workspaces\\ExtDirect\\ExtDirectServer',
30 'web_WorkspacesWorkspaces',
31 'user,group'
32 );
33 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
34 'TYPO3.Workspaces.ExtDirectActions',
35 'TYPO3\\CMS\\Workspaces\\ExtDirect\\ActionHandler',
36 'web_WorkspacesWorkspaces',
37 'user,group'
38 );
39 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
40 'TYPO3.Workspaces.ExtDirectMassActions',
41 'TYPO3\\CMS\\Workspaces\\ExtDirect\\MassActionHandler',
42 'web_WorkspacesWorkspaces',
43 'user,group'
44 );
45 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
46 'TYPO3.Ajax.ExtDirect.ToolbarMenu',
47 'TYPO3\\CMS\\Workspaces\\ExtDirect\\ToolbarMenu'
48 );
49 }
50
51 // todo move icons to Core sprite or keep them here and remove the todo note ;)
52 $icons = array(
53 'sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
54 'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
55 'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png'
56 );
57 \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, $_EXTKEY);
58 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');
59 ?>