Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How to set xml:lang="en" and lang="en" attributes for a sharepoint page?

I have a sharepoint page AboutUs.aspx. It contains only some text.

I have hosted the site on my server and when I tried to check the "Web Accessibility" using achecker.ca, it is showing the known problems as 1 - Document has invalid language code

Repair: Add a valid 2 letter or 3 letter language code as defined in the ISO 639 specification to the HTML 'lang' attribute. For XHTML, both 'lang' and 'xml:lang' must be set.

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" __expr-val-dir="ltr" dir="ltr">

I found similar problems for all other pages too. When I downloaded the page, I could find only

<%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> 

on the particular page.

How can I resolve the problem by inserting the language code in the master page or any other page.

Any help is appreciated.

Vinu

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.