Depending on the version of the Translation API that you're using, you would do 
this a bit differently. If v1, you could call...

google.language.translate(string, srcLang, destLang, callbackMethod);

If v2, you can very easily build your own wrapper or use the one that I built, 
which is available here, to do the same:

http://code.google.com/p/gtranslate-api-v2-jsapi/

Hope that helps.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
[email protected]

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

On Mar 10, 2011, at 2:18 PM, DevonY wrote:

> HI,
> 
> What I am understanding about the googld translatino API is, that we
> setup the initial language of the web page and translate whole
> paragraphs to the target language at once.
> 
> What I am now wondering is translating several different languages in
> one page seperately or at once.
> 
> For example, in case that the page contains three paragraphs like
> below
> ---------------------------
> Good mornig.
> 
> 안녕하세요
> 
> 今日は
> ----------------------------
> I would like to translate those three sentences to English, Korean or
> Japanese.
> 
> 1 Is there somrthing like "function translate(initialLnaguage,
> targetLanguage)" ?
> 
> 2 Can I setup multiple initial languages?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google AJAX APIs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to