Skip to main content
Participant
April 10, 2007
Question

Need to add ISO 639 language code to pages

  • April 10, 2007
  • 3 replies
  • 1098 views
My accessibility testing of RoboHTML files is failing with this error:
WCAG 2.0: Success Criterion 3.1.1: The value of the LANG attribute must be set to one of the ISO 639 language codes. [LanguageISO639_2].
I tried adding the following lines of code (one at a time) to one of my pages:
<html lang="eng" xml:lang="eng">
<html lang="en-us" xml:lang="en-us">
<html lang="en" xml:lang="en">
<html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<hhtml xmlns=" http://www.w3.org/1999/xhtml" xml:lang="eng" lang="eng">

Then I regenerated the files, but I still get the error.
Does anyone know how I can fix this? It would be nice if I could add the correct code to the template ...
Thanks.
This topic has been closed for replies.

3 replies

Inspiring
December 19, 2017

I used the aXe Chrome extension (Easy Accessibility Testing with aXe ) to check WCAG accessibility of the help pages, and it's looking for this on every page:

<html lang="en">

I tried adding that to a master page, but it's not there when generated. Just <html>. It doesn't even have the default on the generated pages: <html xmlns="http://www.w3.org/1999/xhtml">

I assume there is something in one of the files in:

C:\Program Files (x86)\Adobe\Adobe RoboHelp 2017\RoboHTML\WebHelp5Ext\template_stock\whxdata

that would change that, but I haven't found it yet.

If someone figures it out, please post it here!

Thanks!

Karla

Participant
April 11, 2007
Unfortunately, this doesn't work either. I also tried <body lang=eng>. Any other ideas?
Peter Grainge
Community Expert
Community Expert
April 11, 2007
Welcome to the forum.

I don't know the cause of the problem or the solution but I was doing some unconnected work and noticed RH created this tag

<body lang=EN-US>

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.