forked from xf-/l10nmgr-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
90 lines (80 loc) · 3.9 KB
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
if (TYPO3_MODE == "BE") {
$extPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('l10nmgr');
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'ConfigurationManager', '', '', array(
'routeTarget' => \Localizationteam\L10nmgr\Controller\ConfigurationManager::class . '::mainAction',
'access' => 'user,group',
'name' => 'web_ConfigurationManager',
'labels' => array(
'tabs_images' => array(
'tab' => 'EXT:l10nmgr/Resources/Public/Icons/module1_icon.gif',
),
'll_ref' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/ConfigurationManager/locallang_mod.xlf'
)
));
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('ConfigurationManager', 'LocalizationManager', '', '', array(
'routeTarget' => \Localizationteam\L10nmgr\Controller\LocalizationManager::class . '::mainAction',
'access' => 'user,group',
'name' => 'ConfigurationManager_LocalizationManager',
'labels' => array(
'tabs_images' => array(
'tab' => 'EXT:l10nmgr/Resources/Public/Icons/module1_icon.gif',
),
'll_ref' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/ConfigurationManager/locallang_mod.xlf'
)
));
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('user', 'txl10nmgrM2', 'top', '', array(
'routeTarget' => \Localizationteam\L10nmgr\Controller\Module2::class . '::main',
'access' => 'user,group',
'name' => 'user_txl10nmgrM2',
'labels' => array(
'tabs_images' => array(
'tab' => 'EXT:l10nmgr/Resources/Public/Icons/module2_icon.gif',
),
'll_ref' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/Module2/locallang_mod.xlf'
)
));
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('ConfigurationManager', 'TranslationTasks', '', '', array(
'routeTarget' => \Localizationteam\L10nmgr\Controller\TranslationTasks::class . '::mainAction',
'access' => 'user,group',
'name' => 'ConfigurationManager_TranslationTasks',
'labels' => array(
'tabs_images' => array(
'tab' => 'EXT:l10nmgr/Resources/Public/Icons/module1_icon.gif',
),
'll_ref' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/Module2/locallang_mod.xlf'
)
));
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages("tx_l10nmgr_cfg");
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_l10nmgr_cfg',
'EXT:l10nmgr/Resources/Private/Language/locallang_csh_l10nmgr.xlf');
// Example for disabling localization of specific fields in tables like tt_content
// Add as many fields as you need
//$TCA['tt_content']['columns']['imagecaption']['l10n_mode'] = 'exclude';
//$TCA['tt_content']['columns']['image']['l10n_mode'] = 'prefixLangTitle';
//$TCA['tt_content']['columns']['image']['l10n_display'] = 'defaultAsReadonly';
if (TYPO3_MODE == "BE") {
$GLOBALS["TBE_MODULES_EXT"]["xMOD_alt_clickmenu"]["extendCMclasses"][] = array(
"name" => "Localizationteam\\L10nmgr\\ClickMenu",
"path" => $extPath . "Classes/ClickMenu.php"
);
// Add context sensitive help (csh) for the Scheduler tasks
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_tasks_txl10nmgr',
'EXT:l10nmgr/Resources/Private/Language/Task/locallang_csh_tasks.xlf');
}