mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 20:40:56 +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';
|
+'installed, but the lpk file was not found';
|
||||||
lisOIPDescriptionDescription = '%sDescription: %s';
|
lisOIPDescriptionDescription = '%sDescription: %s';
|
||||||
lisOIPDescription = 'Description: ';
|
lisOIPDescription = 'Description: ';
|
||||||
|
lisOIPLicenseLicense = '%sLicense: %s';
|
||||||
lisOIPPleaseSelectAPackage = 'Please select a package';
|
lisOIPPleaseSelectAPackage = 'Please select a package';
|
||||||
lisOIPPackageName = 'Package Name';
|
lisOIPPackageName = 'Package Name';
|
||||||
lisOIPState = 'State';
|
lisOIPState = 'State';
|
||||||
|
@ -720,6 +720,8 @@ begin
|
|||||||
if Info.Description<>'' then
|
if Info.Description<>'' then
|
||||||
PkgInfoMemo.Lines.Add(lisPckOptsDescriptionAbstract
|
PkgInfoMemo.Lines.Add(lisPckOptsDescriptionAbstract
|
||||||
+ ': ' + Info.Description);
|
+ ': ' + Info.Description);
|
||||||
|
if Info.License<>'' then
|
||||||
|
PkgInfoMemo.Lines.Add(lisPckOptsLicense + ': ' + Info.License);
|
||||||
PkgInfoMemo.Lines.Add(Format(lisOIPFilename, [Info.LPKFilename]));
|
PkgInfoMemo.Lines.Add(Format(lisOIPFilename, [Info.LPKFilename]));
|
||||||
|
|
||||||
InfoStr:=lisCurrentState;
|
InfoStr:=lisCurrentState;
|
||||||
|
@ -116,6 +116,9 @@ begin
|
|||||||
HintStr:=Format(lisOIPThisPackageIsInstalledButTheLpkFileWasNotFound,[HintStr+LineEnding]);
|
HintStr:=Format(lisOIPThisPackageIsInstalledButTheLpkFileWasNotFound,[HintStr+LineEnding]);
|
||||||
HintStr:=Format(lisOIPDescriptionDescription, [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;
|
HintMemo.Text:=HintStr;
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
|
Loading…
Reference in New Issue
Block a user