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

Oliver Hader oliver at typo3.org
Tue Apr 29 11:04:17 CEST 2008


Hi Stefano,

Stefano Kowalke schrieb:
> 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');

Please use this:
$title = 
$GLOBALS['LANG']->sL('LLL:EXT:opendocs/locallang_opendocs.xml:toolbaritem', 
true);
-> $title instead of $altTitle
-> hsc directly with sL() call
-> xml extension instead php
-> key 'toolbaritem' which has 'Open and Recently Used Documents'

+1 on reading if the above things were taken into account

olly
-- 
Oliver Hader
TYPO3 Core Team


More information about the TYPO3-team-core mailing list