ericnembot / google-api-translate-java

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

Patch to see if a Language is translatable #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I was having issues with certain languages not being translatable, so after 
looking through the official API documentation I figured the only way to 
determine if a language can be translated was to try it and see whether it 
works. There's no JSON call to determine if a language will work as far as I 
can tell, and I believe the JS API just has it hard-coded into the enum in 
basically the same way I did it.
Attached is the patch against src/com/google/api/translate/Language.java that 
adds isTranslatable().

Original issue reported on code.google.com by xenio...@gmail.com on 30 Jan 2011 at 12:11

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by rich.mid...@gmail.com on 1 Feb 2011 at 10:15

GoogleCodeExporter commented 8 years ago
When will this feature be added on official jar?

Original comment by ws.ben....@gmail.com on 20 Feb 2011 at 2:14

GoogleCodeExporter commented 8 years ago
Why there are so many languages on the list, and some of them can not be 
translated.

Original comment by ws.ben....@gmail.com on 20 Feb 2011 at 2:22

GoogleCodeExporter commented 8 years ago
Languages shouldn't be in the enum if they're not translatable - which other 
languages they translate to is a different matter, not all languages translate 
to all other languages.

Is this not the case?

Original comment by rich.mid...@gmail.com on 5 Nov 2011 at 5:34