Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Gantry 5 and "RTL support" problem - Joomla Platform #2598
This topic to discuss the Gantry 5.4.32 framework and the Support of RTL with Joomla 3.9.15
What is the issue with RTL??
Once you create your own multilanguage website using differrent langauges such as English, iTalian, Arabic and Hebrew then you will start asking how to make the template look nice in all langauges especially the RTL langs Arabic, Urdu, Hebrew.. and so on.
The same for images, modules, particles, Menus should be from right to left.
Let's say your default layout in LTR like this
Then after you use RTL langauge your layout should be like that
According to Gantry documentation the RTL is activated automatically based on the langague XML file and this feature starts from Gantry 4 and continue in Gantry 5 with more nice option to flip the content from LTR to RTL based on the browser settings also.
More related information can be found here:
To make sure that everything will work correctly you should prepare your langauges correctly. The popular example of RTL langauge is Arabic where it's used by millions of those who work with RTL and here is the good point where joomla provide a nice plugin to check the multilangauge status .. This plugin can be found in plugins list and after activating it then there is a button on the bottom bar of administration panel will appear to allow admins to check if their multilangauge setup is correct or not.
It should look like this:
If your settings is correct then you should see it like this for Arabic (RTL) and English (LTR) langauges
Unfortunely even if settings are correct, the layout still doesn't change and doesn't flip the content. As explained the content should change based on the langauge xml and when you use the the lnaguage switch module then it should load the another xml file related to the desired langauge so the text align will become from right to left for Arabic langauge and all the particles will become from right to left positions.
There is one important note to mention.. we can solve the issue of particles positions by creating differrent layout with differrent positions for each langauge but this will not help and will not solve the issue related to the text alignment in articles, particles text and titles ... so it's not good solution and will never help much.
in my website even all the multilangauge settings are correct but the RTL support is not working.
My website with Gantry 5 is like that:
1- English Menu items with Home page menu as default >>> Template English Layout
When changing the lanaguge then it switch to the menu assiciated page correctly and it loads langauge strings correctly but it never flip the layout and the text align, floating, direction still LTR.
It works only in one case when I change the parameter inside the English xml file .. for example YOUR_SITE/language/en-GB/en-GB.xml. for 0 to be 1.