Cody/Dictionary: Add resource strings for context menu items

This commit is contained in:
n7800 2025-06-24 09:10:26 +05:00 committed by Maxim Ganetsky
parent 1e1a6a44e7
commit e240a8897b
2 changed files with 8 additions and 4 deletions

View File

@ -1054,10 +1054,10 @@ begin
Handled := not FindSelectedItem(Identifier, UnitFilename, GroupName, GroupFilename);
if Handled then exit;
UseMenuItem .Caption := 'Use ' + Identifier;
JumpMenuItem .Caption := 'Jump to ' + Identifier;
DeleteUnitMenuItem .Caption := 'Delete unit ' + ExtractFilename(UnitFilename);
DeletePackageMenuItem.Caption := 'Delete package ' + ExtractFilename(GroupFilename);
UseMenuItem .Caption := Format(crsContextUseIdentifier, [Identifier]);
JumpMenuItem .Caption := Format(crsContextJumpTo , [Identifier]);
DeleteUnitMenuItem .Caption := Format(crsContextDeleteUnit , [ExtractFilename(UnitFilename)]);
DeletePackageMenuItem.Caption := Format(crsContextDeletePackage, [ExtractFilename(GroupFilename)]);
end;
procedure TCodyIdentifiersDlg.StartsRadioButtonClick(Sender: TObject);

View File

@ -183,6 +183,10 @@ resourcestring
+'containing filter text';
crsUseIdentifier = '&Use identifier';
crsAndMoreIdentifiers = '... and %s more identifiers';
crsContextUseIdentifier = 'Use "%s"';
crsContextJumpTo = 'Jump to "%s"';
crsContextDeleteUnit = 'Delete unit "%s"';
crsContextDeletePackage = 'Delete package "%s"';
crsCodyIdentifierDictionary = 'Identifier Dictionary';
crsReallyDeleteTheUnitFromTheDatabaseNoteThisDoesNo = 'Really delete the '
+'unit from the database?%sNote: This does not change the source or any'