diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-02-12 22:35:09 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-02-12 22:35:09 +0100 |
commit | 041ceb742df2076c93e3fb88fe7a06b5e9c79810 (patch) | |
tree | 795c00e546d2c5cc5c962936f0c121b5ce13bdd3 /data/rbot | |
parent | a5bb3b87831c566880c6f14569140cc81c807fe6 (diff) |
markov: localize strings
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/markov.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |