Google Translation API for Ruby

Posted by root Sun, 27 Jul 2008 11:47:00 GMT

In essence (from bulgarian to japanese):

  agent = WWW::Mechanize.new
  agent.post("http://translate.google.com/translate_t", 
    "sl" => "bg", 
    "tl" => "ja", 
    "text" => "Здравей, свят!").search("#result_box").inner_html

results in こんにちは、世界!

Posted in  | Tags  | no comments

Comments

Comments are disabled