From: Giuseppe Bilotta Date: Tue, 20 Jan 2009 22:33:13 +0000 (+0100) Subject: bash plugin: refactor and localize help X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=84b3bce9fb4d7d3b64ce20964bb43564b1881ce0;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git bash plugin: refactor and localize help --- diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb index 2d52a5ec..a09c53ab 100644 --- a/data/rbot/plugins/bash.rb +++ b/data/rbot/plugins/bash.rb @@ -67,7 +67,11 @@ class BashPlugin < Plugin include REXML def help(plugin, topic="") - "bash => print a random quote from bash.org, bash quote_id => print that quote id from bash.org, bash latest => print the latest quote from bash.org (currently broken, need to get josh@bash.org to fix the xml)" + [ + _("bash => print a random quote from bash.org"), + _("bash quote_id => print that quote id from bash.org"), + _("bash latest => print the latest quote from bash.org (currently broken, need to get josh@bash.org to fix the xml)") + ].join(", ") end def bash_filter(s)