No Code Attached Yet
avatar drjjw
drjjw
14 Sep 2020

If you are submitting an issue for the Joomla! CMS, please submit it at https://github.com/joomla/joomla-cms/issues/new instead. You may remove this line from the issue template.

Steps to reproduce the issue

Multilingual site required. HTML language attribute will only get added for the default language and does not change on other langages.

Expected result

Eg:

<html lang="en-gb" dir="ltr">

Should become on french version of same page:

<html lang="fr-fr" dir="ltr">

but does not

Actual result

Eg:

<html lang="en-gb" dir="ltr">

remains

<html lang="en-gb" dir="ltr">

System information (as much as possible)

Joomla! 3.9.21
Tested in PHP 7.4

Additional comments

Can be fixed by changing index.php of template from:

<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">

to:

<html lang="<?php echo $_REQUEST['language'];?>" dir="<?= $this->direction ?>"

avatar drjjw drjjw - open - 14 Sep 2020
avatar joomla-cms-bot joomla-cms-bot - change - 9 Nov 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Nov 2026
avatar brianteeman
brianteeman - comment - 9 Nov 2026

this report was for Joomla! 3.9.21 is it still relevant?

avatar drjjw drjjw - change - 9 Nov 2026
Status New ⇒ Closed
Closed_Date 0000-00-00 00:00:00 ⇒ 2026-11-09 12:38:35
Closed_By ⇒ drjjw
avatar drjjw drjjw - close - 9 Nov 2026

Add a Comment

Login with GitHub to post a comment