[TYPO3-english] Language Selection and Menu on Typo3_452

Tobias Dörner hermes1 at web.de
Wed Apr 20 08:51:45 CEST 2011


Hi Dominic,
thanks for anwsering. 
My config is similar to yours. But I didn’t initialize sr_language_menu.
Maybe this was the mistake. I will just try it. 

config {
  [...]
  linkVars = L
  sys_language_mode = content_fallback
  sys_language_overlay =  1  
  sys_language_uid = 0
  language = de
  locale_all = de_DE.UTF8
}
[globalVar = GP:L = 1]
config {
    language = en
    locale_all = en_GB.UTF8
    #htmlTag_langKey = en
    sys_language_uid = 1
}
[global]

Best Regards 
Tobi



-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org
[mailto:typo3-english-bounces at lists.typo3.org] Im Auftrag von Dominic Garms
Gesendet: Mittwoch, 20. April 2011 02:01
An: typo3-english at lists.typo3.org
Betreff: Re: [TYPO3-english] Language Selection and Menu on Typo3_452


> I selected standard language German in the backend and in my TS Config the
> L=0 Parameter is German. [globalVar = GP:L = 1] is English.

Hello Tobias,

first I recommend for using sr_language_menu for the menu, here would be 
the TS for the german default language and english as second:

plugin.tx_srlanguagemenu_pi1.defaultLanguageISOCode = DE
plugin.tx_srlanguagemenu_pi1.defaultLayout = 0
plugin.tx_srlanguagemenu_pi1.languagesUidsList = 0,1

lib.LanguageMenu = COA
lib.LanguageMenu {
     wrap = <div id="languageSelect">|</div>
     10 < plugin.tx_srlanguagemenu_pi1
}

Next you have to look at the language config, here a sample what works 
for me:

config.language = de
config.locale_all = de_DE
config.uniqueLinkVars = 1
config.htmlTag_langKey = de-DE
config.sys_language_uid = 0
config.linkVars = L

config.sys_language_mode = content_fallback
config.sys_language_overlay = hideNonTranslated

[globalVar = GP:L = 1]= GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = en-EN
config.htmlTag_langKey = en-EN
[global]

I guess you might forgot the TS config.linkVars = L, without that your 
language Menu couldnt work at all

Hope this snippet helps you out of your trouble

Kind Regards

Dominic

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list