From 97e23a0fb024c3d419ca937e878d439d1393409c Mon Sep 17 00:00:00 2001 From: nagai Date: Sun, 18 Jul 2004 07:26:44 +0000 Subject: * TkMsgCatalog.callback: bug fix (wrong number of argument) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tk/msgcat.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/tk') diff --git a/ext/tk/lib/tk/msgcat.rb b/ext/tk/lib/tk/msgcat.rb index 361b9a5de..34f828f76 100644 --- a/ext/tk/lib/tk/msgcat.rb +++ b/ext/tk/lib/tk/msgcat.rb @@ -50,7 +50,8 @@ class TkMsgCatalog < TkObject } EOL - def self.callback(namespace, locale, src_str) + def self.callback(namespace, locale, src_str, *args) + src_str = sprintf(src_str, *args) unless args.empty? cmd_tbl = TkMsgCatalog::UNKNOWN_CBTBL[TkCore::INTERP.__getip] cmd = cmd_tbl[namespace] cmd = cmd_tbl['::'] unless cmd # use global scope as interp default -- cgit