Commit 2ab2973e authored by Wouter Wolters's avatar Wouter Wolters Committed by Markus Klein
Browse files

[!!!][TASK] Remove ext:cms

Move language files to correct locations.

Resolves: #67991
Releases: master
Change-Id: Ic16d218c608ba2a7b3311cdde603472e01088073
Reviewed-on: http://review.typo3.org/41006


Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
parent 91a7c79b
......@@ -127,7 +127,7 @@ class NewContentElementController {
$lang = $this->getLanguageService();
$lang->includeLLFile('EXT:lang/locallang_misc.xlf');
$LOCAL_LANG_orig = $GLOBALS['LOCAL_LANG'];
$lang->includeLLFile('EXT:cms/layout/locallang_db_new_content_el.xlf');
$lang->includeLLFile('EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf');
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($LOCAL_LANG_orig, $GLOBALS['LOCAL_LANG']);
$GLOBALS['LOCAL_LANG'] = $LOCAL_LANG_orig;
......
......@@ -292,7 +292,7 @@ class NewRecordController {
if (!$this->pagesOnly) {
// New page
if ($this->showNewRecLink('pages')) {
$buttons['new_page'] = '<a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('pagesOnly' => '1'))) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:cms/layout/locallang.xlf:newPage', TRUE) . '">' . IconUtility::getSpriteIcon('actions-page-new') . '</a>';
$buttons['new_page'] = '<a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('pagesOnly' => '1'))) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newPage', TRUE) . '">' . IconUtility::getSpriteIcon('actions-page-new') . '</a>';
}
// CSH
$buttons['csh'] = BackendUtility::cshItem('xMOD_csh_corebe', 'new_regular');
......@@ -413,7 +413,7 @@ class NewRecordController {
$thisTitle = '';
// Create new link for record:
$newLink = $this->linkWrap($newRecordIcon . $lang->sL($v['ctrl']['title'], TRUE), $table, $this->id);
// If the table is 'tt_content' (from "cms" extension), create link to wizard
// If the table is 'tt_content', create link to wizard
if ($table == 'tt_content') {
$groupName = $lang->getLL('createNewContent');
$rowContent = $newContentIcon . '<strong>' . $lang->getLL('createNewContent') . '</strong><ul>';
......
......@@ -297,7 +297,7 @@ class PageLayoutController {
* @return void
*/
public function init() {
$this->getLanguageService()->includeLLFile('EXT:cms/layout/locallang.xlf');
$this->getLanguageService()->includeLLFile('EXT:backend/Resources/Private/Language/locallang_layout.xlf');
// Setting module configuration / page select clause
$this->MCONF = $GLOBALS['MCONF'];
......
......@@ -234,7 +234,7 @@ class PageTreeNavigationController {
);
// New Page
$onclickNewPageWizard = 'top.content.list_frame.location.href=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('db_new', ['pagesOnly' => 1, 'id' => ''])) . '+Tree.pageID;';
$buttons['new_page'] = '<a href="#" onclick="' . $onclickNewPageWizard . '" title="' . $this->getLanguageService()->sL('LLL:EXT:cms/layout/locallang.xlf:newPage', TRUE) . '">' . IconUtility::getSpriteIcon('actions-page-new') . '</a>';
$buttons['new_page'] = '<a href="#" onclick="' . $onclickNewPageWizard . '" title="' . $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newPage', TRUE) . '">' . IconUtility::getSpriteIcon('actions-page-new') . '</a>';
// Refresh
$buttons['refresh'] = '<a href="' . htmlspecialchars(GeneralUtility::getIndpEnv('REQUEST_URI')) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.refresh', TRUE) . '">' . IconUtility::getSpriteIcon('actions-system-refresh') . '</a>';
// CSH
......
......@@ -46,14 +46,14 @@ use TYPO3\CMS\Lang\LanguageService;
* comment above.
*
* EXAMPLE: One level.
* This can be seen in the extension 'cms' where the info module have a
* This can be seen in the extension 'frontend' where the info module have a
* function added. In 'ext_tables.php' this is done by this function call:
*
* \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
* 'web_info',
* \TYPO3\CMS\Frontend\Controller\PageInformationController::class,
* NULL,
* 'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_page'
* 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:mod_tx_cms_webinfo_page'
* );
*
* EXAMPLE: Two levels.
......
......@@ -170,9 +170,9 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
'dropZoneElementRestored' => $GLOBALS['LANG']->sL($file . 'tree.dropZoneElementRestored', TRUE),
'searchTermInfo' => $GLOBALS['LANG']->sL($file . 'tree.searchTermInfo', TRUE),
'temporaryMountPointIndicatorInfo' => $GLOBALS['LANG']->sl($file . 'labels.temporaryDBmount', TRUE),
'deleteDialogTitle' => $GLOBALS['LANG']->sL('LLL:EXT:cms/layout/locallang.xlf:deleteItem', TRUE),
'deleteDialogMessage' => $GLOBALS['LANG']->sL('LLL:EXT:cms/layout/locallang.xlf:deleteWarning', TRUE),
'recursiveDeleteDialogMessage' => $GLOBALS['LANG']->sL('LLL:EXT:cms/layout/locallang.xlf:recursiveDeleteWarning', TRUE)
'deleteDialogTitle' => $GLOBALS['LANG']->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:deleteItem', TRUE),
'deleteDialogMessage' => $GLOBALS['LANG']->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:deleteWarning', TRUE),
'recursiveDeleteDialogMessage' => $GLOBALS['LANG']->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:recursiveDeleteWarning', TRUE)
),
'Configuration' => array(
'hideFilter' => $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.hideFilter'),
......
......@@ -395,7 +395,7 @@ class PagePositionMap {
$count = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange(count($colPosArray), 1);
$backendLayout = GeneralUtility::callUserFunction(\TYPO3\CMS\Backend\View\BackendLayoutView::class . '->getSelectedBackendLayout', $pid, $this);
if (isset($backendLayout['__config']['backend_layout.'])) {
$GLOBALS['LANG']->includeLLFile('EXT:cms/layout/locallang.xlf');
$GLOBALS['LANG']->includeLLFile('EXT:backend/Resources/Private/Language/locallang_layout.xlf');
$table = '<div class="table-fit"><table class="table table-condensed table-bordered table-vertical-top">';
$colCount = (int)$backendLayout['__config']['backend_layout.']['colCount'];
$rowCount = (int)$backendLayout['__config']['backend_layout.']['rowCount'];
......
......@@ -124,7 +124,7 @@ class PageTreeView extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView {
} else {
$title = htmlspecialchars(GeneralUtility::fixed_lgd_cs($row['title'], $titleLen));
if (trim($row['nav_title']) !== '') {
$title = '<span title="' . $GLOBALS['LANG']->sL('LLL:EXT:cms/locallang_tca.xlf:pages.nav_title', TRUE) . ' ' . htmlspecialchars(trim($row['nav_title'])) . '">' . $title . '</span>';
$title = '<span title="' . $GLOBALS['LANG']->sL('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_title', TRUE) . ' ' . htmlspecialchars(trim($row['nav_title'])) . '">' . $title . '</span>';
}
$title = trim($row['title']) === '' ? '<em>[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.no_title', TRUE) . ']</em>' : $title;
}
......
......@@ -4345,7 +4345,7 @@ class BackendUtility {
}
/**
* Creates ADMCMD parameters for the "viewpage" extension / "cms" frontend
* Creates ADMCMD parameters for the "viewpage" extension / frontend
*
* @param array $pageInfo Page record
* @return string Query-parameters
......
......@@ -80,7 +80,7 @@ class DefaultDataProvider implements DataProviderInterface {
protected function createDefaultBackendLayout() {
return BackendLayout::create(
'default',
'LLL:EXT:cms/locallang_tca.xlf:pages.backend_layout.default',
'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.backend_layout.default',
\TYPO3\CMS\Backend\View\BackendLayoutView::getDefaultColumnLayout()
);
}
......
......@@ -350,19 +350,19 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
1 {
columns {
1 {
name = LLL:EXT:cms/locallang_ttc.xlf:colPos.I.0
name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.0
colPos = 1
}
2 {
name = LLL:EXT:cms/locallang_ttc.xlf:colPos.I.1
name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.1
colPos = 0
}
3 {
name = LLL:EXT:cms/locallang_ttc.xlf:colPos.I.2
name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.2
colPos = 2
}
4 {
name = LLL:EXT:cms/locallang_ttc.xlf:colPos.I.3
name = LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:colPos.I.3
colPos = 3
}
}
......
......@@ -124,7 +124,7 @@ if (TYPO3_MODE === 'BE') {
'tabs_images' => array(
'tab' => '../../Resources/Public/Icons/module-page.png',
),
'll_ref' => 'LLL:EXT:cms/layout/locallang_mod.xlf',
'll_ref' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf',
),
)
);
......
{
"name": "typo3/cms-cms",
"type": "typo3-cms-framework",
"description": "TYPO3 Core",
"homepage": "http://typo3.org",
"license": ["GPL-2.0+"],
"version": "7.4.0",
"require": {
"typo3/cms-core": "*"
},
"replace": {
"cms": "*"
},
"extra": {
"typo3/cms": {
"Package": {
"protected": true,
"partOfFactoryDefault": true,
"partOfMinimalUsableSystem": true
}
}
}
}
<?php
$EM_CONF[$_EXTKEY] = array(
'title' => 'TYPO3 CMS Frontend (TypoScript)',
'description' => 'The core TypoScript Content Management engine in TYPO3.
This should probably not be disabled. But the point is that Typo3 is able to work as a framework for... anything without this (and the whole tslib/ frontend which is tied to this extension). A LOT of the other extensions - in particular all plugins - are dependant on this extension being loaded.',
'category' => 'be',
'state' => 'stable',
'uploadfolder' => 0,
'createDirs' => '',
'clearCacheOnLoad' => 1,
'author' => 'Kasper Skaarhoj',
'author_email' => 'kasperYYYY@typo3.com',
'author_company' => 'CURBY SOFT Multimedie',
'version' => '7.4.0',
'constraints' => array(
'depends' => array(
'typo3' => '7.4.0-7.4.99',
),
'conflicts' => array(),
'suggests' => array(),
),
);
......@@ -5,7 +5,7 @@ defined('TYPO3_MODE') or die();
$extraContentColumns = array(
'altText' => array(
'exclude' => TRUE,
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_altText',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_altText',
'config' => array(
'type' => 'text',
'cols' => '30',
......@@ -23,7 +23,7 @@ $extraContentColumns = array(
),
'imagecaption_position' => array(
'exclude' => TRUE,
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:imagecaption_position',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position',
'config' => array(
'type' => 'select',
'items' => array(
......@@ -32,15 +32,15 @@ $extraContentColumns = array(
''
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:imagecaption_position.I.1',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position.I.1',
'center'
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:imagecaption_position.I.2',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position.I.2',
'right'
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:imagecaption_position.I.3',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:imagecaption_position.I.3',
'left'
)
),
......@@ -49,7 +49,7 @@ $extraContentColumns = array(
),
'image_link' => array(
'exclude' => TRUE,
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_link',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_link',
'config' => array(
'type' => 'text',
'cols' => '30',
......@@ -57,7 +57,7 @@ $extraContentColumns = array(
'wizards' => array(
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:cms/locallang_ttc.xlf:image_link_formlabel',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_link_formlabel',
'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif',
'module' => array(
'name' => 'wizard_element_browser',
......@@ -73,44 +73,44 @@ $extraContentColumns = array(
),
'image_frames' => array(
'exclude' => TRUE,
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_frames',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames',
'config' => array(
'type' => 'select',
'items' => array(
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.0',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.0',
0
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.1',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.1',
1
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.2',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.2',
2
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.3',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.3',
3
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.4',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.4',
4
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.5',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.5',
5
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.6',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.6',
6
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.7',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.7',
7
),
array(
'LLL:EXT:cms/locallang_ttc.xlf:image_frames.I.8',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames.I.8',
8
)
)
......@@ -118,7 +118,7 @@ $extraContentColumns = array(
),
'longdescURL' => array(
'exclude' => TRUE,
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_longdescURL',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_longdescURL',
'config' => array(
'type' => 'text',
'cols' => '30',
......@@ -126,7 +126,7 @@ $extraContentColumns = array(
'wizards' => array(
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:cms/locallang_ttc.xlf:image_link_formlabel',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_link_formlabel',
'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif',
'module' => array(
'name' => 'wizard_element_browser',
......@@ -146,7 +146,7 @@ $extraContentColumns = array(
),
'titleText' => array(
'exclude' => TRUE,
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_titleText',
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_titleText',
'config' => array(
'type' => 'text',
'cols' => '30',
......@@ -251,10 +251,10 @@ $GLOBALS['TCA']['tt_content']['palettes'] = array_replace(
),
'image_accessibility' => array(
'showitem' => '
altText;LLL:EXT:cms/locallang_ttc.xlf:altText_formlabel,
titleText;LLL:EXT:cms/locallang_ttc.xlf:titleText_formlabel,
altText;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:altText_formlabel,
titleText;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:titleText_formlabel,
--linebreak--,
longdescURL;LLL:EXT:cms/locallang_ttc.xlf:longdescURL_formlabel
longdescURL;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:longdescURL_formlabel
',
)
)
......@@ -267,24 +267,24 @@ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('css_styled_co
array(
'visibility' => array(
'showitem' => '
hidden;LLL:EXT:cms/locallang_ttc.xlf:hidden_formlabel,
sectionIndex;LLL:EXT:cms/locallang_ttc.xlf:sectionIndex_formlabel,
linkToTop;LLL:EXT:cms/locallang_ttc.xlf:linkToTop_formlabel
hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:hidden_formlabel,
sectionIndex;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:sectionIndex_formlabel,
linkToTop;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:linkToTop_formlabel
',
),
'frames' => array(
'showitem' => '
layout;LLL:EXT:cms/locallang_ttc.xlf:layout_formlabel,
spaceBefore;LLL:EXT:cms/locallang_ttc.xlf:spaceBefore_formlabel,
spaceAfter;LLL:EXT:cms/locallang_ttc.xlf:spaceAfter_formlabel,
section_frame;LLL:EXT:cms/locallang_ttc.xlf:section_frame_formlabel
layout;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:layout_formlabel,
spaceBefore;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:spaceBefore_formlabel,
spaceAfter;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:spaceAfter_formlabel,
section_frame;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame_formlabel
',
)
)
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'image_settings', 'image_frames;LLL:EXT:cms/locallang_ttc.xlf:image_frames_formlabel');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'image_settings', 'image_frames;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_frames_formlabel');
/**
* CType "search"
......@@ -292,26 +292,26 @@ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('css_styled_co
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['search'] = 'mimetypes-x-content-form-search';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['search'] = 'tt_content_search.gif';
$GLOBALS['TCA']['tt_content']['types']['search'] = array(
'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.behaviour,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.searchform;searchform,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended'
'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.searchform;searchform,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended'
);
$GLOBALS['TCA']['tt_content']['palettes']['searchform'] = array(
'showitem' => 'pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.searchform',
'showitem' => 'pages;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:pages.ALT.searchform',
);
// check if there is already a forms tab and add the item after that, otherwise
// add the tab item as well
$additionalCTypeItem = array(
'LLL:EXT:cms/locallang_ttc.xlf:CType.I.9',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.9',
'search',
'i/tt_content_search.gif'
);
......@@ -320,7 +320,7 @@ $existingCTypeItems = $GLOBALS['TCA']['tt_content']['columns']['CType']['config'
$groupFound = FALSE;
$groupPosition = FALSE;
foreach ($existingCTypeItems as $position => $item) {
if ($item[0] === 'LLL:EXT:cms/locallang_ttc.xlf:CType.div.forms') {
if ($item[0] === 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms') {
$groupFound = TRUE;
$groupPosition = $position;
break;
......@@ -333,7 +333,7 @@ if ($groupFound && $groupPosition) {
} else {
// nothing found, add two items (group + new CType) at the bottom of the list
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType',
array('LLL:EXT:cms/locallang_ttc.xlf:CType.div.forms', '--div--')
array('LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.div.forms', '--div--')
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', $additionalCTypeItem);
}
......@@ -349,7 +349,7 @@ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
'notNewRecords' => 1,
'enableByTypeConfig' => 1,
'type' => 'script',
'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.forms',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.forms',
'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_forms.gif',
'module' => array(
'name' => 'wizard_forms',
......@@ -363,7 +363,7 @@ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem('tt_content', 'CType', array(
'LLL:EXT:cms/locallang_ttc.xlf:CType.I.8',
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.8',
'mailform',
'i/tt_content_form.gif'
),
......@@ -376,17 +376,17 @@ if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) {
// set up the fields
$GLOBALS['TCA']['tt_content']['types']['mailform'] = array(
'showitem' => '
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.mailform_formlabel,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.behaviour,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.mailform;mailform,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended'
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.ALT.mailform_formlabel,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.behaviour,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.mailform;mailform,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended'
);
$baseDefaultExtrasOfBodytext = '';
if (!empty($GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'])) {
......@@ -401,5 +401,5 @@ if (!is_array($GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrid
$GLOBALS['TCA']['tt_content']['types']['mailform']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap:wizards[forms]';
$GLOBALS['TCA']['tt_content']['palettes']['mailform'] = array(
'showitem' => 'pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.mailform, --linebreak--, subheader;LLL:EXT:cms/locallang_ttc.xlf:subheader.ALT.mailform_formlabel',
'showitem' => 'pages;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:pages.ALT.mailform, --linebreak--, subheader;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:subheader.ALT.mailform_formlabel',
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment