From: Konrad Meyer Date: 2007-11-16T09:10:02+09:00 Subject: Re: [Ann] Google translate ruby client api 0.1 --nextPart1536078.2mBBbvj286 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth sishen: > http://sishen.lifegoo.com/?p=3D51 >=20 > 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, :) >=20 > *Install* >=20 > sudo gem install rtranslate >=20 > *Usage* >=20 > sishen@lifegoo:~$ irb -rubygems > irb(main):001:0> require 'rtranslate' > =3D> true > irb(main):002:0> $KCODE =3D 'u' > =3D> "u" > irb(main):003:0> result =3D Translate.t("china", Language::ENGLISH, > Language::CHINESE_SIMPLIFIED) > =3D> "=E4=B8=AD=E5=9B=BD" > irb(main):004:0> result =3D Translate.t("china", Language::ENGLISH, > Language::JAPANESE) > =3D> "=E4=B8=AD=E8=8F=AF=E4=BA=BA=E6=B0=91=E5=85=B1=E5=92=8C=E5=9B=BD" > irb(main):005:0> result =3D Translate.t("china", Language::ENGLISH, "zh-T= W") > =3D> "=E4=B8=AD=E5=9C=8B" >=20 > 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 ma= ke=20 it even easier to use at a terminal. If you need examples, you could look a= t=20 the (IMO) excellent metadata gem. Thanks, =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart1536078.2mBBbvj286 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHPN/VCHB0oCiR2cwRAlKwAJ415IfYyLFT636+8iT9YDqQKB1WoQCgmzpR 1uZXP6GWLRyyCzPrCiJ4ooM= =Tx+4 -----END PGP SIGNATURE----- --nextPart1536078.2mBBbvj286--