mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 06:22:30 +02:00
IDE: package editor: resourcestrings
git-svn-id: trunk@45563 -
This commit is contained in:
parent
f80cce26fe
commit
e4f8f403e7
@ -92,6 +92,9 @@ resourcestring
|
|||||||
lisRedo = 'Redo';
|
lisRedo = 'Redo';
|
||||||
lisCut = 'Cut';
|
lisCut = 'Cut';
|
||||||
lisCopy = 'Copy';
|
lisCopy = 'Copy';
|
||||||
|
lisMoveFiles2 = 'Move files?';
|
||||||
|
lisMoveFileSFromPackageToTheDirectoryOfPackage = 'Move %s file(s) from '
|
||||||
|
+'package %s to the directory%s%s%sof package %s.';
|
||||||
lisPaste = 'Paste';
|
lisPaste = 'Paste';
|
||||||
lisDown = 'Down';
|
lisDown = 'Down';
|
||||||
lisUp = 'Up';
|
lisUp = 'Up';
|
||||||
@ -2223,6 +2226,9 @@ resourcestring
|
|||||||
lisSAMUnableToShowAbstractMethodsOfTheCurrentClassBecaus = 'Unable to show '
|
lisSAMUnableToShowAbstractMethodsOfTheCurrentClassBecaus = 'Unable to show '
|
||||||
+'abstract methods of the current class, because';
|
+'abstract methods of the current class, because';
|
||||||
lisCCOWarningCaption = 'Warning';
|
lisCCOWarningCaption = 'Warning';
|
||||||
|
lisFileNotFound5 = 'File not found:%s%s';
|
||||||
|
lisMovingTheseUnitsWillBreakTheirUsesSectionsSeeMessa = 'Moving these units '
|
||||||
|
+'will break their uses sections. See Messages window for details.';
|
||||||
lisImportant = 'Important';
|
lisImportant = 'Important';
|
||||||
lisMB = '%s MB';
|
lisMB = '%s MB';
|
||||||
lisKB = '%s KB';
|
lisKB = '%s KB';
|
||||||
@ -4247,7 +4253,36 @@ resourcestring
|
|||||||
lisPETheFileIsCurrentlyNotInTheIncludePathOfThePackageA = 'The file "%s" is '
|
lisPETheFileIsCurrentlyNotInTheIncludePathOfThePackageA = 'The file "%s" is '
|
||||||
+'currently not in the include path of the package.%sAdd "%s" to the '
|
+'currently not in the include path of the package.%sAdd "%s" to the '
|
||||||
+'include path?';
|
+'include path?';
|
||||||
|
lisExtendUnitPath2 = 'Extend Unit Path?';
|
||||||
|
lisExtendUnitSearchPathOfPackageWith = 'Extend unit search path of package "'
|
||||||
|
+'%s" with"%s"?';
|
||||||
|
lisExtendIncludePath = 'Extend Include Path?';
|
||||||
|
lisExtendIncludeFileSearchPathOfPackageWith = 'Extend include file search '
|
||||||
|
+'path of package "%s" with"%s"?';
|
||||||
|
lisConflictDetected = 'Conflict detected';
|
||||||
|
lisThereIsAlreadyAFileInPackage =
|
||||||
|
'There is already a file%s%s%sin package %s';
|
||||||
|
lisDuplicateUnit = 'Duplicate Unit';
|
||||||
|
lisThereIsAlreadyAUnitInPackageOldNewYouHaveToMakeSur = 'There is already a '
|
||||||
|
+'unit "%s" in package %s%sOld: %s%sNew: %s%sYou have to make sure that '
|
||||||
|
+'the unit search path of the package contains only one of them.%s%'
|
||||||
|
+'sContinue?';
|
||||||
|
lisDuplicateFileName = 'Duplicate File Name';
|
||||||
|
lisThereIsAlreadyAFileInPackageOldNewContinue = 'There is already a file "%s'
|
||||||
|
+'" in package %s%sOld: %s%sNew: %s%s%sContinue?';
|
||||||
|
lisUnitNotFoundAtNewPosition = 'unit %s not found at new position "%s"';
|
||||||
|
lisUnitRequiresPackage = 'unit %s requires package %s';
|
||||||
|
lisDifferentUnitFoundAtNewPosition = 'different unit %s found at new '
|
||||||
|
+'position "%s"';
|
||||||
|
lisMoveFiles = 'Move Files';
|
||||||
|
lisUnitNotFound = 'unit %s not found';
|
||||||
|
lisTwoMovedFilesWillHaveTheSameFileNameInPackage = 'Two moved files will '
|
||||||
|
+'have the same file name:%s%s%s%s%sin package %s';
|
||||||
lisPkgEditRevertPackage = 'Revert package?';
|
lisPkgEditRevertPackage = 'Revert package?';
|
||||||
|
lisMoveOrCopyFiles = 'Move or Copy files?';
|
||||||
|
lisMoveOrCopyFileSFromPackageToTheDirectoryOfPackage = 'Move or copy %s file'
|
||||||
|
+'(s) from package %s to the directory%s%s%sof package %s.';
|
||||||
|
lisMove = 'Move';
|
||||||
lisPkgEditDoYouReallyWantToForgetAllChangesToPackageAnd = 'Do you really '
|
lisPkgEditDoYouReallyWantToForgetAllChangesToPackageAnd = 'Do you really '
|
||||||
+'want to forget all changes to package %s and reload it from file?';
|
+'want to forget all changes to package %s and reload it from file?';
|
||||||
lisNotAnInstallPackage = 'Not an install package';
|
lisNotAnInstallPackage = 'Not an install package';
|
||||||
|
@ -2915,9 +2915,9 @@ begin
|
|||||||
NewUnitPaths:=RemoveSearchPaths(NewUnitPaths,CurUnitPaths);
|
NewUnitPaths:=RemoveSearchPaths(NewUnitPaths,CurUnitPaths);
|
||||||
if NewUnitPaths<>'' then begin
|
if NewUnitPaths<>'' then begin
|
||||||
NewUnitPaths:=CreateRelativeSearchPath(NewUnitPaths,LazPackage.Directory);
|
NewUnitPaths:=CreateRelativeSearchPath(NewUnitPaths,LazPackage.Directory);
|
||||||
r:=IDEMessageDialog('Extend Unit Path?',
|
r:=IDEMessageDialog(lisExtendUnitPath2,
|
||||||
'Extend unit search path of package "'+LazPackage.Name+'" with'
|
Format(lisExtendUnitSearchPathOfPackageWith, [LazPackage.Name,
|
||||||
+'"'+NewUnitPaths+'"?',mtConfirmation,[mbYes,mbNo,mbCancel]);
|
NewUnitPaths]), mtConfirmation, [mbYes, mbNo, mbCancel]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: LazPackage.CompilerOptions.OtherUnitFiles:=
|
mrYes: LazPackage.CompilerOptions.OtherUnitFiles:=
|
||||||
MergeSearchPaths(LazPackage.CompilerOptions.OtherUnitFiles,NewUnitPaths);
|
MergeSearchPaths(LazPackage.CompilerOptions.OtherUnitFiles,NewUnitPaths);
|
||||||
@ -2937,9 +2937,9 @@ begin
|
|||||||
NewIncPaths:=RemoveSearchPaths(NewIncPaths,CurIncPaths);
|
NewIncPaths:=RemoveSearchPaths(NewIncPaths,CurIncPaths);
|
||||||
if NewIncPaths<>'' then begin
|
if NewIncPaths<>'' then begin
|
||||||
NewIncPaths:=CreateRelativeSearchPath(NewIncPaths,LazPackage.Directory);
|
NewIncPaths:=CreateRelativeSearchPath(NewIncPaths,LazPackage.Directory);
|
||||||
r:=IDEMessageDialog('Extend Include Path?',
|
r:=IDEMessageDialog(lisExtendIncludePath,
|
||||||
'Extend include file search path of package "'+LazPackage.Name+'" with'
|
Format(lisExtendIncludeFileSearchPathOfPackageWith, [LazPackage.Name,
|
||||||
+'"'+NewIncPaths+'"?',mtConfirmation,[mbYes,mbNo,mbCancel]);
|
NewIncPaths]), mtConfirmation, [mbYes, mbNo, mbCancel]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: LazPackage.CompilerOptions.IncludePath:=
|
mrYes: LazPackage.CompilerOptions.IncludePath:=
|
||||||
MergeSearchPaths(LazPackage.CompilerOptions.IncludePath,NewIncPaths);
|
MergeSearchPaths(LazPackage.CompilerOptions.IncludePath,NewIncPaths);
|
||||||
@ -3211,11 +3211,10 @@ var
|
|||||||
|
|
||||||
// check if two copied/moved files will get the same new file name
|
// check if two copied/moved files will get the same new file name
|
||||||
if NewFileToOldPkgFile.Contains(NewFilename) then begin
|
if NewFileToOldPkgFile.Contains(NewFilename) then begin
|
||||||
IDEMessageDialog('Conflict detected',
|
IDEMessageDialog(lisConflictDetected,
|
||||||
'Two moved files will have the same file name:'#13
|
Format(lisTwoMovedFilesWillHaveTheSameFileNameInPackage, [#13, PkgFile
|
||||||
+PkgFile.Filename+#13
|
.Filename, #13, TPkgFile(NewFileToOldPkgFile[NewFilename]).
|
||||||
+TPkgFile(NewFileToOldPkgFile[NewFilename]).Filename+#13
|
Filename, #13, LazPackage.Name]), mtError, [mbCancel]);
|
||||||
+'in package '+LazPackage.Name,mtError,[mbCancel]);
|
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
NewFileToOldPkgFile[NewFilename]:=PkgFile;
|
NewFileToOldPkgFile[NewFilename]:=PkgFile;
|
||||||
@ -3280,10 +3279,9 @@ var
|
|||||||
|
|
||||||
// check file does not exist
|
// check file does not exist
|
||||||
if FileExistsCached(NewFilename) then begin
|
if FileExistsCached(NewFilename) then begin
|
||||||
IDEMessageDialog('Conflict detected',
|
IDEMessageDialog(lisConflictDetected,
|
||||||
'There is already a file'#13
|
Format(lisThereIsAlreadyAFileInPackage, [#13, NewFilename, #13,
|
||||||
+NewFilename+#13
|
LazPackage.Name]), mtError, [mbCancel]);
|
||||||
+'in package '+LazPackage.Name,mtError,[mbCancel]);
|
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -3296,13 +3294,10 @@ var
|
|||||||
if (ConflictFile<>nil) and WarnUnitClash then begin
|
if (ConflictFile<>nil) and WarnUnitClash then begin
|
||||||
ShortFilename:=NewFilename;
|
ShortFilename:=NewFilename;
|
||||||
LazPackage.ShortenFilename(ShortFilename,true);
|
LazPackage.ShortenFilename(ShortFilename,true);
|
||||||
r:=IDEMessageDialog('Duplicate Unit',
|
r:=IDEMessageDialog(lisDuplicateUnit,
|
||||||
'There is already a unit "'+CurName+'" in package '+LazPackage.Name+#13
|
Format(lisThereIsAlreadyAUnitInPackageOldNewYouHaveToMakeSur, [
|
||||||
+'Old: '+ConflictFile.GetShortFilename(true)+#13
|
CurName, LazPackage.Name, #13, ConflictFile.GetShortFilename(
|
||||||
+'New: '+ShortFilename+#13
|
true), #13, ShortFilename, #13, #13, #13])
|
||||||
+'You have to make sure that the unit search path of the package contains only one of them.'#13
|
|
||||||
+#13
|
|
||||||
+'Continue?'
|
|
||||||
,mtWarning,[mbYes,mbYesToAll,mbCancel]);
|
,mtWarning,[mbYes,mbYesToAll,mbCancel]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: ;
|
mrYes: ;
|
||||||
@ -3321,12 +3316,10 @@ var
|
|||||||
continue;
|
continue;
|
||||||
ShortFilename:=NewFilename;
|
ShortFilename:=NewFilename;
|
||||||
LazPackage.ShortenFilename(ShortFilename,true);
|
LazPackage.ShortenFilename(ShortFilename,true);
|
||||||
r:=IDEMessageDialog('Duplicate File Name',
|
r:=IDEMessageDialog(lisDuplicateFileName,
|
||||||
'There is already a file "'+CurName+'" in package '+LazPackage.Name+#13
|
Format(lisThereIsAlreadyAFileInPackageOldNewContinue, [CurName,
|
||||||
+'Old: '+ConflictFile.GetShortFilename(true)+#13
|
LazPackage.Name, #13, ConflictFile.GetShortFilename(true), #13,
|
||||||
+'New: '+ShortFilename+#13
|
ShortFilename, #13, #13])
|
||||||
+#13
|
|
||||||
+'Continue?'
|
|
||||||
,mtWarning,[mbYes,mbYesToAll,mbCancel]);
|
,mtWarning,[mbYes,mbYesToAll,mbCancel]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: ;
|
mrYes: ;
|
||||||
@ -3400,12 +3393,12 @@ var
|
|||||||
// unit not found
|
// unit not found
|
||||||
// (that is ok, e.g. if the unit is used on another platform)
|
// (that is ok, e.g. if the unit is used on another platform)
|
||||||
// => only warn
|
// => only warn
|
||||||
Msg:='unit '+AnUnitName+' not found';
|
Msg:=Format(lisUnitNotFound, [AnUnitName]);
|
||||||
if not Tool.CleanPosToCaret(NamePos,CodePos) then continue;
|
if not Tool.CleanPosToCaret(NamePos,CodePos) then continue;
|
||||||
Result:=false;
|
Result:=false;
|
||||||
{$IFNDEF EnableOldExtTools}
|
{$IFNDEF EnableOldExtTools}
|
||||||
IDEMessagesWindow.AddCustomMessage(mluWarning,Msg,
|
IDEMessagesWindow.AddCustomMessage(mluWarning,Msg,
|
||||||
CodePos.Code.Filename,CodePos.Y,CodePos.X,'Move Files');
|
CodePos.Code.Filename, CodePos.Y, CodePos.X, lisMoveFiles);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
IDEMessagesWindow.AddMsg('Warning: '+Msg,'',-1);
|
IDEMessagesWindow.AddMsg('Warning: '+Msg,'',-1);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -3442,19 +3435,21 @@ var
|
|||||||
if NewUsedUnitFilename='' then begin
|
if NewUsedUnitFilename='' then begin
|
||||||
// at the new position the unit cannot be found
|
// at the new position the unit cannot be found
|
||||||
if PkgName='' then begin
|
if PkgName='' then begin
|
||||||
Msg:='unit '+AnUnitName+' not found at new position "'+NewUnitFilename+'"';
|
Msg:=Format(lisUnitNotFoundAtNewPosition, [AnUnitName, NewUnitFilename
|
||||||
|
]);
|
||||||
end else begin
|
end else begin
|
||||||
Msg:='unit '+AnUnitName+' requires package '+PkgName;
|
Msg:=Format(lisUnitRequiresPackage, [AnUnitName, PkgName]);
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
// a different unit will be used
|
// a different unit will be used
|
||||||
Msg:='different unit '+AnUnitName+' found at new position "'+NewUnitFilename+'"';
|
Msg:=Format(lisDifferentUnitFoundAtNewPosition, [AnUnitName,
|
||||||
|
NewUnitFilename]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result:=false;
|
Result:=false;
|
||||||
{$IFNDEF EnableOldExtTools}
|
{$IFNDEF EnableOldExtTools}
|
||||||
IDEMessagesWindow.AddCustomMessage(mluWarning,Msg,
|
IDEMessagesWindow.AddCustomMessage(mluWarning,Msg,
|
||||||
CodePos.Code.Filename,CodePos.Y,CodePos.X,'Move Files');
|
CodePos.Code.Filename, CodePos.Y, CodePos.X, lisMoveFiles);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
IDEMessagesWindow.AddMsg('Warning: '+Msg,'',-1);
|
IDEMessagesWindow.AddMsg('Warning: '+Msg,'',-1);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -3500,8 +3495,8 @@ var
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
end;
|
end;
|
||||||
if not Result then begin
|
if not Result then begin
|
||||||
if IDEMessageDialog('Warning',
|
if IDEMessageDialog(lisCCOWarningCaption,
|
||||||
'Moving these units will break their uses sections. See Messages window for details.',
|
lisMovingTheseUnitsWillBreakTheirUsesSectionsSeeMessa,
|
||||||
mtWarning,[mbIgnore,mbCancel])<>mrIgnore
|
mtWarning,[mbIgnore,mbCancel])<>mrIgnore
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
@ -3573,9 +3568,9 @@ var
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
if IDEMessageDialog('Warning',
|
if IDEMessageDialog(lisCCOWarningCaption,
|
||||||
'File not found:'#13
|
Format(lisFileNotFound5, [#13, OldFilename]), mtWarning, [mbIgnore,
|
||||||
+OldFilename,mtWarning,[mbIgnore,mbCancel])<>mrIgnore
|
mbCancel])<>mrIgnore
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
@ -3727,21 +3722,21 @@ begin
|
|||||||
|
|
||||||
// ask for confirmation
|
// ask for confirmation
|
||||||
if PkgFiles.Count=MoveFileCount then begin
|
if PkgFiles.Count=MoveFileCount then begin
|
||||||
MsgResult:=IDEQuestionDialog('Move or Copy files?',
|
MsgResult:=IDEQuestionDialog(lisMoveOrCopyFiles,
|
||||||
'Move or copy '+IntToStr(MoveFileCount)+' file(s) from package '+SrcPackage.Name+' to the directory'#13
|
Format(lisMoveOrCopyFileSFromPackageToTheDirectoryOfPackage, [IntToStr(
|
||||||
+TargetDirectory+#13
|
MoveFileCount), SrcPackage.Name, #13, TargetDirectory, #13, LazPackage
|
||||||
+'of package '+LazPackage.Name+'.',
|
.Name]),
|
||||||
mtConfirmation,[100,'Move',101,'Copy',mrCancel]);
|
mtConfirmation, [100, lisMove, 101, lisCopy, mrCancel]);
|
||||||
case MsgResult of
|
case MsgResult of
|
||||||
100: DeleteOld:=true;
|
100: DeleteOld:=true;
|
||||||
101: DeleteOld:=false;
|
101: DeleteOld:=false;
|
||||||
else exit;
|
else exit;
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
if IDEMessageDialog('Move files?',
|
if IDEMessageDialog(lisMoveFiles2,
|
||||||
'Move '+IntToStr(MoveFileCount)+' file(s) from package '+SrcPackage.Name+' to the directory'#13
|
Format(lisMoveFileSFromPackageToTheDirectoryOfPackage, [IntToStr(
|
||||||
+TargetDirectory+#13
|
MoveFileCount), SrcPackage.Name, #13, TargetDirectory, #13, LazPackage
|
||||||
+'of package '+LazPackage.Name+'.',
|
.Name]),
|
||||||
mtConfirmation,[mbOk,mbCancel])<>mrOK
|
mtConfirmation,[mbOk,mbCancel])<>mrOK
|
||||||
then exit;
|
then exit;
|
||||||
DeleteOld:=true;
|
DeleteOld:=true;
|
||||||
|
Loading…
Reference in New Issue
Block a user