Our wiki is set to german [de] and has multi language off.
But we do have some articles in english. So we tried to set the language of those articles to englisch [en].
But testing a screenrader (iOS over voice) shows, that this has no impact on the language the screen readers uses. It is reading these english articles with german voice.
What is working (for testing purpose only) is setting the whole text in a html macro inside a div with lang attribute.
{{html wiki="true"}}
<div lang="en">
== RULES OF EMPLOYMENT ==
=== Chapter I. GENERAL PROVISIONS ===
==== Article 1. Purpose ====
1. These Rules of Employment (these “**Rules**”) contain matters regarding the employment of local employees (“**Employees**”) of xxx (“**Company**”). The purpose of these Rules is to improve working conditions and contribute to the development of Company’s business.
1. Any matters related to Employee’s employment that are not stipulated in these Rules are governed by the Labor Standards Act and other applicable laws and regulations.
</div>
{{/html}}
But this means there is no possibility to edit this article with the wysiwyg editor. So we can’t use this.
I tried to “split” the html macro:
{{html}}
<div lang="en">
{{/html}}
== RULES OF EMPLOYMENT ==
=== Chapter I. GENERAL PROVISIONS ===
==== Article 1. Purpose ====
1. These Rules of Employment (these “**Rules**”) contain matters regarding the employment of local employees (“**Employees**”) of xxx (“**Company**”). The purpose of these Rules is to improve working conditions and contribute to the development of Company’s business.
1. Any matters related to Employee’s employment that are not stipulated in these Rules are governed by the Labor Standards Act and other applicable laws and regulations.
{{html}}
</div>
{{/html}}
But that leads to an empty div (with lang=“en”) on top and another empty div (w/o lang attribute) after the article.
Debugging the html source code I can see no difference regarding language attribute whether the article is set to german, english or with no language.
Someone an idea how to fix this?
I would think, that setting the language of the article should set the language attribute of id=“xwikicontent”.
Regards, Simpel