From: sishen Date: 2007-11-16T15:49:15+09:00 Subject: Re: [Ann] Google translate ruby client api 0.1 ------=_Part_25823_8700838.1195195757423 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline a good idea. I'll do it tonight, :) On Nov 16, 2007 8:10 AM, Konrad Meyer wrote: > Quoth sishen: > > 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. > > Very cool. Do you plan on adding a command-line tool as well? That would > make > it even easier to use at a terminal. If you need examples, you could look > at > the (IMO) excellent metadata gem. > > Thanks, > -- > Konrad Meyer http://konrad.sobertillnoon.com/ > ------=_Part_25823_8700838.1195195757423--