mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 17:39:23 +02:00
IDE: resource strings
git-svn-id: trunk@30048 -
This commit is contained in:
parent
85e8f8b7a0
commit
36ea500f81
@ -2947,6 +2947,7 @@ resourcestring
|
||||
// codetools defines
|
||||
lisCodeToolsDefsCodeToolsDefinesPreview = 'CodeTools Defines Preview';
|
||||
lisCodeToolsDefsWriteError = 'Write error';
|
||||
lisErrorWritingFile = 'Error writing file "%s"';
|
||||
lisFPDocErrorWriting = 'Error writing "%s"%s%s';
|
||||
lisFPDocFPDocSyntaxError = 'FPDoc syntax error';
|
||||
lisFPDocThereIsASyntaxErrorInTheFpdocElement = 'There is a syntax error in '
|
||||
|
@ -7624,7 +7624,7 @@ begin
|
||||
AnUnitInfo:=AnUnitInfo.NextPartOfProject;
|
||||
end;
|
||||
|
||||
// check if compiler options contains paths of ObsoleteUnitPaths
|
||||
// check if compiler options contain paths of ObsoleteUnitPaths
|
||||
if ObsoleteUnitPaths<>'' then begin
|
||||
ProjUnitPaths:=AProject.CompilerOptions.OtherUnitFiles;
|
||||
p:=1;
|
||||
@ -7651,7 +7651,7 @@ begin
|
||||
AProject.CompilerOptions.OtherUnitFiles:=ProjUnitPaths;
|
||||
end;
|
||||
|
||||
// check if compiler options contains paths of ObsoleteIncPaths
|
||||
// check if compiler options contain paths of ObsoleteIncPaths
|
||||
if ObsoleteIncPaths<>'' then begin
|
||||
ProjIncPaths:=AProject.CompilerOptions.IncludePath;
|
||||
p:=1;
|
||||
|
@ -394,6 +394,7 @@ var
|
||||
SrcEdit.Selection:=AReplace;
|
||||
// count total replacements and adjust offsets
|
||||
aLineCount:=LineEndCount(AReplace,aLastLineLength);
|
||||
//debugln(['DoReplaceLine Replace="',dbgstr(AReplace),'" aLineCount=',aLineCount,' aLastLineLength=',aLastLineLength]);
|
||||
if aLineCount>0 then begin
|
||||
// replaced with multiple lines
|
||||
LastReplaceColOffset:=aLastLineLength+1-FoundEndPos.X;
|
||||
@ -463,8 +464,8 @@ var
|
||||
if (TheFileName<>'') then begin
|
||||
OriginalFile.Source:=NewText;
|
||||
if (not OriginalFile.SaveToFile(TheFileName)) then begin
|
||||
CurResult:=MessageDlg('Write error',
|
||||
'Error writing file "'+TheFileName+'"',
|
||||
CurResult:=MessageDlg(lisCodeToolsDefsWriteError,
|
||||
Format(lisErrorWritingFile, [TheFileName]),
|
||||
mtError,[mbCancel,mbAbort],0);
|
||||
if CurResult=mrAbort then DoAbort;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user