From: sishen Date: 2007-11-16T08:48:22+09:00 Subject: [Ann] Google translate ruby client api 0.1 ------=_Part_24944_29285055.1195170499850 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline http://sishen.lifegoo.com/?p=51 Hi, guys. I wrote a ruby client api fro google translate service, then i can get the answer directly from the terminal, instead of the browser. It's really convenient for me. Enjoy it, :) *Install* sudo gem install rtranslate *Usage* sishen@lifegoo:~$ irb -rubygems irb(main):001:0> require 'rtranslate' => true irb(main):002:0> $KCODE = 'u' => "u" irb(main):003:0> result = Translate.t("china", Language::ENGLISH, Language::CHINESE_SIMPLIFIED) => "中国" irb(main):004:0> result = Translate.t("china", Language::ENGLISH, Language::JAPANESE) => "中華人民共和国" irb(main):005:0> result = Translate.t("china", Language::ENGLISH, "zh-TW") => "中國" Really very easy to use, I think. And the source is hosting on http://rtranslate.googlecode.com. Enjoy it. ------=_Part_24944_29285055.1195170499850--