[TYPO3-english] problem with sr_language_menu extension

Jan Magnussen jm at gagarin.dk
Sun Mar 1 18:33:17 CET 2009


Hi

My site is setup as one-tree with 4 languages.

When entering with the polish domain .pl I will get polish language, 
which is correct, but configuration also says that polish in this case 
is the default language, which is not correct because it's english.

That means when sellecting english in the sr_language_menu javascript 
menu it stayes on the polish language.

What am I doing wrong?

.com / Default = english (this i where the english content is placed)
language 1      = english (this is without centent)
.pl / language 2 = polish
.cz / language 3 = chechen
.hu / language 4 = hungarian

Kind regards
Jan Magnussen


Constants:
--------------------------------------------------------
# Limitation of picture widths in main content column:
styles.content.imgtext.maxW = 600

# Setting link targets to nothing (no frames mode)
PAGE_TARGET =
content.pageFrameObj =

# Making sure each line in image captions (of Image content elements) 
are applied to corresponding image number in the element:
styles.content.imgtext.captionSplit = 1


plugin.tx_srlanguagemenu_pi1.showLinkWithFlag = 0
plugin.meta.revisit = 0
plugin.meta.language = en
plugin.meta.robots = all
plugin.meta.copyright = TypoDesign 2008
plugin.meta.email = info at firstclients.com
plugin.meta.keywords = Office,Serviced office,Office rent,Rent 
office,Office for rental,Office hotel,Shared office,Meeting 
rooms,Training rooms,Board rooms,Conference rooms,Conference 
facilities,Virtual Office,Business address

plugin.tx_srlanguagemenu_pi1.selectionListSeparator = -----------------
plugin.tx_srlanguagemenu_pi1.useSelfLanguageTitle = 0
plugin.tx_srlanguagemenu_pi1.useSysLanguageTitle = 1
plugin.tx_srlanguagemenu_pi1.useIsoLanguageCountryCode = 1
plugin.tx_srlanguagemenu_pi1.addSelectionListHeader = 1


config {
   # cat=advanced/language/1; type=options[utf-8,iso-8859-1]; 
label=Content Charset
   renderCharset = UTF-8

   # cat=advanced/language/2; type=options[utf-8,iso-8859-1]; 
label=Document Charset: Normally same as renderCharset.
   metaCharset = UTF-8

   # cat=advanced/other/3; type=options[XHTML 1.0 
Transitional=xhtml_trans,XHTML 1.0 Frameset=xhtml_frames,XHTML 1.0 
Strict=xhtml_strict,XHTML basic=xhtml_basic,XHTML 1.1=xhtml_11,XHTML 
2=xhtml_2,NO doctype=none]; label=Document Type
   doctype = xhtml_trans

   # cat=advanced/other/3; type=options[all,cached,output]; label=HTML 
Tidy:Tries to clean up the output to make it XHTML compliant and a bit more.
   xhtml_cleaning = all
}
--------------------------------------------------------


Setup:
--------------------------------------------------------
config.spamProtectEmailAddresses = 1
config.spamProtectEmailAddresses_atSubst = @

config.stat = 1
config.stat_apache = 1
config.stat_apache_logfile = firstclients.log
config.stat_excludeBEuserHits = 1

config.noPageTitle = 1
page.headerData.5 = TEXT
page.headerData.5.field = subtitle // title
page.headerData.5.wrap = <title>FirstClients - Serviced offices for rent 
-&nbsp; |</title>

page.meta.keywords.field = keywords
page.meta.description.field = description
page.meta.keywords.override.field = keywords
page.meta.description.override.field = description


page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" 
xml:lang="sv"

page = PAGE
page.bodyTag >
#page.bodyTag = <body onload="self.resizeTo(1134,940)"; 
background-repeat="no-repeat";>

page.shortcutIcon = fileadmin/HTML/res/favicon.ico

lib.leftmenu1 = COA
lib.leftmenu1 {
  100 = HMENU
  100.special = list
  100.special.value = 38,36,37,35
  100.1 = TMENU
  100.1 {
   wrap = <ul id="blockmenu">|</ul>
   NO {
    stdWrap.cObject = COA
    stdWrap.cObject {
     10 = TEXT
     10.field = title
     10.wrap = <span class="leftheader">|</span><BR>

     20 = TEXT
     20.field = subtitle
     20.parseFunc < lib.parseFunc
     20.wrap = <span class="lefttext">|</span><BR>
     20.required = 1
    }
    allWrap = <li>|</li>
   }
   ACT < .NO
   ACT = 1
   ACT.ATagParams = class="act"
  }
}


lib.findheader = COA
lib.findheader = COA
lib.findheader {
   10 = HMENU
   10 {
     special = list
     special.value = 39
   }
   10.1 = TMENU
   10.1.NO {
    ATagParams = class="navi3"
    doNotLinkIt = 1
   }
}


lib.findcity = HMENU
lib.findcity.special = directory
lib.findcity.special.value = 24
lib.findcity {
   1 = JSMENU
   1 {
     levels = 1
#    additionalParams = class="select-level1"
#    menuName = By
     firstLabelGeneral = Cities
   }
}

page.headerData.11 =  <script type="text/javascript"
language="javascript" src="fileadmin/HTML/Suckerfish-IE.js">
</script>
page.headerData.12 =  <script type="text/javascript" 
src="http://www.google.com/jsapi?key=ABQIAAAAhyJNmcfkaOD657HHyj6grRTpOQmBDHAr1ECLyjsDSgmvETdBOhTnP50hcg6l5_Fomct_FcMhUDi67A"></script>

#Ændre keywords
page.headerData.45 = TEXT
page.headerData.45.field = keywords
page.headerData.45.wrap = <META NAME=”keywords” CONTENT=”|” />

# Breadcrumb
lib.breadcrumb =HMENU
lib.breadcrumb.special=rootline
lib.breadcrumb.special.range= 0 | -1
lib.breadcrumb.1=TMENU
lib.breadcrumb.1.NO.allWrap= |&nbsp;&nbsp;-&nbsp;&nbsp;|*| 
|&nbsp;&nbsp;-&nbsp;&nbsp;|*| |


# Menu objects:
lib.topmenu = HMENU
lib.topmenu.entryLevel = 0
lib.topmenu.special = list
lib.topmenu.special.value = 67,31,30,29
lib.topmenu.1 = TMENU
lib.topmenu.1 {
NO.allWrap = |&nbsp;&nbsp;/&nbsp;&nbsp;|*| |&nbsp;&nbsp;/&nbsp;&nbsp;|*| |
NO.ATagParams = class="menuitems1"

ACT = 1
ACT.allWrap = |&nbsp;&nbsp;/&nbsp;&nbsp;|*| |&nbsp;&nbsp;/&nbsp;&nbsp;|*| |
ACT.ATagParams = class="menuitems1ACT"
}


lib.logo = COA
lib.logo {
10 = TEXT
10.value = <div id="logo1" class="logo1"></div>
10.stdWrap.typolink.parameter.data = leveluid:0
}


#TS CODE
# if you use t3mootools
page.includeJS.file1 = EXT:t3mootools/res/mootoolsv1.11.js
# if you don't need t3mootools
# page.includeJS.file1 = EXT:rgmoodalbox/res/js/mootools.js
#page.includeJS.file2 = EXT:rgmoodalbox/res/js/moodalbox.js

# Include CSS styles
page.includeCSS.file17 = EXT:rgmoodalbox/res/css/moodalbox.css


#config.renderCharset = utf-8


plugin.tx_srlanguagemenu_CSS_DEFAULT_STYLE >

temp.languageMenu < plugin.tx_srlanguagemenu_pi1

temp.languageMenu.languagesUidsList = 1,2,3,4

#temp.languageMenu.defaultLayout= 0
temp.languageMenu.defaultLayout= 1
temp.languageMenu.useSysLanguageTitle = 0

#lib.langmenu < temp.languageMenu


# Setting up default language, English
config.linkVars = L
config.uniqueLinkVars = 1
config.sys_language_overlay = content_fallback
config.language = en
config.locale_all = en_EN
config.sys_language_uid = 0

config {
   baseURL = http://firstclients.com/

   renderCharset = {$config.renderCharset}
   metaCharset = {$config.metaCharset}
   doctype = {$config.doctype}
   xhtmlDoctype = {$config.doctype}
   xhtml_cleaning = {$config.xhtml_cleaning}

}


[globalVar = GP:L=0]
config {
	sys_language_uid = 0
	language = uk
	locale_all = english
	language = en
	locale_all = en_EN
}


[globalVar = GP:L=1]
config {
	sys_language_uid = 1
	language = uk
	locale_all = english
	language = en
	locale_all = en_EN
}



#Setting up Polish language
[globalVar = GP:L=2]
config {
	sys_language_uid = 2
	language = pl

}
config {
#  baseURL = http://firstclients.pl/

   renderCharset = {$config.renderCharset}
   metaCharset = {$config.metaCharset}
   doctype = {$config.doctype}
   xhtmlDoctype = {$config.doctype}
   xhtml_cleaning = {$config.xhtml_cleaning}

}



#Setting up Hungarian language
[globalVar = GP:L=3]
config {
	sys_language_uid = 3
	language = hu
}

config {
#  baseURL = http://firstclients.hu/

   renderCharset = {$config.renderCharset}
   metaCharset = {$config.metaCharset}
   doctype = {$config.doctype}
   xhtmlDoctype = {$config.doctype}
   xhtml_cleaning = {$config.xhtml_cleaning}

}


#Setting up Chechen language
[globalVar = GP:L=4]
config {
	sys_language_uid = 4
	language = cs
	locale_all = cs_CZ
}
config {
#  baseURL = http://firstclients.cz/

   renderCharset = {$config.renderCharset}
   metaCharset = {$config.metaCharset}
   doctype = {$config.doctype}
   xhtmlDoctype = {$config.doctype}
   xhtml_cleaning = {$config.xhtml_cleaning}

}


[global]


}


--------------------------------------------------------



More information about the TYPO3-english mailing list