From 041ceb742df2076c93e3fb88fe7a06b5e9c79810 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 12 Feb 2009 22:35:09 +0100 Subject: markov: localize strings --- data/rbot/plugins/markov.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/rbot/plugins/markov.rb') diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index 01856356..089d939d 100644 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -99,11 +99,11 @@ class MarkovPlugin < Plugin def status(m,params) if @bot.config['markov.enabled'] - reply = "markov is currently enabled, #{probability?}% chance of chipping in" + reply = _("markov is currently enabled, %{p}% chance of chipping in") % { :p => probability? } l = @learning_queue.length - reply << ", #{l} messages in queue" if l > 0 + reply << (_(", %{l} messages in queue") % {:l => l}) if l > 0 else - reply = "markov is currently disabled" + reply = _("markov is currently disabled") end m.reply reply end -- cgit v1.2.3