[Rails] [ANN] easy_translate 0.1.1
== Name
easy_translate
== Synopsis
Ruby binding for Google Translate that supports Batch Translation.
Great, clean syntax for server-side translations.
http://github.com/seejohnrun/easy_translate
== Install
gem install easy_translate
== Why not rtranslate or rsay?
* 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 (see below)
== Examples
# => "Hola, mundo"
EasyTranslate.translate('Hello, world', :to => :spanish)
# 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
John Crepezzi
john.crepezzi@gmail.com
twitter: @seejohnrun
github: http://github.com/seejohnrun
Blog Introduction to easy_translate:
http://blog.johncrepezzi.com/archives/154
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home