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