Articles CodeIgniter

Codeigniter multi language support using Google translate API

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
Codeigniter multi language support using Google translate API by Anil Kumar Panigrahi
  download link for Codeigniter multi language support using Google translate API

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

27 thoughts on “Codeigniter multi language support using Google translate API”

  1. Pingback: Gadget Newz
  2. 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]

    1. 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

  3. 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..

  4. 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

  5. HI,
    You have used “”.$q.”&langpair=”.$lang_pair;
    in your translate_helper file .
    1.0 version is ommited by google please suggest new code.

    Priyanka Tripathi

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.