component palette: added resourcestrings

git-svn-id: trunk@9705 -
This commit is contained in:
mattias 2006-08-06 08:52:27 +00:00
parent 2fd847259b
commit 6fc60316d1
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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';