PHP Code:
<?php
$language = 'arabic'; //or 'english' //set the system language
$rtl = array('arabic','hebrew','urdu'); //make a list of rtl languages
$textdir = 'ltr';
if (in_array($language,$rtl)) { //is this a rtl language?
$textdir = 'rtl'; //switch the direction
} //end if
?>
<html dir="<?php echo $textdir; ?>">
<!--now the HTML tag has the right direction in it, either rtl or ltr-->
If you don't understand that, then you should read some tutorials. It's not really possible to explain it better. If you'd prefer that someone does this for you (this is a 'help' forum, not a 'do-it-for-you' forum), then you could post this as a paid request and you won't need to do it yourself. But for free, the example above is close enough.
If you have a specific question about some code you have, please post the code. But without code (just asking for ideas), there's not much more I can do.
Bookmarks