Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#5174 closed defect (bug) (fixed)

Missing lang attribute on download counter template

Reported by: bradleyt's profile bradleyt Owned by: dd32's profile dd32
Milestone: Priority: low
Component: General Keywords:


The download counter template is available in all languages. E.g.

Unlike the rest of the .org network, these download counter pages do not output a lang attribute on the HTML element. This is important for accessibility and SEO reasons.

I think the fix is as simple as making use of language_attributes() in the template.

Change History (3)

#1 @jonoaldersonwp
4 years ago


#2 @dd32
4 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 9780: Download Counter: Include the language attributes.

Props bradleyt.
Fixes #5174.

#3 @dd32
4 years ago

$ curl -s | grep 'lang="' | grep html
<html xmlns="" dir="ltr" lang="es-ES">

$ curl -s | grep 'lang="' | grep html
<html lang="es">

Which is "more correct"

Note: See TracTickets for help on using tickets.