From f703fea6fe02ffa69766d4b0c3fb3a09a1de7c6e Mon Sep 17 00:00:00 2001 From: dartraiden Date: Sun, 2 Jan 2022 02:33:48 +0300 Subject: HistoryPP: make error message translatable --- langpacks/english/Plugins/HistoryPP.txt | 1 + plugins/HistoryPlusPlus/HistoryForm.pas | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/langpacks/english/Plugins/HistoryPP.txt b/langpacks/english/Plugins/HistoryPP.txt index 69ddf0fd22..9b3de7b17b 100644 --- a/langpacks/english/Plugins/HistoryPP.txt +++ b/langpacks/english/Plugins/HistoryPP.txt @@ -343,3 +343,4 @@ [Incoming events] [Outgoing events] [Unused] +[Can not apply default toolbar configuration.] diff --git a/plugins/HistoryPlusPlus/HistoryForm.pas b/plugins/HistoryPlusPlus/HistoryForm.pas index c2c25f171f..403a62a62b 100644 --- a/plugins/HistoryPlusPlus/HistoryForm.pas +++ b/plugins/HistoryPlusPlus/HistoryForm.pas @@ -758,12 +758,7 @@ begin // show error if it doesn't work if tb_str = DEF_HISTORY_TOOLBAR then begin - // don't think it should be translated: - HppMessageBox(Handle, 'Can not apply default toolbar configuration.' + #10#13 + - 'Looks like it is an internal problem.' + #10#13 + #10#13 + - 'Download new History++ version or report the error to the authors' + #10#13 + - '(include plugin version number and file date in the report).' + #10#13 + #10#13 + - 'You can find authors'' emails and plugin website in the Options->Plugins page.', + HppMessageBox(Handle, TranslateW('Can not apply default toolbar configuration.'), TranslateW('Error'), MB_OK or MB_ICONERROR); Exit; end -- cgit v1.2.3