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

Steffen Kamper steffen at sk-typo3.de
Sun Apr 27 19:04:38 CEST 2008


"Stefano Kowalke" <blueduck at gmx.net> schrieb im Newsbeitrag 
news:mailman.1.1209308524.16662.typo3-team-core at lists.netfielders.de...
> 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
>
> -- 
> GPG-ID: 0x2B08936D
> Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D
>

+1
i would use htmlspecialchar direct on $alttitle and not in the long line
$altTitle     = 
htmlspecialchars($GLOBALS['LANG']->sL('LLL:EXT:opendocs/locallang_opendocs.php:open_docs'));

vg Steffen 




More information about the TYPO3-team-core mailing list