WP 3.2.1 + WPML 2.4.1 + ClassiPress 3.0.5.4
Hi All
Thank you salota8550 for your solution below and the Arabic translation, it indeed paved the way for my discovery.
I spent 3 days trying to figure out how to have multiple languages in the same site using a combination of
WP 3.2.1 +
WPML 2.4.1 +
ClassiPress 3.0.5.4 and here is how.
The Problem :
Using salota8550 solution bellow is good for single RTL language sites , however if you want to have multiple language support using WPML then the enterface will stay in RTL for both Arabic and English.
And the reason is that
WP is inserting the rtl.css before the style.css in the header section of the theme, and the last CSS loaded will take priority.
The Solution:
To counter that behavior without changing WordPress you need to remove the call to locale_stylesheet and then add it again.
Go to the ClassiPress theme directory --> includes --> theme-header.php
Toward the end of the file you will find these to lines
add_action('wp_head', 'cp_version');
add_action('wp_head', 'cp_style_changer');
add the following 2 lines after the above lines , and that's all.
remove_action( 'wp_head','locale_stylesheet');
add_action( 'wp_head','locale_stylesheet');
WARNING : hence you are changing the the ClassiPress theme file directly , there is no guarantee that any upgrade will not break it and that you will need to add the two calls again.