Re: need advice on an i18n english to arabic function

From: Date: Wed, 02 Jun 2004 18:21:36 +0000
Subject: Re: need advice on an i18n english to arabic function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187470@lists.php.net to get a copy of this message
p80 wrote:
I have a website in English, it is translated in many languages already (Spanish, french, German...), and i wanna translate it in Arabic, everytime i have a word in English i use a function like this i18n(MyEnglishWord) and the i18n function look up in an arabic.inc that contains a list of English words translated in Arabic such as: $this = "يليل"; $house ="بسيب"; etc... that works Ok but the problem is that Arabic reads from right to left so i need to redo my php and html code. is there a way to do this easily or is there any method I should know of to ease my task? thanx in advance
http://www.w3.org/TR/REC-html40/struct/dirlang.html HTH :)

« previous php.general (#187470) next »