mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* TkMsgCatalog.callback: bug fix (wrong number of argument)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6d27ddd289
commit
b841a6fce5
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Jul 18 16:14:29 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk/msgcat.rb (TkMsgCatalog.callback): bug fix
|
||||
( wrong number of argument )
|
||||
|
||||
Sun Jul 18 08:13:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* sprintf.c (rb_f_sprintf): remove extra sign digit.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue