fixed showing localized name in keymapping

git-svn-id: trunk@7873 -
This commit is contained in:
mattias 2005-10-01 09:25:29 +00:00
parent ca1dcc5bcd
commit 0187330ac0
3 changed files with 5 additions and 3 deletions

View File

@ -3319,7 +3319,7 @@ var
begin
with KeyRelation do
begin
Result := copy(EditorCommandLocalizedName(Command, Name), 1, 37);
Result := copy(LocalizedName, 1, 40);
if length(Result) < 37 then
begin
SetLength(s, (37 - length(Result)));

View File

@ -2225,7 +2225,9 @@ end;
function TKeyCommandRelation.GetLocalizedName: string;
begin
Result:=EditorCommandLocalizedName(Command,Name);
Result:=inherited GetLocalizedName;
if Result='' then
Result:=EditorCommandLocalizedName(Command,Name);
end;
{ TKeyCommandRelationList }

View File

@ -139,7 +139,7 @@ type
FCategory: TIDECommandCategory;
FCommand: word;
FLocalizedName: string;
FName: String;
FName: String;
FShortcutA: TIDEShortCut;
FShortcutB: TIDEShortCut;
protected