1.7 Identify language changes in text
Contents
WAI checkpoint 4.1
Full WAI text: "Clearly identify changes in the natural language of a document's text and any text equivalents (e.g., captions)."
Natural language refers to spoken, written or signed languages, such as English, Irish, Irish Sign Language and Braille. The predominant natural language of a web page should be identified in the underlying HTML. If there are passages of text contained in a page, which are presented in a different language to the predominant natural language you should flag the change. This also applies to text equivalents, such as alt text or captions, for information presented in visual or audio format.
Rationale
Speech synthesisers and Braille devices need to be told what the natural language is so they can present the information using the correct pronunciation. Failing to identify the natural language could cause these devices to mispronounce words, making the information difficult to undestand.
Identifying the natural language also facilitates automated translators: software or machines capable of reading the contents of a page and translating it into another language.
Directions and Techniques
WAI recommended technique on identifying changes in the natural language
Identify changes in the natural language with the "lang" attribute. This HTML attribute describes the natural language of the text. Use it to identify the primary natural language and any changes to the natural language. Follow the WAI recommendations on using the LANG attribute
How you could check for this:
There are no specific test methods recommended for this guideline.
