IDE: resourcestrings

git-svn-id: trunk@61464 -
This commit is contained in:
mattias 2019-06-24 13:38:37 +00:00
parent 6acb809a60
commit b4e6dfc86c
2 changed files with 11 additions and 5 deletions

View File

@ -1970,6 +1970,12 @@ resourcestring
dlgMsgWinColorUrgentHint = 'Hint';
dlgMsgWinColorUrgentNote = 'Note';
dlgMsgWinColorUrgentWarning = 'Warning';
lisPackageIsDesigntimeOnlySoItShouldOnlyBeCompiledInt = 'Package "%s" is '
+'designtime only, so it should only be compiled into the IDE, and not '
+'with the project settings.%sPlease use "Install" or "Tools / Build '
+'Lazarus" to build the IDE packages.';
lisCompileWithProjectSettings = 'Compile with project settings';
lisCompileAndDoNotAskAgain = 'Compile and do not ask again';
dlgMsgWinColorUrgentImportant = 'Important';
dlgMsgWinColorUrgentError = 'Error';
dlgMsgWinColorUrgentFatal = 'Fatal';

View File

@ -3183,11 +3183,11 @@ begin
if WarnIDEPkg and not FCompileDesignTimePkg
and (LazPackage.PackageType=lptDesignTime) then
begin
MsgResult:=IDEQuestionDialog('Warning',
'Package "'+LazPackage.Name+'" is designtime only, so it should only be compiled into the IDE, and not with the project settings.'#13
+'Please use "Install" or "Tools / Build Lazarus" to build the IDE packages.',
mtWarning,[mrYes,'Compile with project settings',
mrYesToAll,'Compile and do not ask again',mrCancel]);
MsgResult:=IDEQuestionDialog(dlgMsgWinColorUrgentWarning,
Format(lisPackageIsDesigntimeOnlySoItShouldOnlyBeCompiledInt, [
LazPackage.Name, #13]),
mtWarning, [mrYes, lisCompileWithProjectSettings,
mrYesToAll, lisCompileAndDoNotAskAgain, mrCancel]);
case MsgResult of
mrYes: ;
mrYesToAll: