Jump to content

Prestashop bidirectional version (full RTL support)


Mehrshad Zakerian

Recommended Posts

Hi,

 

Persian Prestashop team worked on prestashop to make it rtl. After publishing prestashop 1.4.4.1 we decided to make prestashop bidirectional that works with both rtl and ltr languages correctly. Now you can download a patch for prestashop 1.4.6.2 to make it bidirectional!

 

For using this patch you must set your language as RTL language in BO > Tools > Languages > Edit.

 

Features:

  • Installer (for persian), back office, front office (default theme) and modules are bidirectional.
  • automatic direction changing
  • You can make your theme and modules (with css) bidirectional.

Problems:

  • Admin Tabs and Modules that haven't CSS are edited.
  • some modules are LTR.
  • problem in admin "image mapping" page in google chrome.
  • LTR PDF

Algorithm of loading CSS files:

 

 

 

You can find Algorithm of css loading in classes/Tools.php and addCSS() function.

 

if (language is rtl)

If (css/cssfile
_rtl
.css exists)
load
css/cssfile
_rtl
.css
else if(css/
rtl
/cssfile.css exists)
load
css/
rtl
/cssfile.css
else
load
css/cssfile.css

 

 

 

After downloading this patch you must extract it to prestashop root folder. (just for 1.4.6.2).

please report any problem.

 

Special Thanks to:

 

Danoosh Miralayi Motlagh (making prestashop bidirectional)

Mortaza Najafgholizade (converting css files for default theme)

And people who helped in Persian translation

 

Good luck,

www.presta-shop.ir team - Iran

 

Download: 1.4.6.2_rtl.1.1_patch.zip

CSS Path Structure: csshelp.txt

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Hi,

 

Persian Prestashop team worked on prestashop to make it rtl. After publishing prestashop 1.4.4.1 we decided to make prestashop bidirectional that works with both rtl and ltr languages correctly. Now you can download a patch for prestashop 1.4.6.2 to make it bidirectional!

 

For using this patch you must set your language as RTL language in BO > Tools > Languages > Edit.

 

Features:

  • Installer (for persian), back office, front office (default theme) and modules are bidirectional.
  • automatic direction changing
  • You can make your theme and modules (with css) bidirectional.

Problems:

  • Admin Tabs and Modules that haven't CSS are edited.
  • some modules are LTR.
  • problem in admin "image mapping" page in google chrome.
  • LTR PDF

Algorithm of loading CSS files:

 

 

 

 

You can find Algorithm of css loading in classes/Tools.php and addCSS() function.

 

if (language is rtl)

If (css/cssfile
_rtl
.css exists)
load
css/cssfile
_rtl
.css
else if(css/
rtl
/cssfile.css exists)
load
css/
rtl
/cssfile.css
else
load
css/cssfile.css

 

 

 

 

After downloading this patch you must extract it to prestashop root folder. (just for 1.4.6.2).

please report any problem.

 

Special Thanks to:

 

Danoosh Miralayi Motlagh (making prestashop bidirectional)

Mortaza Najafgholizade (converting css files for default theme)

And people who helped in Persian translation

 

Good luck,

www.presta-shop.ir team - Iran

 

Download: 1.4.6.2_rtl.1.1_patch.zip

CSS Path Structure: csshelp.txt

 

Hi,

 

What this RTL Language do?? Is it help that there won't be dublicate or what? For example when you are installing some modules and should this RTL Lanquage be active in prestashop 1.4.6.2?

Link to comment
Share on other sites

  • 5 months later...
  • 1 year later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...