Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gantry 5 and "RTL support" problem - Joomla Platform #2598

Open
tima007 opened this issue Feb 9, 2020 · 0 comments
Open

Gantry 5 and "RTL support" problem - Joomla Platform #2598

tima007 opened this issue Feb 9, 2020 · 0 comments

Comments

@tima007
Copy link

@tima007 tima007 commented Feb 9, 2020

Hello

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.
RTL needs everything on the website to be sorted from Right To Left. If you write English from Left To Right LTR.. Then RTL langauges need to be from Right To Left.

The same for images, modules, particles, Menus should be from right to left.

Let's say your default layout in LTR like this
prnt.sc/qzo532

Then after you use RTL langauge your layout should be like that
prnt.sc/qzo598

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:

1- docs.gantry.org/gantry5/faq/rtl-support

2- docs.gantry.org/gantry4/advanced/rtl

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:
prnt.sc/qznz3v

If your settings is correct then you should see it like this for Arabic (RTL) and English (LTR) langauges
prnt.sc/qzo07a

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.
No thing happen in my case with Gantry 5.4.32 with Hydrogen version 5.4.32 as gantry 5 framework.

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
2- Arabic Menu items with Home page menu as default >>> Template Arabic Layout
3- Menu association is correct.
3- Language switch module for each home page.

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.
Then the layout flip normally but never change again with langauge switcher module because both langauges are set to be RTL..
I think this is a bug if there is no mistake in my settings or the way I use menu association with layouts.

Joomla 3.9.15
Gantry 5.4.32 Hydrogen
PHP 7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.