------art_26299_5215875.1195205388659
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Comand line tool is ok.

Now you can use rtranslate as below:

$rtranslate -f en -t zh-CN china

Get the gems from http://rtranslate.googlecode.com. Enjoy. :)

On Nov 16, 2007 2:49 PM, sishen <yedingding / gmail.com> wrote:

> a good idea. I'll do it tonight, :)
>
> On Nov 16, 2007 8:10 AM, Konrad Meyer <konrad / tylerc.org> wrote:
>
> > Quoth sishen:
> > > http://sishen.lifegoo.com/?pQ
> > >
> > > 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  ranslate.t("china", Language::ENGLISH,
> > > Language::CHINESE_SIMPLIFIED)
> > > "面柜"
> > > irb(main):004:0> result  ranslate.t("china", Language::ENGLISH,
> > > Language::JAPANESE)
> > > "面糙客瘫鼎下柜"
> > > irb(main):005:0> result  ranslate.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 <konrad / tylerc.org> http://konrad.sobertillnoon.com/
> >
>

------art_26299_5215875.1195205388659--