mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 12:12:47 +02:00
component palette: added resourcestrings
git-svn-id: trunk@9705 -
This commit is contained in:
parent
2fd847259b
commit
6fc60316d1
@ -184,7 +184,8 @@ begin
|
|||||||
OpenPackageMenuItem.Visible:=false;
|
OpenPackageMenuItem.Visible:=false;
|
||||||
OpenUnitMenuItem.Visible:=false;
|
OpenUnitMenuItem.Visible:=false;
|
||||||
end else begin
|
end else begin
|
||||||
OpenPackageMenuItem.Caption:='Open Package '+APackage.IDAsString;
|
OpenPackageMenuItem.Caption:=Format(lisCPOpenPackage, [APackage.IDAsString]
|
||||||
|
);
|
||||||
OpenPackageMenuItem.Visible:=true;
|
OpenPackageMenuItem.Visible:=true;
|
||||||
ShownFilename:=PkgComponent.PkgFile.Filename;
|
ShownFilename:=PkgComponent.PkgFile.Filename;
|
||||||
UnitFilename:=APackage.SubstitutePkgMacro(ShownFilename,true);
|
UnitFilename:=APackage.SubstitutePkgMacro(ShownFilename,true);
|
||||||
@ -195,7 +196,7 @@ begin
|
|||||||
if FileExists(UnitFilename) then
|
if FileExists(UnitFilename) then
|
||||||
UnitFilename:=ShownFilename;
|
UnitFilename:=ShownFilename;
|
||||||
end;
|
end;
|
||||||
OpenUnitMenuItem.Caption:='Open Unit '+ShownFilename;
|
OpenUnitMenuItem.Caption:=Format(lisCPOpenUnit, [ShownFilename]);
|
||||||
OpenUnitMenuItem.Visible:=true;
|
OpenUnitMenuItem.Visible:=true;
|
||||||
OpenUnitMenuItem.Enabled:=FileExists(UnitFilename);
|
OpenUnitMenuItem.Enabled:=FileExists(UnitFilename);
|
||||||
end;
|
end;
|
||||||
|
@ -2106,6 +2106,8 @@ resourcestring
|
|||||||
|
|
||||||
// component palette
|
// component palette
|
||||||
lisCompPalOpenPackage = 'Open package';
|
lisCompPalOpenPackage = 'Open package';
|
||||||
|
lisCPOpenPackage = 'Open Package %s';
|
||||||
|
lisCPOpenUnit = 'Open Unit %s';
|
||||||
lisCompPalOpenUnit = 'Open unit';
|
lisCompPalOpenUnit = 'Open unit';
|
||||||
lisCompPalFindComponent = 'Find component';
|
lisCompPalFindComponent = 'Find component';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user