IDE: better error message

git-svn-id: trunk@35106 -
This commit is contained in:
mattias 2012-02-02 22:14:46 +00:00
parent 928ff120e9
commit 7f347aa744
2 changed files with 5 additions and 4 deletions

View File

@ -3184,6 +3184,8 @@ resourcestring
lisCodeTemplComment = 'Comment:';
lisCodeTemplATokenAlreadyExists = ' A token %s%s%s already exists! ';
lisCodeTemplError = 'Error';
lisUnableToFindTheLfmFileOfComponentClassNeededByUnit = 'Unable to find the '
+'lfm file of component class "%s".%sNeeded by unit:%s%s';
lisUnableToOpenDesignerTheClassDoesNotDescendFromADes = 'Unable to open '
+'designer.%sThe class %s does not descend from a designable class like '
+'TForm or TDataModule.';
@ -3191,8 +3193,6 @@ resourcestring
+'with .lfm file:%sThe unit %s%suses the unit %s%swhich contains the '
+'class %s,%sbut the .lfm file contains already another class.%sThere can '
+'only be one design class per unit.%sPlease move %s to another unit.';
lisUnableToFindTheLFMOfComponentClass = 'Unable to find the lfm file of '
+'component class %s%s%s.';
lisUnableToLoadTheComponentClassBecauseItDependsOnIts = 'Unable to load the '
+'component class %s%s%s, because it depends on itself.';
lisCancelLoadingThisComponent = 'Cancel loading this component';

View File

@ -7535,8 +7535,9 @@ begin
end;
// not found => tell the user
Result:=QuestionDlg(lisCodeTemplError, Format(
lisUnableToFindTheLFMOfComponentClass, ['"', AComponentClassName, '"']),
Result:=QuestionDlg(lisCodeTemplError,
Format(lisUnableToFindTheLfmFileOfComponentClassNeededByUnit, [
AComponentClassName, #13, #13, AnUnitInfo.Filename]),
mtError, [mrCancel, lisCancelLoadingThisComponent,
mrAbort, lisAbortWholeLoading,
mrIgnore, lisIgnoreUseTFormAsAncestor], 0);