Unregistering files when the application unloads
The other scripts your application needs are removing and failedRemove. When your application unloads from an image, removing unregisters the .mpr file. failedRemove restores registration if an unloading is unsuccessful because instances of classes defined in your application still exist in the image. These methods are not needed to enable translation; though you need them to handle unregistering files when your application is unloaded.
Like the scripts mentioned previously in this chapter, removing goes in your application class and is a public class method. It reads as follows:
removing
self abtUnregisterExternalStrings.
Similarly, failedRemove is a public class method that goes in your application class. It provides:
failedRemove
self abtRegisterExternalStrings.
After you add the scripts described previously in this chapter, you can build an .mpr file and an editable translation file for your application.
Last modified date: 01/29/2015