mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 00:20:13 +02:00
Packager: fix a message text.
git-svn-id: trunk@32628 -
This commit is contained in:
parent
525b562ee9
commit
ebda97db9c
@ -3848,8 +3848,7 @@ resourcestring
|
||||
lisA2PTheUnitNameIsTheSameAsAnRegisteredComponent = 'The unit name %s%s%s '
|
||||
+'is the same as an registered component.%sUsing this can cause strange '
|
||||
+'error messages.';
|
||||
lisA2PFileAlreadyExistsInTheProject = 'File %s%s%s already exists in the '
|
||||
+'project.';
|
||||
lisA2PFileAlreadyExistsInThePackage = 'File %s%s%s already exists in the package.';
|
||||
lisA2PExistingFile = '%sExisting file: %s%s%s';
|
||||
lisA2PFileAlreadyExists = 'File already exists';
|
||||
lisA2PFileIsUsed = 'File is used';
|
||||
|
@ -287,7 +287,7 @@ begin
|
||||
if FilenameIsAbsolute(AFilename) then begin
|
||||
PkgFile:=LazPackage.FindPkgFile(AFilename,true,false);
|
||||
if PkgFile<>nil then begin
|
||||
Msg:=Format(lisA2PFileAlreadyExistsInTheProject, ['"', AFilename, '"']);
|
||||
Msg:=Format(lisA2PFileAlreadyExistsInThePackage, ['"', AFilename, '"']);
|
||||
if PkgFile.Filename<>AFilename then
|
||||
Msg:=Format(lisA2PExistingFile, [#13, '"', PkgFile.Filename, '"']);
|
||||
MessageDlg(lisA2PFileAlreadyExists, Msg, mtError, [mbCancel], 0);
|
||||
|
Loading…
Reference in New Issue
Block a user