ImageEn, unit ieSettings

TIEGlobalSettings.SetLanguageWord

TIEGlobalSettings.SetLanguageWord

Declaration

procedure SetLanguageWord(const lang: TMsgLanguage; const msg: TMsgLanguageWords; const trans: string);
procedure SetLanguageWordA(const lang: TMsgLanguage; const msg: TMsgLanguageWords; const trans: AnsiString);

Description

Customize words that are displayed by ImageEn dialogs and actions

lang is the target language.
msg is the message to translate.
trans is the translated message.

Note:
◼If you are using ImageEn TActions, you should call UpdateLanguage after you finish setting your language words to force a UI update
◼You can also customize text using OnGetLanguageWord

Example

IEGlobalSettings().SetLanguageWord( msEnglish, IEMsg_OK, 'Yeah dude!' );
IEGlobalSettings().SetLanguageWord( msEnglish, IEMsg_Cancel, 'Nah...' );
IEGlobalSettings().UpdateLanguage();

See Also

◼OnGetLanguageWord
◼UpdateLanguage
◼GetLanguageWord
◼Language Support
◼MsgLanguage
◼CurrentMsgLanguage
◼GetLanguages