Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294489

[meta] Comply with WCAG guideline 3.1.2: Language of Parts

$
0
0

This is a meta-issue for the integration of the concept of 'language of parts' in Drupal core. Language of parts is an accessibility requirement in WCAG and is meant to make language changes in texts detectable.

"3.1.2 Language of Parts: The human language of each passage or phrase in the content can be programmatically determined except for proper names, technical terms, words of indeterminate language, and words or phrases that have become part of the vernacular of the immediately surrounding text. (Level AA)"http://www.w3.org/TR/WCAG20/#meaning-other-lang-id

The recommended solution is to use the lang-attribute, for example:
<span lang="de">Ich bin ein Berliner</span> is a quotation from a speech by President John F. Kennedy.

This year in the Netherlands 45% of governmental websites fails on WCAG tests for this issue. Example: A governmental web page that should have language tags.

We discussed this in the last meeting in the accessibility group. As texts are provided in a lot of places, we suggested to break this issue into separate issues for the different levels and uses. First test and if needed file issues for the most common places like text fields.

General UI:
#1164682: links with a known language need language identifier
#1165476: if t() string has no translation or fallback language, text should have lang attribute

body field
The default filtered html format outputs the language attribute correctly and even transforms it to both xml:lang and lang. However, by default it is not possible to include span, p and div tags. That means that there is at the moment no option to include languages without additional visual markup (as cite, em, strong, blockquote etc).
#1322906: Allow span tag by default for language changes?
#1328768: attributes 'xml:lang' and 'xml:id' transform to 'lang' and 'id' in filter_xss
#1993928: Language of parts: Introduce a language toolbar button

text field
For text fields the default plain text format is not sufficient, an html filter should be included to output the language attribute.
#784672: Allow text field to enforce a specific text format

title field
Titles accept only plain text. There is no easy solution for this. Fix would be to have titles as text fields.
#1188394: Make title behave as a configurable, translatable field (again)

nodes/entities
#1164926: Nodes need to have languages specified separately for accessibility
#2036277: Language attribute is not attached node title on a full page

comments
#1368410: When viewing a node in another language as interface language, comment form should have correct language

views
#2496223: Views containing content not in the page's language need to add tags which mark the language of parts

See also:
#1165466: Language of parts, accessibility and multilanguage: language button
#724128: Impossible to add "xml:lang" in a translatable field
discussion http://groups.drupal.org/node/145894


Viewing all articles
Browse latest Browse all 294489

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>