[TYPO3] multi-language setting and fe visualization

Sander van Gelderen mail at sandervangelderen.nl
Thu Sep 18 16:58:51 CEST 2008


Hi Luca,

You are almost there...

In your TS template, you should have this:
## ####################################################
## Localization [Start]

mod.web_layout.defLangBinding = 1

# Localization:
config {
	linkVars = L
	uniqueLinkVars = 1
	sys_language_mode = content_fallback
	sys_language_overlay = 1
	
	# default language:
	sys_language_uid = 0
	language = nl
	locale_all = nl_NL
	htmlTag_langKey = nl
}

# other langs:
[globalVar = GP:L=1]
config {
      sys_language_uid = 1
      language = en
      locale_all = en_UK
      htmlTag_langKey = en
  }
# etc,
# etc,
[end]

## Localization [End]
## ####################################################


Also, in the TSconfig of your root page (that's in the page properties) 
this:

mod.SHARED {
	defaultLanguageFlag = nl.gif
	defaultLanguageLabel = Nederlands
}



Good luck,

Sander

luca schreef:
> Hi,
> 
> I have created a few languages for my site, as explained in the 
> localization fe guide.
> 
> I have created the records in the website language.
> I have created alternative pages language, pointing to the website 
> languages.
> 
> The contents have been correctly localized in the back end and they are 
> present in the page-languages view.
> 
> I have created a menu, and it seems bworking correctly, looking to the url.
> 
> I have then set my template as  follows....
> 
> The problem is that no content is shown for the translated versions, the 
> only way to show this is to go in the extended view tab in edit page 
> propriety and manually select the content in the main content box.
> 
> I think, if I correctly understood the procedure, that tranlsation 
> should be shown by default....
> 
> Any help?
> 
> Thank you
> 
> 
> ## ####################################################
> ## Localization [Start]
> config {
> linkVars = L
> }
> [globalVar = GP:L=0]
> config {
>     sys_language_uid = 0
>     language = it
>     locale_all = it_IT
> }
> [globalVar = GP:L=1]
> config {
>     sys_language_uid = 1
>     language = en
>     locale_all = en_UK
> }
> [globalVar = GP:L=2]
> config {
>     sys_language_uid = 2
>     language = fr
>     locale_all = fr_FR
> }
> [globalVar = GP:L=3]
> config {
>     sys_language_uid = 3
>     language = de
>     locale_all = de_DE
> }
> [global]
> [globalVar = GP:L=6]
> config {
>     sys_language_uid = 6
>     language = es
>     locale_all = es_ES
> }
> [global]
> ## Localization [End]
> ## ####################################################
> ## language menu start
> 
> lib.langMenu = HMENU
> lib.langMenu {
>   special = language
>   special.value = 0,1,2,6
>   special.normalWhenNoLanguage = 1
>   1 = TMENU
>   1 {
>     wrap = <span id="top_bar_menu">|</span>
>     # Normal link to language that exists:
>     NO = 1
>     NO.allWrap =  |*| |&nbsp;&nbsp;&#124;&nbsp;&nbsp;|*| |
>     NO.stdWrap.setCurrent = italiano || english || fran&ccedil;aise || 
> espa&ntilde;ol
>     NO.stdWrap.current = 1
> 
>     # Current language selected:
>     ACT < .NO
>     ACT.linkWrap = <b>|</b>
> 
>     # Language that is NOT available:
>     USERDEF1 < .NO
>     USERDEF1.linkWrap = <span class="nolang">|</span>
>     USERDEF1.doNotLinkIt = 1
>   }
> }
> ## language menu end
> ## ####################################################


More information about the TYPO3-english mailing list