WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ArielK
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

    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.

  4. tarektm
    Member
    Posted 2 years ago #

    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.

  5. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

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

  6. efoula
    Member
    Posted 1 year ago #

    tarektm..

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags