[TYPO3-english] Tokens translation

Ernesto Domato edomat at gmail.com
Fri Oct 14 16:43:05 CEST 2011


On Fri, Oct 14, 2011 at 11:36, Ernesto Domato <edomat at gmail.com> wrote:
> Hi,
>
> I'm using version 4.5.3 of Typo3 and I thought that the problem may be
> the cache, but maybe is that I'm not using the XML file properly.
>
> For example, I added a second string and now both string disappears
> from the site.
>
> My TS is:
>
> 10 = TEXT
> 10.wrap = <li class="grid_6"><h3>|</h3></li>
> 10.data = LLL:fileadmin/languages/tokensTranslation.xml:productsInfo.right_paginator.TechnischeDaten
>
> 20 = TEXT
> 20.wrap = <li class="grid_5"><h3>|</h3></li>
> 20.data = LLL:fileadmin/languages/tokensTranslation.xml:productsInfo.right_paginator.Basisinformationen
>
> And my XML is:
>
> <?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="productsInfo.right_paginator.TechnischeDaten">Technische
> Daten</label>
>    </languageKey>
>    <languageKey index="es" type="array">
>      <label index="productsInfo.right_paginator.TechnischeDaten">Especificaciones</label>
>    </languageKey>
>    <languageKey index="en" type="array">
>      <label index="productsInfo.right_paginator.TechnischeDaten">Specifications</label>
>    </languageKey>
>    <languageKey index="default" type="array">
>      <label index="productsInfo.right_paginator.Basisinformationen">Basisinformationen</label>
>    </languageKey>
>    <languageKey index="es" type="array">
>      <label index="productsInfo.right_paginator.Basisinformationen">Información
> Básica</label>
>    </languageKey>
>    <languageKey index="en" type="array">
>      <label index="productsInfo.right_paginator.Basisinformationen">Basic
> Information</label>
>    </languageKey>
>  </data>
> </T3locallang>
>
> So, I think that I'm generating the XML in a wrong way.
>
> Thanks for your help.
> Ernesto
>

Ok, I find the problem and indeed I was generating the XML in a wrong way.

Looking into another XML file I found that all the tokens for one
given languages should be on the same "languageKey" group and I was
putting them on repeated ones and it make my site not to work
properly.

Well, I hope you could understand my explanation because it seems that
my English today is awful ;-)

Thanks for all.
Ernesto


More information about the TYPO3-english mailing list