On 8/1/08, Andreas Burg <[EMAIL PROTECTED]> wrote: > Andreas Burg schrieb: >> [EMAIL PROTECTED] schrieb: >>> On 8/1/08, Andreas Burg <[EMAIL PROTECTED]> wrote: >>>> [EMAIL PROTECTED] schrieb: >>>>> Hi >>>>> >>>>> on the multilang site, how to make TMENU display navigation titles in >>>>> the current language, e.g. if the address is index.html?&L=2 and 2 >>>>> happens to be German, I'd like it to show nav titles I've entered for >>>>> the german version. Currently it shows navtitles in default lang, no >>>>> matter which language is choosen. >>>>> >>>>> Thanks, >>>>> gosha >>>> Hello gosha, >>>> >>>> please post your menu and config. >>>> >>>> Andreas >>> >>> hi >>> >>> my setup is a follows >>> >>> page = PAGE >>> page.10 = HMENU >>> page.10.1 = TMENU >>> page.10.1.NO.linkWrap = <p>|</p> >>> >>> Thanks, >>> gosha >> >> Oh, I suppose you have no config. Put following code into the setup of >> your main TS-template and change it, that it fits your needs, mainly get >> the correct sys_language_uid -> >> >> >> # Config Default English >> config { >> sys_language_uid = 0 >> language = en >> locale_all = en_GB.utf8 >> htmlTag_langKey = en >> headerComment = *** Programmed by gosha *** >> } >> >> # Config English >> [globalVar = GP:L = 0] >> config { >> sys_language_uid = 0 >> language = en >> locale_all = en_GB.utf8 >> htmlTag_langKey = en >> headerComment = *** Programmed by gosha *** >> } >> [global] >> >> # Config German >> [globalVar = GP:L = 9] >> config { >> sys_language_uid = 9 >> language = de >> locale_all = de_DE.utf8 >> htmlTag_langKey = de >> headerComment = *** Programmiert von gosha *** >> } >> [global] > > additonaly you have to set LinkVars I estimate. > > config.linkVars := addToList(L) > > I'm shure it works with navtitles, it did not work with aliases. >
Hi Andreas, thanks for help, much appreciated. When I add a new language in backend, I have to add a new [globalVar = GP:L = whatever] section to TS, right? Is it possible to have this configured automatically? Thanks, gosha _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english