Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: XVicarious on August 29, 2011, 11:08:41 pm

Title: XTranzlator
Post by: XVicarious on August 29, 2011, 11:08:41 pm
NOTE: You need a Bing App ID, I am not going to provide mine so they don't think I'm just spamming it.

XTranzlator is a translation plugin for XChat.  It is written in Python, and its pretty neat (well I made it... So I think its neat).

XTranzlator translates the message you send, into another language.  For example if you are on #omnimaga-fr, and you send a message with my plugin, your message gets translated automatically to French.

The plugin uses Bing Translate API, and BingTrans.  For now please install BingTrans from https://github.com/bahn/bingtrans in the future there will be another version that has the API in it, but for now there isn't.  This gives people to install BingTrans to see what they can do with it in their own projects!

The plugin is here: http://xvicario.us/getfile.php?file=XTranzlator.py


EDIT: Google API giving me problems because Google made it pay only, those greedy bastards. Switched to BingAPI
Title: Re: XTranzlator
Post by: Juju on August 30, 2011, 01:15:04 am
Sounds cool. :D
Title: Re: XTranzlator
Post by: XVicarious on August 30, 2011, 02:19:04 am
Thanks Juju, as you know because you were there, the translating of incoming text does not quite work yet. I am getting a NoneType error :(
Title: Re: XTranzlator
Post by: XVicarious on August 30, 2011, 03:29:57 am
Major update: Now using BingAPI
Title: Re: XTranzlator
Post by: DJ Omnimaga on August 31, 2011, 03:56:58 pm
Hmm if I ever get X-Chat again, maybe this could be useful if I want to use #omnimaga-de at one point (unless it uses Google Translate, which apparently blows in German)
Title: Re: XTranzlator
Post by: XVicarious on August 31, 2011, 05:20:23 pm
Major update :D added a command to enable/disable and change languages.

Use the script i posted here, not at my website. That one doesn't have the proper things commented out. the things that don't work :/
Title: Re: XTranzlator
Post by: XVicarious on September 07, 2011, 05:05:51 pm
Another update on the project:

I am still working on trying to get it to translate other messages (the incoming) but having no luck so far.

Annndd... I am writing a module for Eeems' EeeZorBot (http://ourl.ca/11140) called EeeXTranzlate Lite.PHP this might take a little longer since I don't know as much of PHP as Python and there isn't an API for PHP that I really like, so I'll have to write my own :(