donators

n@work Internet Informationssysteme GmbH
Your ad here

supported by

 TYPO3 Hamburg
 TYPO3 Anbieter

Advertising

Switch between localizations based on the L-parameter.

By: Martin

01.03.08 15:58 Age: 220 days

In multi language sites you often use the L parameter to switch the languages.

Here is the complete ts-code:

  1.  
  2. config.language = en
  3. config.locale_all = en_UK
  4. config.htmlTagLangKey = en-UK
  5. config.sys_language_uid = 0
  6. config.linkVars := addToList(L) 
  7.  
  8.   # switch the german language based on the L parameter
  9. [globalVar = GP:L=1]
  10.   config.language = de
  11.   config.locale_all = de_DE
  12.   config.htmlTagLangKey = de-DE
  13.   config.sys_language_uid = 1 
  14. [global]
  15.  

Found a mistake?

If you found a mistake or if you have a good tip or suggestion, please contact me at thomas(at)typo3-unleashed.net. I will check it and correct the entry or insert the new one.

Thanks in advance for your help.