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

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
titomah
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 11, 2020 9:16 pm

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

Post by titomah » 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
Last edited by toivo on Wed Feb 12, 2020 12:25 am, edited 1 time in total.
Reason: mod note: moved from 3.x General Questions

 
User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27493
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

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

Post by imanickam » Wed Feb 12, 2020 3:56 am

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
You do not have the required permissions to view the files attached to this post.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

titomah
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 11, 2020 9:16 pm

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

Post by titomah » Wed Feb 12, 2020 10:49 am

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

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27493
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

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

Post by imanickam » Wed Feb 12, 2020 4:29 pm

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?
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

 

Post Reply

Return to “Language - Joomla! 3.x”