My projects' main unit contains this:
Code: Select all
if AppLanguage <> '' then
begin
MESettings.ContinueBtnCaption := _('Continue...');
UseLanguage(AppLanguage);
TranslateComponent(self);
end;
Code: Select all
msgid "Continue..."
msgstr "Try to go on"
When AppLanguage='', the Continue button in mExc window on error shows "Continue!" (as it is set in the mExc Settings in Delphi IDE->madExcept Options->Custom strings).
Same happens, when AppLanguage='HU' and I call MESettings.Reload after TranslateComponent(self) the Captions are reverted back to captions set through Delphi IDE->madExcept Options->Custom strings and setting the captions through MESettings at runtime few lines above is ignored.
The translation App.PO/MO file should be OK as other parts of the project are translated correctly. Just the mExc texts remain in the default language as set in Custom strings...
What I'm doing wrong? How should I force mExc to load the translations from the MO file?