Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!stadler From: stadler@Apple.COM (Andy Stadler) Newsgroups: comp.sys.mac.hypercard Subject: Re: doMenu and languages Message-ID: <43441@apple.Apple.COM> Date: 30 Jul 90 22:22:26 GMT References: <1990Jul29.100039.5284@diku.dk> Organization: Apple Computer Inc, Cupertino, CA Lines: 38 In article <1990Jul29.100039.5284@diku.dk> klaus@diku.dk (Klaus Ole Kristiansen) writes: >What happens when a DoMenu commmand is given? > >One of the buttons in the TidBITS stack has > >doMenu "delete card" > >in its script. This actually works, even though there is no >"delete card" command in any of the menus of the Danish version >of hypercard. So it seems that the English command works in all >versions. If I were to write a stack, and one of the scripts >included > >doMenu "slet kort" > >would this work on foreign HC versions? Every version of HyperCard contains two complete copies of the menu strings: The localized strings (Danish in your case) and the English strings. When the doMenu command is issued, the local strings, and then the english strings, are searched. This makes the command work in either language. > >What about the delete card filter that has been discussed >intensively recently? If the stack script includes a handler > >on doMenu what > if what = "delete card" > ... >and I activate the "slet kort" command in the rediger menu, >what happens? > Unfortunately, this is a simple text compare, and doesn't have the benefit of the two lists or anything like that. So it may fail in international versions. --Andy stadler@apple.com