-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathext_tables.php
90 lines (83 loc) · 3.09 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.');
}
/**
* Registers a Backend Module
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'web',
'ConfigurationManager',
'',
'',
[
'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',
'',
'',
'',
[
'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',
'',
[
'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',
'',
'',
[
'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',
]
);
// 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';