Support » Plugin: Polylang » [Plugin: Polylang] Treanslate to rtl.css

  • Resolved ArielK


    Oh, I loved this plugin.
    In Qtranslate, if you change the language, so also changes the translation of the theme, this option is there?
    This is very useful sites that use RTL languages ​​(Hebrew / Arabic), then it displays the theme by using a rtl.css.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author 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 ?

    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_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 😉

    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


    Polylang 0.7 now comes with full support of RTL languages for themes with an rtl.css file.


    your solution is the perfect one.
    Good job, man 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Polylang] Treanslate to rtl.css’ is closed to new replies.