[TYPO3] Language DropDown Problem (sr_language_menu)..
Nirmalya
nirmalya at fivee.in
Wed Aug 23 09:01:12 CEST 2006
Hi,
I am using typo3 version 4.0.1 & sr_language_menu version 0.6.9 &
BackEnd language is English.
I want to configure language drop down menu. For this my script is below:
TypoScript:
config.linkVars = L
# Default language, sys_language_uid = 5
config.sys_language_uid = 5
config.language = nl
config.locale_all = nl_NL
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 5
#config.sys_language_mode = content_fallback ; 6,0
# Dutch language, sys_language_uid = 5
[globalVar = GP:L = 5]
config.sys_language_uid = 5
config.language = nl
config.locale_all = nl_NL
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 5
[global]
# English language, sys_language_uid = 6
[globalVar = GP:L = 6]
config.sys_language_uid = 6
config.language = en
#config.locale_all = en_EN
config.locale_all = en_GB
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang =6
[global]
# German language, sys_language_uid = 7
[globalVar = GP:L =7]
config.sys_language_uid = 7
config.language = de
config.locale_all = de_DE
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang =7
[global]
# French language, sys_language_uid = 8
[globalVar = GP:L = 8]
config.sys_language_uid = 8
config.language = fr
config.locale_all = fr_FR
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 8
[global]
temp.languageMenu < plugin.tx_srlanguagemenu_pi1
temp.languageMenu.languagesUidsList = 6,5,7,8
temp.languageMenu.defaultLayout= 1
And:
page.10.subparts.languageMenu < temp.languageMenu
sys_language Table:
UID PID TITLE FLAG
6 0 English gb.gif
5 0 Dutch nl.gif
7 0 German de.gif
8 0 French fr.gif
FE Plugin OutPut:
<div class="tx-srlanguagemenu-pi1">
<form action="" name="sr_language_menu_form"><select size="1" name="L"
title="Choose a language" onchange="if
(document.sr_language_menu_form.L.options[document.sr_language_menu_form.L.selectedIndex].value
== '') return;if(false ||
document.sr_language_menu_form.L.options[document.sr_language_menu_form.L.selectedIndex].value
!= '0') { top.location.replace('index.php?id=163&L=' +
document.sr_language_menu_form.L.options[document.sr_language_menu_form.L.selectedIndex].value
); } else { top.location.replace('index.php?id=163'); }">
<option value="0">English</option>
<option value="5" selected="selected">Nederlands</option>
<option value="7">Deutsch</option>
<option value="8">Français</option>
</select>
</form>
</div>
PROBLEM:
I cannot browse English language page.
when i click over "English" from "sr_language_menu_form" it redirects me
to "Nederlands" for English the url should be like index.php?id=163&L=6
and I am not getting In drop down from where "<option
value="0">English</option>" is generating....
any help about this language drop down so that i can browse "English"
language page...
any help........
Thank you.
Regards,
Nirmalya.
More information about the TYPO3-english
mailing list