Joomla 3.9.15 Language direction in html tag is incorrect LTR+RTL
Posted: Tue Feb 11, 2020 9:46 pm
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
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