Internationalisation

Rob Cozens rcozens at pon.net
Sat Jan 4 11:09:01 EST 2003


>Here's how Serendipity Library does it [see case loadMe]:
[snip]
>on loadSDBMessages

Igor, et al:

LoadSDBMessages is used by existing SDB Databases after the message 
files have been loaded into Serendipity Library.

Note: for this approach to work with standalones, the text must be 
updated each time the standalone opens.  SDB Utilities does:

on preopenStack
[snip]
   set the label of this stack to sdbMessage(sdbUtilitiesLabel)
   set the name of button id 1004 to sdbMessage(sdbFileMenu)
   set the text of button id 1004 to 
sdbMessage(sdbNewDBMenuItem)&return&sdbMessage(sdbOpenDBMenuItem)&return&"-"&return&sdbMessage(sdbBackupDatabaseMenuItem)&return&sdbMessage(sdbRestoreDatabaseMenuItem)&return&sdbMessage(sdbRebuildIndexMenuItem)&return&"-"&return&sdbMessage(sdbCompressFileMenuItem)&return&sdbMessage(sdbExpandFileMenuItem)&return&sdbMessage(sdbConvertFileMenuItem)&return&"-"&return&sdbMessage(sdbQuitMenuItem)&return
   set the name of button id 1052 to sdbMessage(sdbEditMenu)
   set the text of button id 1052 to sdbMessage(sdbChangePasswordsMenuItem)
   set the name of button id 1005 to sdbMessage(sdbHelpMenu) -- in 
case this works in a future version
   set the text of button id 1005 to 
sdbMessage(sdbHelpMenuItem)&return&"-"&return&sdbMessage(sdbAboutUtilitiesMenuItem)
[snip]
end preopenStack


-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



More information about the use-livecode mailing list