giszh86 / google-api-translate-java

Automatically exported from code.google.com/p/google-api-translate-java
0 stars 0 forks source link

Add method for detecting source language #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to add a method for detecting the source language?

I know there is already the Language.AUTO_DETECT but I'd really like to be 
able to know the source language for app analytics purposes.

Original issue reported on code.google.com by mjc1...@gmail.com on 29 Oct 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Ah, my bad - just saw your Detect class :)

Anyway, can there be one call which returns both the Detect data and 
translation 
together to avoid two HTTP calls?

Original comment by mjc1...@gmail.com on 29 Oct 2009 at 4:17

GoogleCodeExporter commented 9 years ago
Not yet is the short answer for now.

I'm considering changing the API to return a more complex object than the 
current 
String arrays. It may well be possible to add this if we do go down that route, 
but 
I'm a little reluctant to unless absolutely necessary. It does look 
increasingly as 
though that'll have to happen eventually.

Thanks.

Original comment by rich.mid...@gmail.com on 6 Nov 2009 at 10:03