guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

Incorrect language detection #533

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Iam not sure if it exactly the AJAX API problem to me it looks more for the 
translator issue but I did not find better place to submit bug for it.

What steps will reproduce the problem?
Try to detect language for this string: 'I will write here something usefull 
soon'

google.language.detect("I will write here something usefull soon", 
function(result) {
   if (!result.error && result.language) {
      alert('Detected language: '+result.language);
      // will show 'Detected language: la'
   }
});

this problem ocurres also at the translator.google page:
http://translate.google.cz/#auto|it|I%20will%20write%20here%20something%20useful
l%20soon

What is the expected output? What do you see instead?
Expected: 'Detected language: en'
Got: 'Detected language: la'

What version of the product are you using? On what operating system?
http://www.google.com/jsapi?v=1
Firefox, Windows 7

Original issue reported on code.google.com by zachar.m...@gmail.com on 19 Oct 2010 at 5:46