[TYPO3-english] Tokens translation

Björn Pedersen pedersen at frm2.tum.de
Fri Oct 14 07:51:23 CEST 2011


Am 13.10.2011 22:48, schrieb Ernesto Domato:
> Hi all,
> 
> I'm trying to centralize the translation of different tokens on my
> website on a XML file. Searching on Google a little I finally did
> this:
> 
> On the TS:
> 
> 10 = TEXT
> 10.data = LLL:fileadmin/languages/tokensTranslation.xml:lib.myText.sprache
> 10.wrap = <a class="headerLinks sprache">|</a>
> 
> On the XML:
> 
> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
> <T3locallang>
>   <meta type="array">
>     <description>All language tokens for my template</description>
>     <type>module</type>
>   </meta>
>   <data type="array">
>     <languageKey index="default" type="array">
>       <label index="lib.myText.sprache">Sprache</label>
>     </languageKey>
>     <languageKey index="es" type="array">
>       <label index="lib.myText.sprache">Idiomas</label>
>     </languageKey>
>     <languageKey index="en" type="array">
>       <label index="lib.myText.sprache">Languages</label>
>     </languageKey>
>   </data>
> </T3locallang>
> 
> And it worked great, but when I tried to add another token it didn't
> worked as expected and I don't know how to do that.
> 
> Can someone help me with this?, what is the best way to have different
> tokens translated from a centralized place?.
> 
> 
> Thanks for all.
> Ernesto
Hi,

I think the approach is correct. What TYPO3 version are you using? I
think  4.6 and 4.5 cache the language files, so you have to clear the
cache on adding new strings.

Björn



More information about the TYPO3-english mailing list