[TYPO3-core] RFC #8636: Translation for module lowlevel

Stefano Kowalke blueduck at gmx.net
Sat Jun 7 18:48:10 CEST 2008


Christopher wrote:

> Hi,
> 
> this is a SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=8636
> 
> Branches:
> TYPO3_4-2 and trunk.
> 
> Problem:
> All labels in the lowlevel-module are hardcoded.
> The attached patch makes them translateable.
> 
> Solution:
> I made them translateable with llxml-translate. :-)
> 
> Note:
> New locallang-file added.
> 
> Greetings
> 
> Christopher


Hi Christopher,

* Use $GLOBALS['LANG']->includeLLFile('EXT:lowlevel/config/locallang.xml');
instead of $LANG->includeLLFile('EXT:lowlevel/config/locallang.xml');

Check if htmlspecialchars is needed.

* If you call the lang file with includeLLFile() you can use 
$GLOBALS['LANG']->getLL('configuration')
instead
$GLOBALS['LANG']->sL('LLL:EXT:lowlevel/config/locallang.xml:configuration')

I use sL() if i want get a label that is in another file.


* Take care for the new CGL. eg. a space before and after a dot(.)

Cheers 
Stefano
-- 
Seit dem 1.1.2008 werden Daten zu jeder E-Mail verdachtsunabhängig gespeichert! 
Weitere Informationen: www.vorratsdatenspeicherung.de
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D


More information about the TYPO3-team-core mailing list