summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-03-02 04:07:53 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-03-03 20:52:11 +0100
commitd35f0c02e3662eb2d45cf5eb94000a9826dc7f70 (patch)
treedd070a15349614250260aa504515d5ca208b3faa /lib
parentda47a7edf9863ad42e575824a86ee7b39e568b68 (diff)
ircbot: enable gettext on "restarting, back in..."
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircbot.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 7a021fb5..6279cfe2 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -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