whitefire00700 / google-api-translate-java

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

Webpage URL contents not converting from English to French #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just want to know how to convert a webpage URL into desired language
2. I tried with the simple translation api as but it not converting the 
webpage URL. 
3. Like i have given 
translatedText = Translate.execute("http://www.google.com", 
Language.ENGLISH, Language.FRENCH); 
It will only give the same URL and when you click on the URL 
http://www.google.com, it contents are not converting from english to 
French.

What is the expected output? What do you see instead?
webpage URL contents must be converted from eng. to french.

What version of the product are you using? On what operating system?
jdk 1.5.1 windows xp professional.

Please provide any additional information below. Want the webpage url 
contents must be translated through google translator API.

Original issue reported on code.google.com by maheshas...@gmail.com on 6 May 2010 at 10:40

Attachments:

GoogleCodeExporter commented 9 years ago
The API doesn't take a URL, it takes a String of text. If you want 
a web page translated you'll have to download it and then pass 
it to the API yourself.

Original comment by rich.mid...@gmail.com on 7 May 2010 at 6:32

GoogleCodeExporter commented 9 years ago
Then please let me know that how it is working in Google Translation. I have 
tried 
there and it is converting the webpage URL contents. then why not in translator 
API.Is there some other API used in Google Translation.Please let me know about 
this.
Please see below URL for this:

http://translate.google.co.in/translate?hl=en&sl=en&tl=fr&u=http%3A%2F%
2Fwww.yahoo.com%2F

Original comment by maheshas...@gmail.com on 8 May 2010 at 7:22

GoogleCodeExporter commented 9 years ago
It's just not implemented as a feature in this Java API. The webpage is totally 
separate and in no way have they been designed to mimic each other.

Original comment by rich.mid...@gmail.com on 8 May 2010 at 7:31