Codeigniter multi language support using Google translate API

in Articles, CodeIgniter / 23 Comments

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

With more than 9 years experience in PHP and Founder of Anil Labs, a blog for PHP and related posts. contributed posts regarding CodeIgniter, CakePHP and Learn PHP online ... Contact : [email protected]

  1. Mohammad

    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]

  2. Dani

    Google Translate API v1 is deprecated, v2 costs money. Use Bing Translation API instead.

    • motilal

      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. Kazi Sanchoy Ahmed

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

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

    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

  6. ram janam

    Hi,

    I use this but not working. I want to translate whole page. please tell me how to integrate this?

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>