Hi friends, This post explains about codeigniter plugin development for multi-language support using google translate API. This is my own contribution in Codeigniter framework. With using google translate API it is developed. The procedure and how to implement in our application is in below github link. Readme.txt will give complete procedure to implement in the application.

Codeigniter multi language support using Google translate API by Anil Kumar Panigrahi
![]() |
Mainly 2 advantage are there using this contribution.
Uses of this contribution:
1) No Need to maintain all text in different languages in our application.
Clarification: In the multilingual support sites – we have text in English language. If we want to convert into different language we have to maintain other language text in our site. If we use this contribution, no need of maintaining different languages text in our site.
2) It supports ‘n’ number of languages.
Clarification : If we use normal multilingual then we can use it for 2 or 3 languages. If we want another language then we want to write complete text in that language. If we use this contribution, we can maintains ‘n’ number of languages.
This contribution require only one file. i.e. translate.php
Pingback : Gadget Newz
Nice Post, Thank you for sharing
Keep posting stuff like this i really like it
Good one
ya its cool bro..
perfect helper, thanks
Good one.. 🙂
I’ve tried many times, but has not been successful and hard at all, what is wrong. why? thanks for the information
i m doing a project which is based on online exam and it will b run on server of a school which is connected with internet & other pcs are connected with that server so can we use this method ??
is this work there ??
reply me fast & if possible mail me i m posting my email id here
[email protected]
Google Translate API v1 is deprecated, v2 costs money. Use Bing Translation API instead.
i tried. Its not working for me..
this is not working showing this error plz help me as soon as posible Fatal error: Call to undefined function curl_init() in D:\xampp\htdocs\demo\ci\system\helpers\translate_helper.php on line 50
Pingback : Top 10 most viewed posts in anil labs - Anil Labs
thank you for your nice post, but i can’t understand by “This contribution require only one file. i.e. translate.php”.
I want to translate whole website from english to other language. So what will be the url in
curl_setopt($ch, CURLOPT_REFERER, ” “); in your helper function. Please give me right solution..
Hi,
can you explain how to integrate ckeditor with codeigniter. I searched in many sites, but there is no step by step explanation.
Thanks and regards,
Meganathan. P
HI,
You have used “http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=”.$q.”&langpair=”.$lang_pair;
in your translate_helper file .
1.0 version is ommited by google please suggest new code.
Thanks
Priyanka Tripathi
this version depreciated. please post v2 version code.
this is very usefull
Hi Anil,
I tried today its not working.
Hi,
I use this but not working. I want to translate whole page. please tell me how to integrate this?
I need code according to v2 of Google api.
Getting error something like this :
Array
(
[responseData] =>
[responseDetails] => Please use Translate v2. See http://code.google.com/apis/language/translate/overview.html
[responseStatus] => 403
)
Any other way to simply translate any codeigniter application.?
Good one.. ?
I don’t know how to set CURLOPT_REFERER can any help me please?
Instead of using Google translate API, you can use CodeIgniter’s own multilanguage functionality. Just enable the multilanguage on codeigniter site by enabling the hook and setting up language loader. Source: https://www.cloudways.com/blog/multi-language-codeigniter/
Is this still working ?
I try is not working, please fix it.