forked from sitegeist/translatelabels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
58 lines (44 loc) · 3.05 KB
/
ext_localconf.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
<?php
defined('TYPO3') or die();
call_user_func(function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
"@import 'EXT:translatelabels/Configuration/TSconfig/page.tsconfig'"
);
// Register hook after all fe generation, i.e. after inclusion of uncached user_int objects
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][] =
\Sitegeist\Translatelabels\Hooks\TypoScriptFrontendController::class . '->contentPostProcAll';
// override f: namespace for fluid to override f:translate
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['f'][] = 'Sitegeist\\Translatelabels\\ViewHelpers';
// override formvh: namespace for fluid to override f:translate
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'][] = 'Sitegeist\\Translatelabels\\ViewHelpers';
// override fc: namespace for fluid_components to override fc:form.translatedValidationResults
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['fc'][] = 'Sitegeist\\Translatelabels\\ViewHelpers\\FluidComponents';
// xclass TYPO3\CMS\Frontend\Plugin\AbstractPlugin to extend method pi_getLL
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\Plugin\\AbstractPlugin'] = array(
'className' => 'Sitegeist\\Translatelabels\\Plugin\\FrontendLoginController'
);
// xclass TYPO3\CMS\Frontend\Plugin\AbstractPlugin to extend method pi_getLL
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController'] = array(
'className' => 'Sitegeist\\Translatelabels\\Plugin\\FrontendLoginController'
);
// Admin Panel Integration
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']['translatelabels'] = [
'module' => \Sitegeist\Translatelabels\Adminpanel\Modules\TranslateLabelModule::class,
'after' => ['debug'],
'submodules' => [
'translatelabel' => [
'module' => \Sitegeist\Translatelabels\Adminpanel\Modules\TranslateLabel\TranslateLabel::class,
],
'info' => [
'module' => \Sitegeist\Translatelabels\Adminpanel\Modules\TranslateLabel\TranslateLabelInfo::class,
'after' => ['translatelabel']
]
]
];
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['translatelabels_translate']
= \Sitegeist\Translatelabels\Controller\AjaxController::class . '::saveDataAction';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['translatelabels_cache'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['translatelabels_cache']['backend'] ??= \TYPO3\CMS\Core\Cache\Backend\FileBackend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['translatelabels_cache']['frontend'] ??= \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Sitegeist\Translatelabels\Hooks\UpdateLabelsHook::class;
});