Registering files when the application loads
If your application is designed to support more than one national language, you select the language file you want to use by registering your application's .mpr file. You register an .mpr file in a class script named loaded that goes in your application class. The script is as follows:
loaded
self abtRegisterExternalStrings.
loaded reads abtExternalizedStringBuildingInfo for the MPR file name and registers the .mpr file when your application loads into an image.
Tip icon
So VA Smalltalk recognizes an .mpr file for your application immediately after you add these scripts, evaluate the expression in loaded in the Script Editor. Thus, for AddressApplication, evaluate self abtRegisterExternalStrings. Otherwise, you must reload your application or evaluate AddressApplication abtRegisterExternalStrings to run loaded and register the .mpr file.
Last modified date: 05/14/2020