Commit 5ff1c272 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[TASK] Move LanguageService to EXT:core

The main $GLOBALS['LANG'] class has been moved to the core extension into the "Localization"
namespace, where all other related XLF/XML factory, store and parser classes reside.

This is done in order to streamline the localization of core-relevant files, since this class will
also be used in frontend context.

EXT:lang now contains the backend module, as well as most XLF files.

Resolves: #81196
Releases: master
Change-Id: I0e5d8260f5c5a28254658c68766990b4f4662a2a
Reviewed-on: https://review.typo3.org/52774

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Tested-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent a04cfb80
......@@ -74,6 +74,7 @@
"typo3/class-alias-loader": {
"always-add-alias-loader": true,
"class-alias-maps": [
"typo3/sysext/core/Migrations/Code/ClassAliasMap.php",
"typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php",
"typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php",
"typo3/sysext/version/Migrations/Code/ClassAliasMap.php"
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "6bd821b873ba18b3123a8ce5f3c9fe87",
"content-hash": "0687a7dfa8c67cbaccd2e10d83e1a634",
"packages": [
{
"name": "cogpowered/finediff",
......
......@@ -17,10 +17,10 @@ namespace TYPO3\CMS\About\Controller;
use TYPO3\CMS\Backend\Module\ModuleLoader;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\View\BackendTemplateView;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
use TYPO3\CMS\Lang\LanguageService;
/**
* 'About modules' script - the default start-up module.
......
......@@ -936,7 +936,7 @@ class ShortcutToolbarItem implements ToolbarItemInterface
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -1041,7 +1041,7 @@ class Clipboard
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -18,9 +18,9 @@ use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\Restriction\BackendWorkspaceRestriction;
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Lang\LanguageService;
/**
* Contains translation tools
......
......@@ -19,8 +19,8 @@ use TYPO3\CMS\Backend\Clipboard\Clipboard;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Lang\LanguageService;
/**
* Abstract provider is a base class for context menu item providers
......
......@@ -878,7 +878,7 @@ class BackendController
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -159,7 +159,7 @@ class ElementHistoryController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -701,7 +701,7 @@ class ElementInformationController
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -272,7 +272,7 @@ class MoveElementController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -547,7 +547,7 @@ class NewContentElementController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -19,8 +19,8 @@ use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Clipboard\Clipboard;
use TYPO3\CMS\Backend\ContextMenu\ContextMenu;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Lang\LanguageService;
/**
* Script Class for the Context Sensitive Menu in TYPO3
......
......@@ -1976,7 +1976,7 @@ class EditDocumentController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -263,7 +263,7 @@ class CreateFolderController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -287,7 +287,7 @@ class EditFileController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -214,7 +214,7 @@ class FileUploadController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -204,7 +204,7 @@ class RenameFileController extends AbstractModule
/**
* Returns LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
......@@ -19,12 +19,12 @@ use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Module\AbstractModule;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException;
use TYPO3\CMS\Core\Resource\Folder;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\View\StandaloneView;
use TYPO3\CMS\Lang\LanguageService;
/**
* Script Class for the rename-file form
......
......@@ -256,7 +256,7 @@ class FileSystemNavigationFrameController
/**
* Returns an instance of LanguageService
*
* @return \TYPO3\CMS\Lang\LanguageService
* @return \TYPO3\CMS\Core\Localization\LanguageService
*/
protected function getLanguageService()
{
......
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