Commit a887fdcb authored by Benni Mack's avatar Benni Mack Committed by Christian Kuhn
Browse files

[TASK] XLF core locallang files are still referenced with .php/.xml

The core still access xliff language files as .php or .xml,
although the files themselves are converted to .xlf since quite
some time. This could cause confusion.

This is a cleanup taken all .xlf files in the EXT:lang/.xlf
directory and run via a sed script (thanks to Stucki)

Resolves: #46940
Releases: 6.1
Change-Id: I427776b176ba2c23678689029eaf388dff90d0fa
Reviewed-on: https://review.typo3.org/19579
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent 60c3ec7a
......@@ -41,7 +41,7 @@
* @author Kasper Skårhøj <kasperYYYY@typo3.com>
*/
require 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
/*
* @deprecated since 6.0, the classname clickMenu and this file is obsolete
* and will be removed with 6.2. The class was renamed and is now located at:
......
......@@ -36,7 +36,7 @@
* @author Kasper Skårhøj <kasperYYYY@typo3.com>
*/
require 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
/*
* @deprecated since 6.0, the classname SC_alt_shortcut and this file is obsolete
* and will be removed with 6.2. The class was renamed and is now located at:
......
......@@ -25,7 +25,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
require_once 'init.php';
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xml');
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
/*
* @deprecated since 6.0, the classname TYPO3backend and this file is obsolete
* and will be removed with 6.2. The class was renamed and is now located at:
......
......@@ -36,7 +36,7 @@
*/
$BACK_PATH = '';
require 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_browse_links.xml');
$LANG->includeLLFile('EXT:lang/locallang_browse_links.xlf');
/*
* @deprecated since 6.0, the classname SC_browse_links and this file is obsolete
* and will be removed with 6.2. The class was renamed and is now located at:
......
......@@ -25,7 +25,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xml');
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
}
/*
* @deprecated since 6.0, the classname ModuleMenu and this file is obsolete
......
......@@ -25,7 +25,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xml');
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
// Needed to get the correct icons when reloading the menu after saving it
$loadModules = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
$loadModules->load($GLOBALS['TBE_MODULES']);
......
......@@ -37,7 +37,7 @@
*/
$BACK_PATH = '';
require 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
/**
* Extension for the tree class that generates the tree of pages in the page-wizard mode
*
......
......@@ -33,7 +33,7 @@
*/
$BACK_PATH = '';
require 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
/*
* @deprecated since 6.0, the classname SC_file_upload and this file is obsolete
* and will be removed with 6.2. The class was renamed and is now located at:
......
<?php
$MLANG['default']['tabs_images']['tab'] = 'file.gif';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_file.php';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_file.xlf';
$MCONF['navFrameScript'] = '../../alt_file_navframe.php';
$MCONF['access'] = 'group,user';
$MCONF['name'] = 'file';
......
<?php
$MLANG['default']['tabs_images']['tab'] = 'help.gif';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_help.php';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_help.xlf';
$MCONF['defaultMod'] = 'welcome';
$MCONF['name'] = 'help';
?>
\ No newline at end of file
<?php
$MLANG['default']['tabs_images']['tab'] = 'tool.gif';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_admintools.xml';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_admintools.xlf';
$MCONF['name'] = 'tools';
$MCONF['access'] = 'admin';
?>
\ No newline at end of file
<?php
$MLANG['default']['tabs_images']['tab'] = 'user.gif';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_usertools.xml';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_usertools.xlf';
$MCONF['defaultMod'] = 'task';
$MCONF['name'] = 'user';
$MCONF['access'] = 'user,group';
......
<?php
$MLANG['default']['tabs_images']['tab'] = 'website.gif';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_web.php';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_web.xlf';
$MCONF['defaultMod'] = 'list';
$MCONF['navFrameScript'] = '../../alt_db_navframe.php';
$MCONF['name'] = 'web';
......
......@@ -36,7 +36,7 @@
$BACK_PATH = '';
require 'init.php';
// Include local language labels:
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
$LANG->includeLLFile('EXT:lang/locallang_misc.xlf');
/**
* Local extension of the page tree class
*
......
......@@ -34,7 +34,7 @@
*/
$BACK_PATH = '';
require $BACK_PATH . 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_show_rechis.xml');
$LANG->includeLLFile('EXT:lang/locallang_show_rechis.xlf');
/*
* @deprecated since 6.0, the classname SC_show_rechis and this file is obsolete
* and will be removed with 6.2. The class was renamed and is now located at:
......
<div class="typo3-mod-help-about-index-php-inner">
<h2>
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:coredevs" />
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:coredevs" />
</h2>
<p>
<f:translate
key="LLL:EXT:lang/locallang_mod_help_about.xml:coredevs_detail"
key="LLL:EXT:lang/locallang_mod_help_about.xlf:coredevs_detail"
htmlEscape="0"
/>
</p>
......
<div class="typo3-mod-help-about-index-php-inner">
<h2>
<f:translate
key="LLL:EXT:lang/locallang_mod_help_about.xml:community_credits"
key="LLL:EXT:lang/locallang_mod_help_about.xlf:community_credits"
htmlEscape="0"
/>
</h2>
<p>
<f:translate
key="LLL:EXT:lang/locallang_mod_help_about.xml:information_detail"
key="LLL:EXT:lang/locallang_mod_help_about.xlf:information_detail"
htmlEscape="0"
/>
</p>
......
<div class="typo3-mod-help-about-index-php-inner">
<h2>
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:donation_header" />
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:donation_header" />
</h2>
<p id="donation-description">
<f:translate
key="LLL:EXT:lang/locallang_mod_help_about.xml:donation_message"
key="LLL:EXT:lang/locallang_mod_help_about.xlf:donation_message"
htmlEscape="0"
/>
</p>
......@@ -12,7 +12,7 @@
<input
type="button"
id="donation-button"
value="{f:translate(key:'LLL:EXT:lang/locallang_mod_help_about.xml:donation_button')}"
value="{f:translate(key:'LLL:EXT:lang/locallang_mod_help_about.xlf:donation_button')}"
onclick="window.open('{TYPO3UrlDonate}');"
/>
</div>
......
<div class="typo3-mod-help-about-index-php-inner">
<h2>
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:extension_authors" />
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:extension_authors" />
</h2>
<p>
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:extension_list_info" />
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:extension_list_info" />
</p>
<br/>
<table border="0" cellspacing="2" cellpadding="1">
<tr>
<th><f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:extension" /></th>
<th><f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:extension_author" /></th>
<th><f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:extension" /></th>
<th><f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:extension_author" /></th>
</tr>
<f:for each="{loadedExtensions}" as="loadedExtension">
......
<div class="typo3-mod-help-about-index-php-inner">
<h2>
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xml:external_libraries" />
<f:translate key="LLL:EXT:lang/locallang_mod_help_about.xlf:external_libraries" />
</h2>
<p>
<f:translate
key="LLL:EXT:lang/locallang_mod_help_about.xml:external_thanks"
key="LLL:EXT:lang/locallang_mod_help_about.xlf:external_thanks"
htmlEscape="0"
/>
</p>
......
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