[Typo3] Getting locallang labels from Typoscript
tapio
tapio.markula at dnainternet.net
Sun Jul 24 10:06:08 CEST 2005
Daniel Doesburg wrote:
> tapio wrote:
>
>>> As an example I drop here a part of my TS:
>>>
>>> plugin.tx_arotealoginbox_pi1 {
>>> _LOCAL_LANG.nl {
>>> user = gebruiker
>>> pass = wachtwoord
>>> }
>>> }
>>>
>> I tested that with
>>
>> plugin.fdfx_2cols {
>> _LOCAL_LANG.fi {
>> tt_content.tx_fdfx2cols_type.I.0 = Normaali
>> }
>> }
>>
>> Didn't work!
>
>
> Of course not. Because tt_content.tx_fdfx2cols_type.I.0 is not a
> locallang entry in this extension.
> It's no magic. Only entries in the locallang file(s) can be translated
> that way.
It IS an entry in 'locallang_db.php' of 'fdfx_2cols':
'fi' => Array (
'tt_content.tx_fdfx2cols_leftcolumn' => 'Vasen sarake:',
'tt_content.bodytext' => 'Teksti:',
'tt_content.tx_fdfx2cols_type.I.0' => 'Malli 1',
Endeed I missed '_pi1'. Even if I put
plugin.fdfx_2cols_pi1 {
...
Now it has been made at the same way as
plugin.tx_arotealoginbox_pi1 {
...
More information about the TYPO3-english
mailing list