mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 17:59:32 +02:00
IDE: Show package licenses in GUI. Issue #26392, patch from Reinier Olislagers
git-svn-id: trunk@45726 -
This commit is contained in:
parent
3926c42a5f
commit
8c19132587
@ -4164,6 +4164,7 @@ resourcestring
|
||||
+'installed, but the lpk file was not found';
|
||||
lisOIPDescriptionDescription = '%sDescription: %s';
|
||||
lisOIPDescription = 'Description: ';
|
||||
lisOIPLicenseLicense = '%sLicense: %s';
|
||||
lisOIPPleaseSelectAPackage = 'Please select a package';
|
||||
lisOIPPackageName = 'Package Name';
|
||||
lisOIPState = 'State';
|
||||
|
@ -720,6 +720,8 @@ begin
|
||||
if Info.Description<>'' then
|
||||
PkgInfoMemo.Lines.Add(lisPckOptsDescriptionAbstract
|
||||
+ ': ' + Info.Description);
|
||||
if Info.License<>'' then
|
||||
PkgInfoMemo.Lines.Add(lisPckOptsLicense + ': ' + Info.License);
|
||||
PkgInfoMemo.Lines.Add(Format(lisOIPFilename, [Info.LPKFilename]));
|
||||
|
||||
InfoStr:=lisCurrentState;
|
||||
|
@ -115,7 +115,10 @@ begin
|
||||
if CurPkg.Missing then
|
||||
HintStr:=Format(lisOIPThisPackageIsInstalledButTheLpkFileWasNotFound,[HintStr+LineEnding]);
|
||||
HintStr:=Format(lisOIPDescriptionDescription, [HintStr+LineEnding,
|
||||
BreakString(CurPkg.Description, 60, length(lisOIPDescription))]);
|
||||
BreakString(CurPkg.Description, 60, length(lisOIPDescription))]);
|
||||
if CurPkg.License<>'' then //use same indent as previous entry
|
||||
HintStr:=Format(lisOIPLicenseLicense, [HintStr+LineEnding,
|
||||
BreakString(CurPkg.License, 60, length(lisOIPDescription))]);
|
||||
HintMemo.Text:=HintStr;
|
||||
end;
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user