Task #63104
closed
Move language files from old to new language extension
Added by Kai Vogel about 10 years ago.
Updated almost 10 years ago.
Category:
Language Manager (backend)
Description
The old "lang" extension will become obsolete if the new language module will be merged to master. This makes the move of all language files from the old to the new extension necessary. In addition all hardcoded paths to this language files will be replaced in core.
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34413
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34413
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34413
I've added a fallback for old language file references in the language factory which is used in nearly all language processes:
\TYPO3\CMS\Core\Localization\LocalizationFactory::getParsedData();
// Check if the file reference has changed
if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangFileOverride'][$fileReference])) {
$fileReference = $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangFileOverride'][$fileReference];
}
Additionally I added a mapping for all old language file references to the new language extension:
EXT:language/ext_tables.php
// Redirect old language file requests to the new ones
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangFileOverride']['EXT:lang/locallang_alt_doc.xlf'] =
'EXT:language/Resources/Private/Language/locallang_alt_doc.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangFileOverride']['EXT:lang/locallang_alt_intro.xlf'] =
'EXT:language/Resources/Private/Language/locallang_alt_intro.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangFileOverride']['EXT:lang/locallang_browse_links.xlf'] =
'EXT:language/Resources/Private/Language/locallang_browse_links.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangFileOverride']['EXT:lang/locallang_common.xlf'] =
'EXT:language/Resources/Private/Language/locallang_common.xlf';
...
- Target version changed from 7.0 to 7.1 (Cleanup)
- Status changed from Under Review to Rejected
This issue was rejected. ext:lang will stay for the time being.
Also available in: Atom
PDF