]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
translator: replace underscores with spaces when showing the translator
authorRaine Virta <rane@kapsi.fi>
Wed, 29 Apr 2009 21:53:57 +0000 (00:53 +0300)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 30 Apr 2009 11:46:49 +0000 (13:46 +0200)
Because "provided by google_translate" is ugly.

data/rbot/plugins/translator.rb

index 5f2dece7a942a8dcf014fd7e2568efaeeee6b55f..a8a31a5e11d90f03c2c09287d9bb826824fc7733 100644 (file)
@@ -353,7 +353,7 @@ class TranslatorPlugin < Plugin
         end
         m.reply(if params[:show_provider]
                   _('%{translation} (provided by %{translator})') %
-                    {:translation => translation, :translator => tname}
+                    {:translation => translation, :translator => tname.gsub("_", " ")}
                 else
                   translation
                 end)