Anil Labs

Friday, May 28, 2010

Codeigniter multi language support using google translate API

17 comments:

  1. [...] Codeigniter multi language support using google trans API [...]

    ReplyDelete
  2. Nice Post, Thank you for sharing

    ReplyDelete
  3. Keep posting stuff like this i really like it

    ReplyDelete
  4. I've tried many times, but has not been successful and hard at all, what is wrong. why? thanks for the information

    ReplyDelete
  5. 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

    mr.mohmmad@yahoo.co.in

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

    ReplyDelete
  7. i tried. Its not working for me..

    ReplyDelete
  8. [...] 4)Codeigniter multi language support using google translate API [...]

    ReplyDelete
  9. 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..

    ReplyDelete
  10. 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

    ReplyDelete
  11. 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

    ReplyDelete
  12. 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

    ReplyDelete
  13. this version depreciated. please post v2 version code.

    ReplyDelete
  14. 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/

    ReplyDelete