Multi-Language Setup


/ Published in: TYPO3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #Setting up the language variable "L" to be passed along with links
  2. config.linkVars = L
  3.  
  4. #English, sys_language.uid = 1
  5. config.sys_language_uid=0
  6. config.language = en
  7. config.locale_all = english
  8. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
  9.  
  10. #German, sys_language.uid = 1
  11. [globalVar = GP:L=1]
  12. config.sys_language_uid = 1
  13. config.language = de
  14. config.locale_all = de_CH
  15. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
  16. [end]
  17.  
  18. #French, sys_language.uid = 2
  19. [globalVar = GP:L=2]
  20. config.sys_language_uid = 2
  21. config.language = fr
  22. config.locale_all = french
  23. config.htmlTag_langKey = fr
  24. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 2
  25. [end]
  26.  
  27. #Italian, sys_language.uid = 3
  28. [globalVar = GP:L=3]
  29. config.sys_language_uid = 3
  30. config.language = it
  31. config.locale_all = italian
  32. config.htmlTag_langKey = it
  33. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 3
  34. [end]
  35.  
  36. #Spanish, sys_language.uid = 4
  37. [globalVar = GP:L=4]
  38. config.sys_language_uid = 4
  39. config.language = es
  40. config.locale_all = spanish
  41. config.htmlTag_langKey = es
  42. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 4
  43. [end]
  44.  
  45. #Russian, sys_language.uid = 5
  46. [globalVar = GP:L=5]
  47. config.sys_language_uid = 5
  48. config.language = ru
  49. config.locale_all = russian
  50. config.htmlTag_langKey = ru
  51. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 5
  52. [end]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.