Author Topic: XTranzlator  (Read 3898 times)

0 Members and 1 Guest are viewing this topic.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
XTranzlator
« 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
« Last Edit: September 07, 2011, 09:53:28 pm by jkag »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: XTranzlator
« Reply #1 on: August 30, 2011, 01:15:04 am »
Sounds cool. :D

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: XTranzlator
« Reply #2 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 :(

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: XTranzlator
« Reply #3 on: August 30, 2011, 03:29:57 am »
Major update: Now using BingAPI

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: XTranzlator
« Reply #4 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)

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: XTranzlator
« Reply #5 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 :/
« Last Edit: August 31, 2011, 05:21:02 pm by jkag »

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: XTranzlator
« Reply #6 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 :(