Some time ago, I posted here announcing the release of my JS wrapper for the 
Google Translate API v2. Today, I have pushed a major update to this library 
which does a great number of things:

adds support for .detect method. The language detection portion of the API was 
not available when the original version of the library was released. Support is 
now included, very much like it was with the v1 JS API.
adds support for .Languages enum. The Languages enum was not available on the 
API previously. Support is now available through the languages service, and the 
wrapper will pull a current version, populate the enum for you, and fire the 
languageEnumCompleteCallback function you provide. You can call 
window.google.language.refreshLanguageEnum at any time to obtain a fresh 
listing.
adds support for the google.* namespace. Previously, the wrapper used the 
window.jeremy.language namespace. While this has been maintained for backward 
compatibility, moving forward, it will migrate to window.google.language to 
make clear that this is not about me.
adds window.google.language.TranslateControl. The TranslateControl is an 
experimental control to provide a simple way to run translations of text input, 
textarea, individual html elements, and an entire html document. The control 
will automatically split long strings, etc., into strings that will work with 
the API.
adds support for query arrays. The Language API v2 supports the use of multiple 
q arguments, allowing you to run up to 128 translation queries per http 
request. This version of the wrapper also supports multiple q arguments. Simply 
provide an array of strings wherever you would have provided the plain string 
before.
reorganizes some code.
places configuration variables at the top of the script for easy access.
updates jTranslate.php to support everything discussed above.
opens a small hole in the space-time continuum.

Okay, so the last one isn't real, but all the others are. I would invite you to 
take a look, play with it, and let me know if you find any bugs. And as always, 
if you're interested in helping build and/or maintain the project, please don't 
hesitate to let me know! In particular, I would love for someone interested in 
writing documentation to take on that responsibility.

Happy coding!

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!

-- 
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