]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
ircbot: enable gettext on "restarting, back in..."
authorRaine Virta <rane@kapsi.fi>
Mon, 2 Mar 2009 02:07:53 +0000 (04:07 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 3 Mar 2009 19:52:11 +0000 (20:52 +0100)
lib/rbot/ircbot.rb

index 7a021fb58f94bfa012840fcc57b20c648dfe77df..6279cfe2b9fb3c7872ced17372613e9efa38c2fa 100644 (file)
@@ -1241,7 +1241,9 @@ class Bot
 
   # totally shutdown and respawn the bot
   def restart(message=nil)
-    message = "restarting, back in #{@config['server.reconnect_wait']}..." if (!message || message.empty?)
+    message = _("restarting, back in %{wait}...") % {
+      :wait => @config['server.reconnect_wait']
+    } if (!message || message.empty?)
     shutdown(message)
     sleep @config['server.reconnect_wait']
     begin