Plugin Author
Chouby
(@chouby)
Thank you for your positive feedback.
To be honest, I did not make any test with rtl languages yet. But it’s a test I kept for the future. I am not sure of what I will have to do (or not) to make it work.
Should I understand that the plugin already works “out of the box” with such languages or not ?
Thread Starter
ArielK
(@arielk-1)
Yes.
Other plugins (QTranslate, WPML), when you change language, so he gets the PO & MO files of the theme, and if this is here written from right to left, then the file RTL.CSS
In QTranslate is a wonderful feature: When you add a language, it automatically inserts the translation of WordPress, and it is possible to translate the Admin panel.
i did one thing, i have prepared two copied of style.css
and saved them as:
style_ar.css
style_en.css and i emptied the style (keeping the comments) in style.css
(and of course you can keep the style.css for your default language 😉
anyway,
i went to the theme header
and changed the theme style.css to
<link rel=’stylesheet’ href='<?php echo bloginfo(‘template_url’); ?>/style_<?php bloginfo(“language”);?>.css’ type=’text/css’ media=’screen’ />
it works perfect.
Plugin Author
Chouby
(@chouby)
Polylang 0.7 now comes with full support of RTL languages for themes with an rtl.css file.
tarektm..
your solution is the perfect one.
Good job, man 🙂