How To Convert English Into Arabic Dynamically
Solution 1:
There is no way of appropriate human-readable literary automatic translation. Google Translate does its best, but still, if you don't want your Arabic-speaking visitors to laugh on ugly translation, you'd better translate everything manually and so, create Arabic version ofa whole website. GNU GetText would be helpful. In case if you still want an automatic translation, you can use Google Translate API
Solution 2:
It can be done, but nothing will replace an actual, bona fide translation of the content done by a professional, or yourself if you are fluent in both languages.
What you could do as a makeshift solution is this : dynamically append a "dir=rtl" attribute to your html tag (or whatever tag containing text to be translated) and then somehow redirect to a google translated version of that page. But I would personally strongly advise against doing this. The google translation is simply terrible, and you don't want your content to put off your users, or even worse offend them in case of a misfire in the translation...
Solution 3:
I think the best way in your case is to use Google Translate. Read about it here
Solution 4:
PHP make developer's life easy, read it in detail I18N_Arabic
Post a Comment for "How To Convert English Into Arabic Dynamically"