dll for google translate api V2

2,091 views
Skip to first unread message

rizparkar

unread,
Dec 7, 2011, 2:51:35 AM12/7/11
to Google AJAX APIs
do we have any option in google translate v2 to have .dll for .net
like we had in v1.

i.e
GoogleTranslateAPI.dll (http://code.google.com/p/google-api-for-
dotnet/)

i have my code in .net where i call this dll like below

Dim objTranslateClient As New Google.API.Translate.TranslateClient

strTranslatedText = objTranslateClient.Translate(strPrimaryText,
Google.API.Translate.Language.English,
Google.API.Translate.Language.Arabic,
Google.API.Translate.TranslateFormat.Html)

rizparkar

unread,
Dec 7, 2011, 5:27:26 AM12/7/11
to Google AJAX APIs
i tried something i found on net.. the snapshot is in d link below..
still m getting error..

can any one tell me what i am still missing??

link to image:

https://picasaweb.google.com/103245021075481735713/December72011?authkey=Gv1sRgCPbh3cjKiaK72gE#5683330126493179330

Jeremy Geerdes

unread,
Dec 7, 2011, 8:07:57 AM12/7/11
to google-ajax...@googlegroups.com
It's tough to tell what's going on from just your code snippet. It looks like the dll you found is not constructing the URL correctly, and so is receiving a 400 error code. You might check to make sure that the parameters are being properly URL-escaped. You might also make sure that the URL is properly formed. Generally speaking, these are the two most common problems that result in a 400 error. You could do this, I'm sure, by looking through the code for the dll if available, or else you'll probably need to sniff your network traffic (or check your firewall logs) to intercept and analyze requests made from your computer.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> google-ajax...@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-searc...@googlegroups.com
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

rizparkar

unread,
Dec 8, 2011, 1:39:01 AM12/8/11
to Google AJAX APIs
if the dll gonna construct URL then it will also give url too long
error if i use large string to translate..

is there any solution for this?

i want to translate 4000 char at one go.. how to do that??

Jeremy Geerdes

unread,
Dec 8, 2011, 7:59:56 AM12/8/11
to google-ajax...@googlegroups.com
Again, without being able to see the dll in question, it's tough to say if it will switch automatically to POST method requests when the string gets long enough.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

rizparkar

unread,
Dec 8, 2011, 11:24:07 PM12/8/11
to Google AJAX APIs
i am using translation dll provided here

http://code.google.com/p/google-api-dotnet-client/wiki/APIs#Translate_API

i have use the code provided in documentation(converted it to vb.net).

can u guide me to any working project sample link?

rizparkar

unread,
Dec 14, 2011, 1:26:49 AM12/14/11
to Google AJAX APIs

any news about .dll for the google translation v2?? do google have any
wcf service like bing translator (http://api.microsofttranslator.com/
V1/SOAP.svc) ??

my problem is about translating about 4000 characters at a time.. how
can i solve it??

Reply all
Reply to author
Forward
0 new messages