1

In Joomla, using any 3rd party SEF component (sh404sef in our case) requires the language filter plugin to be disabled and here starts the dilemma of the RTL switching not working in RTL pages as most frameworks such as Gantry which is what we use, depend on that plugin being enabled for the switching.

ltr page: mobylak.com rtl page: mobylak.com/ar

On rtl pages, inspect element, it shows in the html tag:

<html lang="en" xml:lang="en" prefix="og: http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" slick-uniqueid="3">

when sh404sef is disabled and the language filter plugin is enabled it displays correctly as:

<html lang="ar" xml:lang="ar" prefix="og: http://ogp.me/ns#" slick-uniqueid="3">

and ofcourse if sh404sef is enabled along with the language filter plugin the /ar site breaks.

the only framework that we didn't get that problem with was Vertex but its not our preferred framework.

The Gantry template has a "less" folder which includes rtl.less and has a css-compiled folder which includes rtl.css, so what are we on the look out for to achieve the gantry template supported RTL switching whilst sh404sef enabled and language plugin filter disabled?

Thanks

j0k
  • 22,600
  • 28
  • 79
  • 90
Shalaby
  • 87
  • 1
  • 10
  • I modified some code in the index.php file and managed to get the html tag to display lang="ar" with sh404sef on, but the template rtl switching is still not happening. – Shalaby Dec 21 '13 at 13:18

1 Answers1

0

I wrote this javascript for automatic LTR-to-RTL conversion that might be helpful

https://github.com/urigoren/RTLjs

Uri Goren
  • 13,386
  • 6
  • 58
  • 110
  • thnx m8, looks good. However I'm trying to make the switching based on user's input of clicking the 'en' or the 'ar' flag instead of getting browser language settings..so the default in all cases would be 'en' – Shalaby Dec 29 '13 at 08:34