LMD DialogPack allows for two other different ways to localising the string contents.
Replace with resource strings
Use this method if you want to replace the existing resource strings with other resource strings that you have defined. This method would be most useful when you don't want to replace all resource strings used with LMD DialogPack.
To change the localisable resource strings at runtime using the following methods from the JSDialogStrs unit.
Replace with strings
Use this method if you want to replace the used resource strings with regular strings. This method is most useful when using an alternate way to localising an application (such as using dxGetText which is based on GNU GetText). To first use this method you must call the JSDialogUseResourceStrings method in the JSDialogStrs unit and pass it False.
Reset Resources
You can reset the resource strings used by LMD DialogPack at any time by calling the InitializeResourceStrings method from JSDialogStrs. Alternatively, when you call the JSDialogUseResourceStrings method, the resources used get reset back to their defaults.
An example of the "Replace with strings" method is contained in the String Localisation demo in the TJSDialog category of Demo Browser.
An example of the "Replace with resource strings" method is contained in the Main Demo Application on the Localisation tab.
Copyright © 2013 by LMD Innovative. All rights reserved.
|
What do you think about this topic? Send feedback!
|