Page 1 of 1

LTR <-> RTL switch problem

Posted: Tue Aug 04, 2020 7:26 pm
by tactico
hi
i have a multi-lingual website (Hebrew & English)
i have noticed after update to recent joomla (3.9.20) that there is a problem when switching language.
website default is Hebrew. when changing to English, texts and menu are English, but in the <html> tag lang="he-il" dir="rtl"
as a result, the english website is aligned to right and not left...

if i change the default language to English the website loads correctly but when switching to Hebrew - it is all aligned to left

Any ideas how to solve this?

Thank you

Re: LTR <-> RTL switch problem

Posted: Wed Aug 05, 2020 7:43 am
by infograf768
Hard to help without access to your site administration with superuser credentials.
Update to 3.9.20 has no impact on multilingual sites, but it maybe concerns some of your third party extensions including your template and/or cache.

A first test would be to use protostar template instead of your template and delete all caches.

If it does not work you may contact me privately with the necessary credentials and ref to this topic and I will have a look.

Re: LTR <-> RTL switch problem

Posted: Fri Aug 07, 2020 7:36 am
by infograf768
I had a look.
It is always the site default language taking over the real language in use, therefore, when Hebrew is default, RTL is loaded also for English. And the opposite when en-GB is default.

Code: Select all

<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
This is definitely not a Joomla core issue.

SPagebuilder mixed with K2 and your 3rd party template are creating such problem as I could not even load Protostar to test with the default J core site default template.

Sorry, can't help further as I would have to create exactly the same site locally and check these 3rd party code for this bug.

I suggest you contact these developers.