Index: typo3/index.php =================================================================== --- typo3/index.php (Revision 105) +++ typo3/index.php (Revision 110) @@ -97,7 +97,6 @@ // Internal, static: var $redirectToURL; // Set to the redirect URL of the form (may be redirect_url or "alt_main.php") - var $L_vars; // Set to the labels used for the login screen. // Internal, dynamic: var $content; // Content accumulation @@ -137,9 +136,6 @@ $this->loginSecurityLevel = $TYPO3_CONF_VARS['BE']['loginSecurityLevel']; } - // Getting login labels: - $this->L_vars = explode('|',$TYPO3_CONF_VARS['BE']['loginLabels']); - // Setting the redirect URL to "alt_main.php" if no alternative input is given: $this->redirectToURL = $this->redirect_url ? $this->redirect_url : 'alt_main.php'; @@ -188,9 +184,6 @@ // Initialize interface selectors: $this->makeInterfaceSelectorBox(); - // Replace an optional marker in the "Administration Login" label - $this->L_vars[6] = str_replace("###SITENAME###",$TYPO3_CONF_VARS['SYS']['sitename'],$this->L_vars[6]); - // Creating form based on whether there is a login or not: if (!$BE_USER->user['uid']) { [... -- snip here because both changes (language-menu and labels) were mixed in one part] // There must be no white-spaces outside of the tags (needed for buggy IE) $content.= ' - + '.($this->commandLI ? ' - + ' : '').' - + - + '.($this->interfaceSelector && !$this->loginRefresh ? ' - + ' : '' ).' - + - +

'.htmlspecialchars($this->L_vars[6]).'

'.htmlspecialchars(sprintf($LANG->sL('LLL:EXT:lang/locallang_core.php:loginscreen.headline'), $TYPO3_CONF_VARS['SYS']['sitename'])).'

'.htmlspecialchars($this->L_vars[9]).'

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:loginscreen.noteLoginUnsuccessful')).'

'.htmlspecialchars($this->L_vars[0]).':

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:labels.username')).':

'.htmlspecialchars($this->L_vars[1]).':

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:labels.password')).':

'.htmlspecialchars($this->L_vars[2]).':

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:labels.interface')).':

'.$this->interfaceSelector.'

'.htmlspecialchars($this->L_vars[7]).'

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:loginscreen.noteCookies')).'

'; @@ -333,7 +337,7 @@ * @return string HTML output */ function makeLogoutForm() { - global $BE_USER; + global $BE_USER, $TYPO3_CONF_VARS, $LANG; $content.=' @@ -344,23 +348,23 @@ - + - + '.($this->interfaceSelector_jump ? ' - + ' : '' ).' - + - +

'.htmlspecialchars($this->L_vars[6]).'

'.htmlspecialchars(sprintf($LANG->sL('LLL:EXT:lang/locallang_core.php:loginscreen.headline'), $TYPO3_CONF_VARS['SYS']['sitename'])).'

'.htmlspecialchars($this->L_vars[0]).':

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.username')).':

'.htmlspecialchars($BE_USER->user['username']).'

'.htmlspecialchars($this->L_vars[2]).':

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:labels.interface')).':

'.$this->interfaceSelector_jump.'

'.htmlspecialchars($this->L_vars[7]).'

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.php:loginscreen.noteCookies')).'

'; @@ -491,7 +495,7 @@ * @return void */ function makeInterfaceSelectorBox() { - global $TYPO3_CONF_VARS; + global $TYPO3_CONF_VARS,$LANG; // Reset variables: $this->interfaceSelector = ''; @@ -504,10 +508,8 @@ if (count($parts)>1) { // Only if more than one interface is defined will we show the selector: // Initialize: - $tempLabels=explode(',',$this->L_vars[5]); - $labels=array(); - $labels['backend']=$tempLabels[0]; - $labels['frontend']=$tempLabels[1]; + $labels['backend']=$LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.interfaces.backend'); + $labels['frontend']=$LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.interfaces.frontend'); $jumpScript=array(); $jumpScript['backend']='alt_main.php'; @@ -545,6 +547,7 @@ * @return string Text/Image (HTML) for copyright notice. */ function makeCopyrightNotice() { + global $LANG; // Get values from TYPO3_CONF_VARS: $loginCopyrightWarrantyProvider = strip_tags(trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['loginCopyrightWarrantyProvider'])); @@ -552,21 +555,20 @@ // Make warranty note: if (strlen($loginCopyrightWarrantyProvider)>=2 && strlen($loginCopyrightWarrantyURL)>=10) { - $warrantyNote='Warranty is supplied by '.htmlspecialchars($loginCopyrightWarrantyProvider).'; click for details.'; + $warrantyNote=sprintf($LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.warrantyProvidedBy'), htmlspecialchars($loginCopyrightWarrantyProvider)).'; '.$LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.clickfordetails').'.'; } else { - $warrantyNote='TYPO3 comes with ABSOLUTELY NO WARRANTY; click for details.'; + $warrantyNote=$LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.warranty').'; '.$LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.clickfordetails').'.'; } - // Compile full copyright notice: + // Compile full copyright notice: $copyrightNotice = ''. 'TYPO3 logo'. - 'TYPO3 CMS'.($GLOBALS['TYPO3_CONF_VARS']['SYS']['loginCopyrightShowVersion']?' ver. '.htmlspecialchars($GLOBALS['TYPO_VERSION']):''). - '. '. - 'Copyright © '.TYPO3_copyright_year.' Kasper Skårhøj. Extensions are copyright of their respective owners. '. - 'Go to http://typo3.com/ for details. '. + 'TYPO3 CMS'.($GLOBALS['TYPO3_CONF_VARS']['SYS']['loginCopyrightShowVersion']?' ver. '.htmlspecialchars($GLOBALS['TYPO_VERSION']):'').'. Copyright © '.TYPO3_copyright_year.' Kasper Skårhøj. '. + sprintf($LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.copyrightExtensions'), 'http://typo3.com/').' '. $warrantyNote.' '. - 'This is free software, and you are welcome to redistribute it under certain conditions; click for details. '. - 'Obstructing the appearance of this notice is prohibited by law.'; + $LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.freeSoftware').'; '. + ''.$LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.clickfordetails').'. '. + $LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.obstructingNotice').'.'; // Return notice: return $copyrightNotice; @@ -626,6 +628,7 @@ * @credits Idea by Jan-Hendrik Heuing */ function makeLoginNews() { + global $LANG; // Reset output variable: $newsContent= ''; @@ -655,7 +658,7 @@ Login screen news: -->
-

'.htmlspecialchars($this->L_vars[8]).'

+

'.htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_core.xml:loginscreen.newsHeadline')).':

'.$newsContent.'
Index: typo3/sysext/lang/locallang_core.xml =================================================================== --- typo3/sysext/lang/locallang_core.xml (Revision 105) +++ typo3/sysext/lang/locallang_core.xml (Revision 110) @@ -87,6 +87,10 @@ + + + + @@ -150,7 +154,8 @@ - + + @@ -184,6 +189,21 @@ + + + + + + + + + + + - + + + + + \ Kein Zeilenvorschub am Ende der Datei