2011-11-02, 17:25:31
sax Wrote:Thank you mvlcek.
I didn't find out how your code <?php global $language; echo @$language ? $language : 'en'; ?> works,
but I thought that I18N sets the language according to the site name ending (..._en)?
I need 'de' language setting for german sites and 'en' for english sites because google robots ignore sites with wrong language settings (I had this problem before....). Is there another theme that can do this? Or do I have to make two versions of the same theme with different language settings?
Kind regards Matthias
Your theme seems to have a template that starts with
Code:
...
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...
Code:
...
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php global $language; echo @$language ? $language : 'en'; ?>" lang="<?php global $language; echo @$language ? $language : 'en'; ?>">
...