html lang tag: Why displaying country code in lowercase?

61 views
Skip to first unread message

jms

unread,
Jan 23, 2017, 3:04:34 AM1/23/17
to joomla-...@googlegroups.com
Since 1.5, we display the html lang code in our default core templates as lower case.
Example <html lang=en-gb

the code used is <html lang="<?php echo $this->language; ?>"

This comes from document.php where the method is using strtolower
public function setLanguage($lang = 'en-gb')
{
$this->language = strtolower($lang);

return $this;
}

I see no reason for forcing lowercase for the country code.
See http://www.ietf.org/rfc/bcp/bcp47.txt
https://www.w3.org/International/articles/language-tags/index.en

Patch is easy.

What do you think?

JM

Troy Hall

unread,
Jan 23, 2017, 1:04:19 PM1/23/17
to joomla-...@googlegroups.com
I think it was done to make it easier to figure out the pathing.
Bear
Reply all
Reply to author
Forward
0 new messages