[ANN] easy_translate-0.1.1

J

John Crepezzi

NAME

easy_translate


SYNOPSIS

Ruby binding for Google Translate that supports Batch Translation


URIS

http://github.com/seejohnrun/easy_translate


INSTALL

gem install easy_translate


WHY?

* Only Ruby binding to have support for Bulk Translations
* Only Ruby binding to offer POST support for long translations
* Supports every option in the API, especially API keys and user_ip,
which most Ruby bindings skip over.
* Has an extremely clean syntax


SAMPLES

EasyTranslate.translate('Hello, world', :to => :spanish) # => "Hola,
mundo"

# batch translation? => ["¡Hola", "Despedida"]
EasyTranslate.translate(['Hello', 'Goodbye'], :to => :spanish)

# what if you're even crazier? => [['¡Hola', 'Despedida'], ['Ciao',
'Addio']]
EasyTranslate.translate(['Hello', 'Goodbye'], :to => [:es, :it])

# translate something into every language in Google Translate
# with a single API call
EasyTranslate.translate('hello', :to => EasyTranslate.LANGUAGES.keys)


THANKS

(e-mail address removed)
@seejohnrun

http://blog.johncrepezzi.com/archives/154

a @ http://codeforpeople.com/
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top