Page 1 of 1

Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL

Posted: Tue Feb 11, 2020 9:46 pm
by titomah
Hello

joomla 3.9.15
template prostar, beez
Php 7.2
libmysql - 5.6.43



I use multi-langauge website with 3 langauges (English, Arabic and French) which mean LTR for Englsish and French while Arabic is RTL.

I setup everything very good and the status of multilangauge is correct for everything, the module for switch langauge is working correct .. I setup all the menus correctly.

No problem in displaying the right menu item with right langauge content. The associations for menu items are working fine too.


The problem is:

Even the website is loading the correct menu item with the correct langauge strings but the html code is not correct.

let's say LTR page on this url: https://example.com/en

I think the <html> tag for the page will be
<html lang="en" dir="ltr">

and the RTL page on this url: https://example.com/ar so the html tag should be
<html lang="ar" dir="rtl">

but what happens that the html tag still <html lang="en" dir="ltr">

This is reflecting negatively on the menus,modules, extentions' content direction and instead of being from Right-To-Left on the RTL page it doesn't change direction from LTR.

I thought it was because the default language of the website so i tried it in Arabic,Engliah and French but the langauge code always <html lang="en" dir="ltr">

I've done all the traditional things like clearing cache and bla bla but no way.


If there is any solution I would be happy
Thanks for all of you in advance

Re: Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL

Posted: Wed Feb 12, 2020 3:56 am
by imanickam
I have checked this in the fresh install of Joomla! 3.9.15 with Beez3 as the default template and the HTML created shows the right direction of the languages. Please see the screenshots below:
English_Page.jpg
Arabic_Page.jpg
French_Page.jpg

Please check:

(a) Whether the plugin "System - Language" is Enabled
(b) Whether the module "Language Switcher" is Published in the desired module position

Re: Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL

Posted: Wed Feb 12, 2020 10:49 am
by titomah
Thank you for your reply.

i found

- plugin "System - Language" is Enabled.
-module "Language Switcher" is Published in the desired module position.

i still don't know where is the cause of the issue

Re: Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL

Posted: Wed Feb 12, 2020 4:29 pm
by imanickam
What is your site's URL?

Are you entering the URLs manually or using the Language Switcher module?

Hope the core features of Joomla! to build the multilingual site.

Any third party plugin has been installed in the site?

Re: Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL

Posted: Mon Dec 14, 2020 5:05 pm
by titomah
Hello,

I still have the same issue since I opened this post.

I use the Jooma language switcher

Also Multilingual Status module is shown everything is okay, no errors.


The html lang dir tag still stick with the default website language and doesn't change when I change the language using the built in joomla module.

any solution please?

thanks in advance

Re: Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL

Posted: Tue Dec 15, 2020 5:24 pm
by infograf768
Please test with the default Protostar template as I guess the problem is with your template.