--nextPart1536078.2mBBbvj286 Content-Type: text/plain; charset tf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 <konrad / tylerc.org> 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 +4 -----END PGP SIGNATURE----- --nextPart1536078.2mBBbvj286--