[TYPO3-core] RFC #8271: Bugfix: OpenDocs Icons: Hardcoded labels in title and alt-attributes

Stefano Kowalke blueduck at gmx.net
Wed Apr 30 15:44:24 CEST 2008


Stefano Kowalke wrote:

> Hey,
> 
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=8271
> 
> Branches:
> 4.2, Trunk
> 
> Problem:
> Title and alt attributes from OpenDocs icon in
> backends upper right corner are hardcoded and not be able to translate.
> 
> Solution:
> Replace the hardcoded label in
> typo3_src-4.2.0/typo3/sysext/opendocs/class.tx_opendocs.php
> with
> $GLOBALS['LANG']->sL('LLL:EXT:opendocs/locallang_opendocs.php:open_docs');
> 
> Saludos
> Stefano
> 

I just read in doc_core_inside [1] that sL() is deprecated. Its better make
use of 

$LANG->includeLLFile('EXT:opendocs/locallang_opendocs.xml');

and 

$LANG->getLL()

[1]
http://typo3.org/documentation/document-library/core-documentation/doc_core_inside/4.1.0/view/3/8/

Stefano

-- 
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D


More information about the TYPO3-team-core mailing list