diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2007-07-15 21:35:12 +0000 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2007-07-15 21:35:12 +0000 |
commit | 6af9adb907461eb337c60dcfdb74afd88780d6c5 (patch) | |
tree | 82abff8f33899839c62bf377518f3c741e22fc9f /data/rbot | |
parent | 395e000927cc7e0caea5192ff90e7f1a33ed1e2e (diff) |
gettextized two messages in azgame missed in the previous revision
edited Japanese translation
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/games/azgame.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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
|