]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* dictclient.rb: break help message into topics
authorYaohan Chen <yaohan.chen@gmail.com>
Sun, 7 Oct 2007 03:08:23 +0000 (03:08 +0000)
committerYaohan Chen <yaohan.chen@gmail.com>
Sun, 7 Oct 2007 03:08:23 +0000 (03:08 +0000)
data/rbot/plugins/dictclient.rb

index 2fcdf05a4222d39cf8ad2d877996b67f0342f97f..48bb7ed3d2652caaf3771f050775919d2e173c68 100644 (file)
@@ -181,7 +181,16 @@ class DictClientPlugin < Plugin
   end
     
   def help(plugin, topic='')
-    _("define <phrase> [from <database>] => Show definition of a phrase; match <phrase> [using <strategy>] [from <database>] => Show matching phrases; dictclient databases => List databases; dictclient strategies => List strategies")
+    case topic
+    when 'define'
+      _('define <phrase> [from <database>] => Show definition of a phrase')
+    when 'match'
+      _('match <phrase> [using <strategy>] [from <database>] => Show phrases matching the given pattern')
+    when 'server information'
+      _('dictclient databases => List databases; dictclient strategies => List strategies')
+    else
+      _('look up phrases on the configured DICT server. topics: define, match, server information')
+    end
   end
 end