Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chouby

    (@chouby)

    I tested the Ascetica theme together with Polylang on my local test site and the theme is perfectly compatible with rtl. It correctly outputs:

    <html lang="ar" dir="rtl">

    However on your site, the code source displays:

    <html lang="ar" prefix="og: http://ogp.me/ns#">

    without the text direction. So I expect that one of your plugin interfers. De-activate them all and then re-activate them one by one to check that.

    Thread Starter slm_xd

    (@slm_xd)

    Thanks for the quick response. Actually, just today I did a fresh install of this theme in a new DB and it worked great.

    Then I tried it again with my testing copy of the same site:
    http://blog.al-aqel.com/le_testing/ar/
    But it didn’t work.
    So I disable ALL plugin except Polylang. It still didn’t work. I made sure that the settings are exactly the same as the fresh site that I made. It’s weird.

    So now we know for sure it’s me not you 🙂 … But I’m still investigating. However, if there is anything even dangerous you want me to try, I would do it with the testing site.

    Else, I’m thinking of taking a backup of the posts and recovering them into a fresh install or something… Plan Z kind of thing.

    Plugin Author Chouby

    (@chouby)

    Could you male two separate tests ?

    1. check “The language is set from content. Posts, pages, categories and tags urls are not modified” in Polylang settings? Check if it is ok.

    2. de-activate Polylang and add:

    define('WPLANG', 'ar');

    in wp-config.php. Check if it is ok.

    Thread Starter slm_xd

    (@slm_xd)

    Ok!

    1. I tried this. It actually loaded the correct css for the frontpage (with /ar/ added) but the Arabic posts themselves are displaying in the English interface now. Kinda strange.

    I’ll leave the blog like this for now for you to look at it and see if you can get something useful from the current html head. And I’ll do test #2 once you give me the go ahead.

    Thanks again!

    Plugin Author Chouby

    (@chouby)

    OK. I expected that rtl.css would be correctly loaded, because in this case, Polylang does use the option set when creating the language. With your previous setting, Polylang does not modify the setting chosen by WordPress.
    I propose two different actions.
    1. You can download the latest arabic translation of WordPress (which should correctly set the text direction) and upload the files in /wp-content/languages/
    http://svn.automattic.com/wordpress-i18n/ar/tags/3.5.1/messages/
    2. And / or you can download the development version of Polylang (1.0.3.3), as starting from now Polylang will always force the text direction based on the option chosen for the language.
    http://downloads.wordpress.org/plugin/polylang.zip

    the Arabic posts themselves are displaying in the English interface now.

    How did you setup your theme translation?

    Thread Starter slm_xd

    (@slm_xd)

    Actually solution #1 fixed the problem!

    I downloaded the .mo files and uploaded them to wp-content/languages/
    Reloaded the page and it’s all perfect!

    Thank you so much, this has been an issue preventing me from publishing to my own people 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Does not load rtl.css’ is closed to new replies.