Hello I want to set up language menu in my local how to configure Multi language in my website? i want exact like:
DEUTSCH | ENGLISH
If i click on English so that all page content is in English and if possible then describe step by step because i am new in typo3.
Below script help you more about set your language
NO{
{
linkWrap = <li> | </li>
stdWrap.override = DEUTSCH || ENGLISH
ATagTitle = DEUTSCH || ENGLISH
stdWrap.typolink.parameter.data = page:uid
stdWrap.typolink.additionalParams = &L=0 || &L=1
}
For more detail you may visit https://jainishsenjaliya.wordpress.com/2012/11/05/language-menu-via-typoscript/
# Language Menu
lib.lang_menu = COA
lib.lang_menu {
10 = HMENU
10 {
special = language
special.value = 0,1
1 = TMENU
1 {
expAll = 0
wrap = <div class="lang"><span aria-hidden="true" class="glyphicon glyphicon-globe"></span><div class="btn-group"><button class="btn btn-default btn-xs dropdown-toggle language_menu" type="button" data-toggle="dropdown" aria-expanded="false">DE <span class="caret"></span></button><ul class="dropdown-menu" role="menu">|</ul></div></div>
wrap = <ul class="language">|</ul>
NO = 1
NO {
stdWrap.cObject = TEXT
stdWrap.cObject {
value = DE || EN
}
allWrap = <li>|</li>
}
RO < .NO
RO = 1
RO.ATagParams = class="hover"
ACT < .NO
ACT = 1
ACT {
#ATagParams = |*| class="active" |*| class="active"
#doNotLinkIt = 1
allWrap = <li class="active">|</li>
}
USERDEF1 < .NO
USERDEF1.allWrap = <li>|</li>
USERDEF1.doNotLinkIt = 1
}
}
}
Also you need to configure in config.ts
# Considered DE is default.
config {
htmlTag_langKey = de
sys_language_uid = 0
language = en
locale_all = en_US
}
[globalVar = GP:L = 1]
config {
htmlTag_langKey = en
sys_language_uid = 1
language = en
locale_all = en_US
}
[global]
Above typo-script is put in your config typoscript
http://typo3.org/extensions/repository/view/static_info_tables
install the above Extension then follow the instructions
then after select Website Language create your own language and select it from drop-down menu
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.