forked from TYPO3-extensions/l10nmgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
73 lines (64 loc) · 3.2 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
<?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',
'icon' => 'EXT:l10nmgr/Resources/Public/Icons/module-l10nmgr.svg',
'labels' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/ConfigurationManager/locallang_mod.xlf'
));
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('LocalizationManager', '', '', '',
array(
'routeTarget' => \Localizationteam\L10nmgr\Controller\LocalizationManager::class . '::mainAction',
'access' => 'user,group',
'name' => 'LocalizationManager',
'icon' => 'EXT:l10nmgr/Resources/Public/Icons/module-l10nmgr.svg',
'labels' => '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',
'icon' => 'EXT:l10nmgr/Resources/Public/Icons/module-l10nmgr.svg',
'labels' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/Module2/locallang_mod.xlf'
));
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('LocalizationManager', 'TranslationTasks', '', '',
array(
'routeTarget' => \Localizationteam\L10nmgr\Controller\TranslationTasks::class . '::mainAction',
'access' => 'user,group',
'name' => 'LocalizationManager_TranslationTasks',
'icon' => 'EXT:l10nmgr/Resources/Public/Icons/module-l10nmgr-tasks.svg',
'labels' => 'LLL:EXT:l10nmgr/Resources/Private/Language/Modules/Module2/locallang_mod.xlf'
));
$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');
}
\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';