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

Stefano Kowalke blueduck at gmx.net
Wed Apr 30 19:02:31 CEST 2008


Steffen Kamper wrote:

> 
> "Stefano Kowalke" <blueduck at gmx.net> schrieb im Newsbeitrag
> news:mailman.1.1209563064.30464.typo3-team-core at lists.netfielders.de...
>> 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
>>
> 
> i don't see any hint on deprecated, the sL method has advantage when you
> only need one or two labels out of this file, so why reading complete
> array in memory?
> 
> vg Steffen

Yes, you are right.

Description of sL() in CoreAPI make me think this method are deprecated,
because this was the historical way -> splitLabels with "|". 

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