Member
Member
bic   2012-05-24, 07:59
#1
A suggestion taken from SEOquake Diagnosis tool is to add a lang attribute in HTML tag. I've done it in my custom theme by replacing
`<html xmlns="http://www.w3.org/1999/xhtml">`
with
`<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo getOption('locale');?>" xml:lang="<?php echo getOption('locale');?>">`

Do you think it deserves any attention?
Is there a better way to declare the language of a page?
Administrator
Administrator
acrylian   2012-05-24, 11:10
#2
Actually you can also set the language via the `<meta>`tags in the head, which the html_meta_tags plugin can do if setup for it.
Member
Member
bic   2012-05-24, 13:04
#3
Thanks acrylian, I missed it already was in that plugin...

EDIT:
By the way, for some reasons SEOquake Diagnosis still reports `Language: Undetected` after I've enabled the plugin, enabled both the language meta in the plugin options, and removed the lang attribute described in my first post.
Administrator
Administrator
acrylian   2012-05-24, 13:53
#4
Sorry, I really don't know that tool but the meta tag way is for sure standard procedure. Be sure to clear the html cache if you use it.
Member
Member
bic   2012-05-24, 14:32
#5
I don't know how reliable is that tool either, btw I have html cache disabled and I can't even use that, because of a problem with custom page as gallery index, very similar to the one we found about sitemap generation (http://www.zenphoto.org/trac/ticket/2160). But now I'm off topic. I should open a ticket about that.
I see now that you have fixed the sitemap issue, time for me to update again...
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.