Custom strings

delphi package - automated exception handling
Post Reply
Han312
Posts: 54
Joined: Mon Mar 14, 2016 3:49 pm

Custom strings

Post by Han312 »

Is it possible to change the custom strings while the project is running?
(if I want to support more than one language)
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Custom strings

Post by madshi »

Sure. There are some 3rd party translation tools which work with the way madExcept stores these custom strings (they are stored as Delphi TForm resources, so some 3rd party tools automatically pick these up). Or you can also do it manually, by changing the strings at runtime. See here:

http://help.madshi.net/MESettings.htm#I ... s.TitleBar

One thing that's more complicated is changing the strings of the assistants. You can do that by registering a callback for this variable, exported by madNVAssistant.pas:

Code: Select all

var OnAssistantCreate : procedure (const assistant: INVAssistant; const exception: IUnknown) = nil;
Then when your callback is called, you can browse through the forms and controls that belong to the assistant and change the texts, by using the INVAssistant interface (and child interfaces).
Post Reply