]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
bash plugin: refactor and localize help
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 20 Jan 2009 22:33:13 +0000 (23:33 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 20 Jan 2009 22:33:13 +0000 (23:33 +0100)
data/rbot/plugins/bash.rb

index 2d52a5ecd09b4d3bb8abb87b44fb3a89d7014c08..a09c53abdd13e5a893971618d0fe450431b2a374 100644 (file)
@@ -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)