I use this configuration to follow with the HTML5boilerplate.
config{
doctype = html_5
doctype(
<!doctype html>
<!--[if lt IE 7 ]> <html lang="de" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="de" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="de" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="de" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
)
htmlTag_setParams = lang="de" class="no-js no-ie"><!--<![endif]--
}
The problem is that when I have a site with several alternative languages, the lang
attribute doesnt update.
Does anyone have an idea how to solve this?
Use common TS conditions to set proper config.htmlTag_setParams
which you are probably using for switching the language...
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.htmlTag_setParams = lang="en" class="no-js no-ie"><!--<![endif]--
[GLOBAL]
Try:
config {
htmlTag_stdWrap {
setContentToCurrent = 1
cObject = COA
cObject {
appendMeTemp = TEXT
appendMeTemp.append = TEXT
appendMeTemp.append.char = 10
appendMeTemp.current = 1
// IE7
20 < .appendMeTemp
20.addParams.class = ie ie7
20.wrap = <!--[if IE 7 ]>|<![endif]-->
// IE8
30 < .appendMeTemp
30.addParams.class = ie ie8
30.wrap = <!--[if IE 8 ]>|<![endif]-->
// IE9
40 < .appendMeTemp
40.addParams.class = ie ie9
40.wrap = <!--[if IE 9 ]>|<![endif]-->
60 < .appendMeTemp
60.wrap = <!--[if (gte IE 9)|!(IE)]> # <![endif]-->
60.wrap.splitChar = #
}
}
}
Then standard:
config {
htmlTag_langKey = de
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With