Project

General

Profile

Actions

Task #63104

closed

Move language files from old to new language extension

Added by Kai Vogel over 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
Language Manager (backend)
Target version:
Start date:
2014-11-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #62983: Cleanup and update language moduleClosedKai Vogel2014-11-15

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • 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

Actions #2

Updated by Gerrit Code Review over 9 years ago

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

Actions #3

Updated by Gerrit Code Review over 9 years ago

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

Actions #4

Updated by Kai Vogel over 9 years ago

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';
...

Actions #5

Updated by Mathias Schreiber over 9 years ago

  • Target version changed from 7.0 to 7.1 (Cleanup)
Actions #6

Updated by Christian Kuhn about 9 years ago

  • Status changed from Under Review to Rejected

This issue was rejected. ext:lang will stay for the time being.

Actions

Also available in: Atom PDF