This is an old revision of the document!


xml:lang=YOUR LANG de en ...

Forum: http://forum.phpwcms.org/viewtopic.php?p=112333#p112333

Author: Jensensen


You probably noticed that –> config

$phpwcms['default_lang']      = 'ABC';  //default language

is responsible for the xml:lang source code of the page, like for example:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ABC" lang="ABC">

But what happens when you have a multilingual site [SEO] running with many different site structure levels for each language (so called 'trees')?

The visitor and any –> search engine will get –> DEFAULT =⇒ 'ABC' –> for EVERY PAGE in –> each tree - EVEN for those pages which content ACTUAL was written for example in ES, IT, SE, DK, UK. FR, EN…

You'll succeed by –> CUSTOM templates that will override –> CONF

Just ADD [this conf-var!]:

$phpwcms['DOCTYPE_LANG'] = "whatever_lang";

to

[a custom template : for me THIS was new because THERE never was DOCTYPE_LANG in]

/template/inc_settings/template_default/MYcustom_settings.php

Google code: http://code.google.com/p/phpwcms/issues/detail?id=147

or frontend_init something

english/technics/internal-function-call/xml-language.1243161918.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0