Home

Awesome

XChat-Translator

A translator for xchat using Google Translate via YQL.

This script is based on the script by Young Ng. The original script can be found at:

http://code.google.com/p/gtranslatecmd/downloads/detail?name=translator.py

By default, the script translates everything to English (en) unless otherwise specified. This can be changed by changing the language code for DEFAULT_LANG on line 16.

COMMANDS

/TR target_language message - translates message into the language specified. This auto detects the source language. This is not threaded.

/TM source_language target_language message - translates message into the language specified. This is not threaded.

/ADDTR user_nick target_language source_language - adds the user to the watch list for automatic translations. If target_language is not specified, then the DEFAULT_LANG value will be used. If source_language is not specified, then language detection will be used.

/RMTR user_nick - removes user_nick from the watch list for automatic translations.

/LSUSERS - prints out all users on the watch list for automatic translations to the screen locally.

/LASTERROR - prints out the last error message to screen locally.

ASSIGNMENTS:

Chuong Ngo - working on adding logging to the script. The "logging" will output messages to the screen, depending on the log level used. The appropriate commands will also be added. Cleaning up the back end to accommodate future enhancments and prepare it for release at v1.0.

braind - reworking the UI.

BUGS:

TODO:

For version 1.0:

= DONE =

Further Development:

CHANGE LOG

v0.9

v0.8

v0.6

v0.3

LICENSE

Copyright (c) 2013 Chuong Ngo, karona75, briand

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.