binary-lime
Joined: 30 May 2008 Posts: 3
|
Posted: Fri May 30, 2008 12:32 pm Post subject: Help with Google Language API / JS Arrays |
|
|
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! |
|