From 6af9adb907461eb337c60dcfdb74afd88780d6c5 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Sun, 15 Jul 2007 21:35:12 +0000 Subject: gettextized two messages in azgame missed in the previous revision edited Japanese translation --- data/rbot/plugins/games/azgame.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb index 04efb810..f0640b59 100644 --- a/data/rbot/plugins/games/azgame.rb +++ b/data/rbot/plugins/games/azgame.rb @@ -66,12 +66,12 @@ class AzGame debug "Total score: #{t}" ret = Hash.new @tries.each { |k, a| - ret[k] = [t*a/n, "%d %s" % [a, a > 1 ? "tries" : "try"]] + ret[k] = [t*a/n, n_("%{count} try", "%{count} tries", a) % {:count => a}] } if @winner debug "replacing winner score of %d with %d" % [ret[@winner].first, t] tries = ret[@winner].last - ret[@winner] = [t, "winner, #{tries}"] + ret[@winner] = [t, _("winner, %{tries}") % {:tries => tries}] end return ret.sort_by { |h| h.last.first }.reverse end -- cgit v1.2.3