From 8309083a1a60ba8ca7cbda5ae6b1278251dea608 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Sun, 18 Nov 2007 09:50:57 +0000 Subject: [PATCH] translator.rb: improved help message from translators --- data/rbot/plugins/translator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} => 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}') % -- 2.39.5