Reputation: 2084
I am doing a site with php.
I want to convert my English content to 7 other languages
( Chinese, Spanish, Malayalam, Telgu, Tamil, Kannada and Hindi).
Is there any script or anything like that to do this?
Upvotes: 0
Views: 3748
Reputation: 993
Have a look on http://php.net/manual/de/book.gettext.php or use a template engine - depends on your requirements, your skills and the effort you want to put into this work.
For starters http://www.bitrepository.com/php-how-to-add-multi-language-support-to-a-website.html might give you an idea of how to do it.
Upvotes: 0
Reputation: 60413
You might want to check out Zend_Translate. Note this doesnt actually write the translations for you, you have to do that yourself or find someone to do that. Its simply a library to ease accessing/using the translations for static text strings.
Upvotes: 2
Reputation: 7497
<script type="text/javascript" charset="UTF-8" language="JavaScript1.2" src="http://uk.babelfish.yahoo.com/free_trans_service/babelfish2.js?from_lang=en®ion=us"></script>
This javascript code links to the yahoo translation kit, then your page would be pulled in for translation into your reader's required choice.
But my suggestion would be for you to have all those pages pre-done by yourself and put into the database, and when a user requests for a specific language, you can query the page in preferred language.
These conversion kits might not give you a 100% correct translation.
Upvotes: 1