Change xml:lang based on requested url


We are using an old release of DNN with MultiLanguage extensions. DNN version is 5.4.4 and we are using legacy localization extensions.
Whether the page in English or French the page source contains following tag:
<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
We would like to change en-US to fr-CA when a requested url contains /fr/.....
Is this something we could handle?
NOTE: Current version of DNN we are running is 6.0.2 but we have too many pages and having trouble to switch over the core ML functionality.
Before moving to core ml, we would like to know and try this workaround.
Although other people don't think this is an issue, i strongly think having en-US xml lang tag in meta of French pages would be a negative impact of ranking in search engines.
What do you think Timo?


Timo_Design wrote Oct 19, 2011 at 7:01 AM

Yes, I would want that changed too.
You can filter on the url, and you can add an attribute to the HTML tag, but currently you cannot remove anything from it.
I'll see if I can add that, but it night be injected after the skin object runs..
I'll have a look at it..

Timo_Design wrote Oct 19, 2011 at 8:00 AM

Ok, I made a change to the Style Helper skin object you can download it (v02.02.02).
You should be ale to do what you want using this:

<fortyfingers:STYLEHELPER ID="STYLEHELPER1" AddHtmlAttribute="xml:lang,fr-CA" IfUrl="/fr/" runat="server" />
(add one per language)

wrote Oct 19, 2011 at 8:07 AM

wrote Feb 14, 2013 at 2:09 AM

wrote May 16, 2013 at 8:04 AM

wrote May 16, 2013 at 8:04 AM

wrote Jun 14, 2013 at 6:49 AM