Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Help with Google Language API / JS Arrays



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
binary-lime



Joined: 30 May 2008
Posts: 3

PostPosted: Fri May 30, 2008 12:32 pm    Post subject: Help with Google Language API / JS Arrays Reply with quote

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!
Back to top
View user's profile Send private message
binary-lime



Joined: 30 May 2008
Posts: 3

PostPosted: Sat May 31, 2008 11:13 am    Post subject: Re: Help with Google Language API / JS Arrays Reply with quote

Sorted. Read this

http://www.wait-till-i.com/2008/04/08/my-wishlist-for-a-great-ajax-api/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap