mzubairsaleem / gtranslate-api-php

Automatically exported from code.google.com/p/gtranslate-api-php
GNU General Public License v3.0
0 stars 0 forks source link

Is it possible to detect language? #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In addition to the translation feature, is it possible to integrate the
"detect language" functionality (that is described here:
http://code.google.com/apis/ajaxlanguage/documentation/#Detect) in your class? 

Original issue reported on code.google.com by vincent....@gmail.com on 3 Nov 2009 at 4:05

GoogleCodeExporter commented 8 years ago
wondering about this too

Original comment by Hudson.A...@gmail.com on 29 Dec 2009 at 9:40

GoogleCodeExporter commented 8 years ago
To let Google autodetect source language, set $languages[0] to '' (empty 
string) in
function __call in GTranslate.php

Original comment by Frank.Da...@gmail.com on 7 Jan 2010 at 10:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Will be looking into this this week!

Original comment by josedasilva on 8 Mar 2010 at 7:04

GoogleCodeExporter commented 8 years ago
To add on Frank's suggestion, add a language "auto" to languages.ini.
'auto' and '' (empty string) have the same effect.

Original comment by Amedee.V...@gmail.com on 9 Mar 2010 at 1:15

GoogleCodeExporter commented 8 years ago
hi, i would like also to know how to detect language.

Original comment by eyal...@gmail.com on 26 Mar 2010 at 12:48

GoogleCodeExporter commented 8 years ago
Use $_SERVER['HTTP_ACCEPT_LANGUAGE']

Original comment by pigroupe...@gmail.com on 27 Apr 2010 at 3:27

GoogleCodeExporter commented 8 years ago
Fatal error: Call to undefined function json_decode() in D:\Program 
Files\xampp\htdocs\gtranslate\GTranslate.php on line 192

Original comment by sithy....@gmail.com on 1 Dec 2010 at 11:33

GoogleCodeExporter commented 8 years ago
Any news on the auto-detect language feature?  I'd like this too :)

Original comment by lemonbe...@gmail.com on 25 Jun 2011 at 10:31