Title: Accessibility issue &#8211; wrong lang=&#8221;&#8221; and aria-label
Last modified: March 5, 2024

---

# Accessibility issue – wrong lang=”” and aria-label

 *  [Michaela Vranková](https://wordpress.org/support/users/vrankova/)
 * (@vrankova)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/)
 * There is a wrong setting of the element <div class="wpcf7 js" lang=""> in language
   parameter. It also affect the translation <`form aria-label="">`. **This is an
   accessibility issue.**
    - wrong: CF7 form sets the language of the form on the frontend depending on
      user settings (users > profile > language).
    - correct: The form should set the language depending on the site settings (
      settings > general > site language). If the site is multilingual, the form
      should respect the language of the page.
 * When I have general settings in english, but editor has spanish user settings,
   the web page has lang=”en-US”, but CF7 has lang=”es-ES”.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17477468)
 * Where can we see the website in question?
 *  Thread Starter [Michaela Vranková](https://wordpress.org/support/users/vrankova/)
 * (@vrankova)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17481166)
 * Hello.
 * Here is web: [http://misa.vrankova-devel2.cz/subdom/misa/kontakt/](http://misa.vrankova-devel2.cz/subdom/misa/kontakt/)
 * There are 3 identical forms on the page. Parameter Lang is Spanish, Czech and
   Slovak:
    - “>
    - “>
    - “>
 * The language setting of the form is depending on what language I set for the 
   user who created the form.
 * Page language lang=”en-SK”
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17481374)
 * The forms are seemingly working correctly. If you see the language of the `aria-
   label` attribute value as a problem, it depends on the locale of the form.
 * See [Contact form in your language](https://contactform7.com/contact-form-in-your-language/)
   for details of how to create a localized contact form. If you look for a simple
   plugin for multilingual site management, I recommend [Bogo](https://wordpress.org/plugins/bogo/).
 *  Thread Starter [Michaela Vranková](https://wordpress.org/support/users/vrankova/)
 * (@vrankova)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17483434)
 * The problem is that the form takes the locale of the form from user settings 
   not from global site settings. It makes accessibility issue.
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17483732)
 * Could you tell us why you think deciding the form locale based on the authoring
   user’s locale is a problem?
 *  Thread Starter [Michaela Vranková](https://wordpress.org/support/users/vrankova/)
 * (@vrankova)
 * [2 years ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17559154)
 * I think that if the pages are in a given language, the form on this site should
   also respect that language, i.e. the global settings. For example, I made a website
   in Slovak. I had the WordPress environment set to Czech. If I hadn’t checked 
   the accessibility – i.e. aria-label and studied the code of the page, I wouldn’t
   have found out that the form on the page has the language set to Czech. And I
   think that’s a problem.
 * 
   A lot of developers don’t look at the output code of the site and so they may
   not find out that it’s different than they wanted.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Accessibility issue – wrong lang=”” and aria-label’ is closed to new 
replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Michaela Vranková](https://wordpress.org/support/users/vrankova/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/accessibility-issue-wrong-lang-and-aria-label/#post-17559154)
 * Status: not resolved