summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2007-11-18 09:50:57 +0000
committerYaohan Chen <yaohan.chen@gmail.com>2007-11-18 09:50:57 +0000
commit8309083a1a60ba8ca7cbda5ae6b1278251dea608 (patch)
tree822511441e9bad398e0698d4f131f29d67d883d5
parentb6f846703b5e348a2cb22839ef1f6101b965da81 (diff)
translator.rb: improved help message from translators
-rw-r--r--data/rbot/plugins/translator.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb
index 2bda65cf..6bd4dc22 100644
--- a/data/rbot/plugins/translator.rb
+++ b/data/rbot/plugins/translator.rb
@@ -295,7 +295,8 @@ class TranslatorPlugin < Plugin
def help(plugin, topic=nil)
if @translators.has_key?(plugin)
translator = @translators[plugin]
- _('%{info}, supported directions of translation: %{directions}') % {
+ _('%{translator} <from> <to> <phrase> => Look up phrase using %{info}, supported from -> to languages: %{directions}') % {
+ :translator => plugin,
:info => translator.class::INFO,
:directions => translator.directions.map do |source, targets|
_('%{source} -> %{targets}') %