[TYPO3-english] news ext - link to archive

Thomas Lunde tlp at netimage.dk
Wed Aug 15 13:15:36 CEST 2012


Den 15-08-2012 12:45, Georg Ringer skrev:
> HI,
>
> just do it in your template:
> <f:link.page pageUid="123">More</f:link.page>
>
> instead of "More" you could use also <f:translate
> key="LLL:fileadmin/fo.xml:more-news" /> and use the locallang file
>
> georg
>
Hi again

Now I have made a link to my archive in my template:
<f:link.page pageUid="74"><f:translate 
key="LLL:fileadmin/templates/htmlfiles/ext/news/locallang.xml:more-news" 
/></f:link.page>

And then I have this in the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<T3locallang>
   <data type="array">
     <languageKey index="dk" type="array">
       <label index="more-news">Flere nyheder</label>
     </languageKey>
     <languageKey index="default" type="array">
       <label index="more-news">More news</label>
     </languageKey>
   </data>
</T3locallang>

It correctly takes the "Flere nyheder" from the "dk" section, but when I 
change the language til english, it still writes "Flere nyheder".

Is there something wrong with the link or the xml?

/Thomas


More information about the TYPO3-english mailing list