It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Help with Google Language API / JS Arrays

Help with Google Language API / JS Arrays

Postby binary-lime on Fri May 30, 2008 11:32 am

Hi, as you may or may not be aware, the Google language API has a 500 character limit. This is no good when attempting to translate an entire page.

I have written some code to split() the page text into sentences, stored in an array. Each sentence from the array is then in turn sent to the Google API for translation before being printed to the screen.

All seems well, except the order in which the translated text appears on screen is not the order in which they were stored in the array!

Not sure whats going on. See http://development.asclarke.com/translate2.html

Any help appreciated.

Thanks!
binary-lime
 
Posts: 3
Joined: Fri May 30, 2008 11:27 am

Postby binary-lime on Sat May 31, 2008 10:13 am

binary-lime
 
Posts: 3
Joined: Fri May 30, 2008 11:27 am


Who is online

Users browsing this forum: No registered users and 3 guests