• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Need to add ISO 639 language code to pages

New Here ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

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.

Views

990

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 11, 2007 Apr 11, 2007

Copy link to clipboard

Copied

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>

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 11, 2007 Apr 11, 2007

Copy link to clipboard

Copied

Unfortunately, this doesn't work either. I also tried <body lang=eng>. Any other ideas?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 19, 2017 Dec 19, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp