Prev: Is there an environment variable that gives me line number andfile?
Next: Compare 2 XML files with libxml-ruby
From: John Crepezzi on 18 Jun 2010 20:26 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 john.crepezzi(a)gmail.com @seejohnrun http://blog.johncrepezzi.com/archives/154 a @ http://codeforpeople.com/ -- |