Commit 36d98cc5 authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* Changed all locallang files from "lang" system extension into the new locallang-XML format instead. Includes changes to a bunch of core scripts which had to include the new files with an API function from the $LANG object.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@345 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 5480dc0f
2004-06-06 Kasper Skårhøj,,, <kasper@typo3.com>
* Changed all locallang files from "lang" system extension into the new locallang-XML format instead. Includes changes to a bunch of core scripts which had to include the new files with an API function from the $LANG object.
2004-06-06 Kasper Skårhøj,,, <kasper@typo3.com>
* Added "groupChangeMask" option in TYPO3_CONF_VARS - makes it possible to set which group newly created files and folders will get. (Thanks to Stucki)
......
......@@ -413,11 +413,11 @@ class t3lib_extMgm {
/**
* Adds a reference to a locallang file with TCA_DESCR labels
* FOR USE IN ext_tables.php FILES
* eg. t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.php'); for the pages table or t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.php'); for the Web > Page module.
* eg. t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml'); for the pages table or t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout','EXT:cms/locallang_csh_weblayout.php'); for the Web > Page module.
* Usage: 31
*
* @param string Description key. Typically a database table (like "pages") but for applications can be other strings, but prefixed with "_MOD_")
* @param string File reference to locallang file, eg. "EXT:lang/locallang_csh_pages.php"
* @param string File reference to locallang file, eg. "EXT:lang/locallang_csh_pages.php" (or ".xml")
* @return void
*/
function addLLrefForTCAdescr($tca_descr_key,$file_ref) {
......
......@@ -367,12 +367,12 @@ $TBE_STYLES = array(
* Setting up $TCA_DESCR - Context Sensitive Help (CSH)
* For information about using the CSH API in TYPO3 you should consult the documentation found in "Inside TYPO3"
*/
t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.php');
t3lib_extMgm::addLLrefForTCAdescr('be_users','EXT:lang/locallang_csh_be_users.php');
t3lib_extMgm::addLLrefForTCAdescr('be_groups','EXT:lang/locallang_csh_be_groups.php');
t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts','EXT:lang/locallang_csh_sysfilem.php');
t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em','EXT:lang/locallang_csh_em.php'); // Extension manager
t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe','EXT:lang/locallang_csh_corebe.php'); // General Core
t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml');
t3lib_extMgm::addLLrefForTCAdescr('be_users','EXT:lang/locallang_csh_be_users.xml');
t3lib_extMgm::addLLrefForTCAdescr('be_groups','EXT:lang/locallang_csh_be_groups.xml');
t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts','EXT:lang/locallang_csh_sysfilem.xml');
t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em','EXT:lang/locallang_csh_em.xml'); // Extension manager
t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe','EXT:lang/locallang_csh_corebe.xml'); // General Core
/**
......
......@@ -109,7 +109,7 @@
require ('init.php');
require ('template.php');
require_once (PATH_t3lib.'class.t3lib_clipboard.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
......
......@@ -73,7 +73,7 @@
require('init.php');
require('template.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
require_once (PATH_t3lib.'class.t3lib_tceforms.php');
require_once (PATH_t3lib.'class.t3lib_clipboard.php');
......
......@@ -51,7 +51,7 @@
require('init.php');
require('template.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
require_once(PATH_t3lib.'class.t3lib_loadmodules.php');
......
......@@ -56,7 +56,7 @@ require ('template.php');
require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
require_once ('class.alt_menu_functions.inc');
include ('sysext/lang/locallang_alt_intro.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_intro.xml');
......
......@@ -55,7 +55,7 @@ require ('template.php');
require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
require_once ('class.alt_menu_functions.inc');
include ('sysext/lang/locallang_misc.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
......
......@@ -63,7 +63,7 @@ require('template.php');
require_once(PATH_t3lib.'class.t3lib_tceforms.php');
require_once(PATH_t3lib.'class.t3lib_transferdata.php');
require_once(PATH_t3lib.'class.t3lib_loaddbgroup.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
......
......@@ -61,11 +61,11 @@
*/
require ('init.php');
require ('template.php');
include ('sysext/lang/locallang_misc.php');
require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
require('init.php');
require('template.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
require_once(PATH_t3lib.'class.t3lib_loadmodules.php');
require_once(PATH_t3lib.'class.t3lib_basicfilefunc.php');
......
......@@ -119,7 +119,7 @@ require_once (PATH_t3lib.'class.t3lib_browsetree.php');
require_once (PATH_t3lib.'class.t3lib_foldertree.php');
require_once (PATH_t3lib.'class.t3lib_stdgraphic.php');
require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
include ('sysext/lang/locallang_browse_links.php');
$LANG->includeLLFile('EXT:lang/locallang_browse_links.xml');
// Include classes
......@@ -2134,7 +2134,7 @@ class SC_browse_links {
$code.='
<div id="c-override">
<input type="checkbox" name="overwriteExistingFiles" value="1" /> '.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.php:overwriteExistingFiles',1).'
<input type="checkbox" name="overwriteExistingFiles" value="1" /> '.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xml:overwriteExistingFiles',1).'
</div>
';
......
......@@ -61,7 +61,7 @@ unset($MCONF);
require ('mod/web/list/conf.php');
require ('init.php');
require ('template.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_web_list.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_web_list.xml');
require_once (PATH_t3lib.'class.t3lib_page.php');
require_once (PATH_t3lib.'class.t3lib_pagetree.php');
require_once (PATH_t3lib.'class.t3lib_recordlist.php');
......
......@@ -65,16 +65,16 @@
$BACK_PATH='';
require ('init.php');
require ('template.php');
include ('sysext/lang/locallang_misc.php');
require('init.php');
require('template.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
// ***************************
// Including classes
// ***************************
require_once (PATH_t3lib.'class.t3lib_page.php');
require_once (PATH_t3lib.'class.t3lib_positionmap.php');
require_once (PATH_t3lib.'class.t3lib_pagetree.php');
require_once(PATH_t3lib.'class.t3lib_page.php');
require_once(PATH_t3lib.'class.t3lib_positionmap.php');
require_once(PATH_t3lib.'class.t3lib_pagetree.php');
......
......@@ -53,7 +53,7 @@ unset($MCONF);
require ('mod/file/list/conf.php');
require ('init.php');
require ('template.php');
require ('sysext/lang/locallang_mod_file_list.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_file_list.xml');
require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
require_once (PATH_t3lib.'class.t3lib_extfilefunc.php');
require_once (PATH_t3lib.'class.t3lib_recordlist.php');
......
......@@ -52,7 +52,7 @@
$BACK_PATH = '';
require('init.php');
require('template.php');
include('sysext/lang/locallang_misc.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
require_once(PATH_t3lib.'class.t3lib_basicfilefunc.php');
......
......@@ -53,7 +53,7 @@ unset($MCONF);
require ('conf.php');
require ($BACK_PATH.'init.php');
require ($BACK_PATH.'template.php');
include (PATH_typo3.'sysext/lang/locallang_mod_help_about.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_help_about.xml');
$BE_USER->modAccess($MCONF,1);
......
......@@ -50,11 +50,11 @@
unset($MCONF);
require ('conf.php');
require ($BACK_PATH.'init.php');
require ($BACK_PATH.'template.php');
include (PATH_typo3.'sysext/lang/locallang_mod_web_func.php');
require_once (PATH_t3lib.'class.t3lib_scbase.php');
require('conf.php');
require($BACK_PATH.'init.php');
require($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_web_func.xml');
require_once(PATH_t3lib.'class.t3lib_scbase.php');
$BE_USER->modAccess($MCONF,1);
......
......@@ -49,10 +49,10 @@
*/
unset($MCONF);
require ('conf.php');
require ($BACK_PATH.'init.php');
require ($BACK_PATH.'template.php');
include (PATH_typo3.'sysext/lang/locallang_mod_web_info.php');
require('conf.php');
require($BACK_PATH.'init.php');
require($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_web_info.xml');
require_once (PATH_t3lib.'class.t3lib_scbase.php');
$BE_USER->modAccess($MCONF,1);
......
......@@ -60,10 +60,10 @@
*/
unset($MCONF);
require ('conf.php');
require ($BACK_PATH.'init.php');
require ($BACK_PATH.'template.php');
include (PATH_typo3.'sysext/lang/locallang_mod_web_perm.php');
require('conf.php');
require($BACK_PATH.'init.php');
require($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:lang/locallang_mod_web_perm.xml');
require_once (PATH_t3lib.'class.t3lib_pagetree.php');
require_once (PATH_t3lib.'class.t3lib_page.php');
......
......@@ -66,16 +66,16 @@
$BACK_PATH='';
require ('init.php');
require ('template.php');
require('init.php');
require('template.php');
// Include local language labels:
include ('sysext/lang/locallang_misc.php');
$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
// Include libraries:
require_once (PATH_t3lib.'class.t3lib_page.php');
require_once (PATH_t3lib.'class.t3lib_positionmap.php');
require_once (PATH_t3lib.'class.t3lib_pagetree.php');
require_once(PATH_t3lib.'class.t3lib_page.php');
require_once(PATH_t3lib.'class.t3lib_positionmap.php');
require_once(PATH_t3lib.'class.t3lib_pagetree.php');
......
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