[resolved] Treanslate to rtl.css (6 posts)

  1. ArielK
    Posted 4 years ago #

    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


  2. Chouby
    Plugin Author

    Posted 4 years ago #

    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 ?

  3. ArielK
    Posted 4 years ago #

    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.

  4. tarektm
    Posted 4 years ago #

    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.

  5. Chouby
    Plugin Author

    Posted 4 years ago #

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

  6. efoula
    Posted 3 years ago #


    your solution is the perfect one.
    Good job, man :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic