haw007kobra
Member
Posted 1 year ago #
Im trying to implement a web site in 2 languages French and Arabic. The French(LTR) content is different from te Arabic(RTL) content(it's not a side by side translation). I use a plug-in (langSwich) to switch between the 2 languages. I have localized my theme. but I have problem to switch from RTL and LTR. Haw cane I do this? I wonder if it's better to use the multi-site in wordpress to implement 2 different sites?
You may need WPML (WordPress MultiLanguage) to pull that off.
haw007kobra
Member
Posted 1 year ago #
thx Im using it, but and I have localized my theme Ive added the rtl.css . I the localization works, except the fact that le direction still 'ltr' and the rtl.css does'n work. haw cane I switch the text direction?
Where did you put the file? I think it belongs in your theme folder.
haw007kobra
Member
Posted 1 year ago #
I've put it in theme folder with style.css. I use wordpress 3 English. I tried to add this in functions.php of the theme:
$local=get_locale();
if($locale){
$wp_locale= new WP_Locale;
$wp_locale->text_direction="rtl";
}
it work but I wonder if there is a better method for lang switching?`