From 9334f660e49fa4d7aaaeea0ef4816060c64113ec Mon Sep 17 00:00:00 2001 From: maxim Date: Mon, 22 May 2017 23:08:26 +0000 Subject: [PATCH] Merged revision(s) 55044 #10feb7c68a from trunk: IDE: improved i18n in messages window, fixed some typos ........ git-svn-id: branches/fixes_1_8@55055 - --- ide/etquickfixes.pas | 3 ++- ide/lazarusidestrconsts.pas | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ide/etquickfixes.pas b/ide/etquickfixes.pas index 31edf7c7d5..4273e4954c 100644 --- a/ide/etquickfixes.pas +++ b/ide/etquickfixes.pas @@ -314,7 +314,8 @@ begin for i:=0 to Fixes.LineCount-1 do begin Msg:=Fixes.Lines[i]; if not IsApplicable(Msg,MsgID,Tool) then continue; - aCaption:='Hide message by inserting {$warn '+IntToStr(MsgID)+' off} to unit "'+ExtractFilename(Tool.MainFilename)+'"'; + aCaption:=Format(lisHideMessageByInsertingWarnOffToUnit, [IntToStr(MsgID), + ExtractFilename(Tool.MainFilename)]); Fixes.AddMenuItem(Self,Msg,aCaption); end; end; diff --git a/ide/lazarusidestrconsts.pas b/ide/lazarusidestrconsts.pas index a7170e18d9..3c732a96fe 100644 --- a/ide/lazarusidestrconsts.pas +++ b/ide/lazarusidestrconsts.pas @@ -6341,6 +6341,8 @@ resourcestring lisMultiplePack = ', multiple packages: '; lisQuickFixError = 'QuickFix error'; lisPositionOutsideOfSource = '%s (position outside of source)'; + lisHideMessageByInsertingWarnOffToUnit = 'Hide message by inserting {$warn %' + +'s off} to unit "%s"'; lisHideWithProjectOptionVm = 'Hide with project option (-vm%s)'; lisHideWithPackageOptionVm = 'Hide with package option (-vm%s)'; lisRemoveLocalVariable3 = 'Remove local variable "%s"';