summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/translator.rb
AgeCommit message (Collapse)Author
2010-10-14translator: don't show providerRaine Virta
2010-09-23translator: stricter url mappingRaine Virta
2010-09-23translator: url translation through googleRaine Virta
2010-08-13translator: support both pre-1.0 and post-1.0 Mechanize namespacesGiuseppe Bilotta
2010-05-21translator: fix undefined variableYaohan Chen
Fix an error in commit 027b6965f5abf5d05a95 which causes @lang_list to be undefined but used in BabelFish.
2010-05-21translator: connect to sites only when necessaryYaohan Chen
Previously the translation services in the plugin would connect to their respective websites on initialize. Now they will only do this when the first time they are used. WorldLingo still connects on initialialize in order to list the supported language pairs, but the Mechanize object is not saved here, so the connection should be closed after initialize, and only reopened if translation by WorldLingo is requested later. Previously the services are assumed to fail if they raise any Exception in initialize, and in that case the service is disabled, and its command as well as the help translate [failed] commands state this. Now this exception catch is done for any do_translate method call.
2010-04-16translator: additional help for google translate auto-detect failureRaine Virta
When translate command is used without source language, "auto" as source language is assumed. It means that google translator is used and we let google figure out what the source language is. Problem is that the google translator will fail if the system that the bot is running on does not have the json gem installed. This commit addresses that problem by showing more informative error message instead of a weird "none of the translators supports auto to en translation".
2010-04-16translator: show info about failed translators in helpRaine Virta
2010-04-16translator: decode html entities on google_translateRaine Virta
2009-11-30When a translator fails to initialize, map its command to respond the reasonYaohan Chen
2009-11-30Simplify support for using "auto" to detect source languageYaohan Chen
When "auto" is used as source language, Google Translate detects the source language. However there is no need to hardcode Google Translate as the only translator supporting "auto". If another translator supports language detection, we can add "auto" to its supported source languages. If no translator in default_list supports translating from "auto", the existing code already responds with a message saying so.
2009-11-30translator: use google's RESTful interface for google_translateRaine Virta
2009-11-30translator: fix random bug caused by undefined variablesRaine Virta
2009-04-30translator: fix sentences not working with omitted language parametersRaine Virta
2009-04-30translator: replace underscores with spaces when showing the translatorRaine Virta
Because "provided by google_translate" is ugly.
2009-04-30remove fish.rb and map translate in translator.rbRaine Virta
Translator plugin supports babelfish, and getting rid of this plugin allows us to use ´translate´ command for better purposes.
2009-04-30translator: make source language optionalRaine Virta
In which case we use Google translate's source language auto-detection feature.
2009-04-30translator: make destination language optionalRaine Virta
2009-02-19remove whitespaceRaine Virta
2009-02-17translator: fix BabelfishTranslatorRaine Virta
2009-02-17translator: fix NiftyTranslatorRaine Virta
2009-02-17translator: use *_with(:attribute => value) syntax to find elementsRaine Virta
The way objects are currently searched inside Mechanize objects is deprecated in WWW::Mechanize version 0.9.0, so we switch to the preferred syntax.
2009-02-17translator: update GoogleTranslator for changes in their web interfaceRaine Virta
2007-11-18translator.rb: improved help message from translatorsYaohan Chen
2007-11-14translator.rb: use "help <translator>" instead of "help translator ↵Yaohan Chen
<translator>" to show translator information
2007-11-05translator.rb: display translation provider when it's chosen automaticallyYaohan Chen
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-09-11* (plugins/fish,translator) long-running actions made threaded to avoid blockingDmitry Kim
2007-09-11translator plugin: catch all exceptions when trying to initialize translatorsGiuseppe Bilotta
The most significant exception that wasn't catched was LoadError, so that a failing require 'mechanize' would cause the whole plugin from failing to load, instead of just disabling the translators depending on WWW::Mechanize
2007-08-15+ translator.rb: added 'translator' command which automatically picks a ↵Yaohan Chen
translator for given language pair
2007-08-11* translator.rb: use Irc::Utils.botYaohan Chen
2007-08-11translator.rb:Yaohan Chen
+ added WorldLingo translator + display translator information in help messages * refactoring of error handling code * updated messages
2007-08-10* (plugins/translator) fixed a diagnostic messageDmitry Kim
2007-08-10* translator.rb: corrected naming of BabelfishTranslator#do_translate methodYaohan Chen
2007-08-10+ added a translator pluginYaohan Chen
* updated messages