By matteoraggi on
On my site I have put this tag into file page.tpl.php:
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="it-IT,it">
But trough domain module I'm using the same theme also on other sites using different languages, so then IT became wrong for them.
I'm not a developer, anyway I desperately tryed to change it-IT,it with print $language and also with print $GLOBALS['locale']; , but with evidence they don't work, I hope someone can hel me in it.
Comments
...
<?php print $language->language ?>You should be setting lang in the html element...
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
It lok to work well for
It lok to work well, thanks!