TIEGlobalSettings.OnGetLanguageWord
Declaration
property OnGetLanguageWord: TIEGetLanguageWordEvent;
Description
Provides an alternative method to customize localization of ImageEn strings in
dialogs and
actions.
You can also set custom strings using
SetLanguageWord.
Note: To view changes to the UI you will need to call
UpdateLanguage
IEGlobalSettings().OnGetLanguageWord := MyGetLanguageWord;
// Customize OK and Cancel buttons
procedure TMainForm.MyGetLanguageWord(const msg: TMsgLanguageWords; var Word: WideString);
begin
case msg of
IEMSG_OK : Word := 'Yeah, dude!';
IEMSG_Cancel : Word := 'Nah...';
end;
end;
// Set language to Groot
procedure TMainForm.MyGetLanguageWord(const msg: TMsgLanguageWords; var Word: WideString);
begin
Word := 'I am Groot';
end;
See Also
◼GetLanguageWord
◼SetLanguageWord
◼MsgLanguage
◼UpdateLanguage