[TYPO3] multilanguage TMENU
Andreas Burg
typo3 at andreasburg.de
Fri Aug 1 19:35:23 CEST 2008
stereofrog at gmail.com schrieb:
> On 8/1/08, Andreas Burg <typo3 at andreasburg.de> wrote:
>> stereofrog at gmail.com 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]
More information about the TYPO3-english
mailing list