IDE: fixed/improved message (layout, typos and i18n) shown when key conflict detected

git-svn-id: trunk@52599 -
This commit is contained in:
maxim 2016-07-02 14:27:40 +00:00
parent 3c5b1df94a
commit 74b73ae3c1
4 changed files with 9 additions and 10 deletions

View File

@ -1486,7 +1486,7 @@ function TIDECommand.GetCategoryAndName: string;
begin
Result:='"'+GetLocalizedName+'"';
if Category<>nil then
Result:=Result+' in "'+Category.Description+'"';
Result:='"'+Category.Description+'" -> '+Result;
end;
function TIDECommand.Execute(Sender: TObject): boolean;

View File

@ -823,10 +823,10 @@ begin
ConflictName:=GetCategoryAndName;
if ct=ctConflictKeyA then
ConflictName:=ConflictName
+' ('+KeyAndShiftStateToEditorKeyString(ShortcutA)
+' ('+KeyAndShiftStateToEditorKeyString(ShortcutA)+')'
else
ConflictName:=ConflictName
+' ('+KeyAndShiftStateToEditorKeyString(ShortcutB);
+' ('+KeyAndShiftStateToEditorKeyString(ShortcutB)+')';
case IDEMessageDialog(lisPEConflictFound,
Format(lisTheKeyIsAlreadyAssignedToRemoveTheOldAssignmentAnd,
[KeyAndShiftStateToKeyString(Key,Shift), LineEnding,

View File

@ -348,10 +348,10 @@ begin
ConflictName:=ConflictRelation.GetCategoryAndName;
if conflictType=ctConflictKeyA then
ConflictName:=ConflictName
+' ('+KeyAndShiftStateToEditorKeyString(ConflictRelation.ShortcutA)
+' ('+KeyAndShiftStateToEditorKeyString(ConflictRelation.ShortcutA)+')'
else
ConflictName:=ConflictName
+' ('+KeyAndShiftStateToEditorKeyString(ConflictRelation.ShortcutB);
+' ('+KeyAndShiftStateToEditorKeyString(ConflictRelation.ShortcutB)+')';
case IDEMessageDialog(lisPEConflictFound,
Format(lisTheKeyIsAlreadyAssignedToRemoveTheOldAssignmentAnd,
[KeyAndShiftStateToEditorKeyString(Key),

View File

@ -309,9 +309,9 @@ resourcestring
lisDiscardChangesAll = 'Discard all changes';
lisDoNotCloseTheProject = 'Do not close the project';
lisErrorSavingForm = 'Error saving form';
lisCannotSaveForm = 'Cannot save form %s';
lisCannotSaveForm = 'Cannot save form "%s".';
lisErrorOpeningForm = 'Error opening form';
lisCannotOpenForm = 'Cannot open form %s';
lisCannotOpenForm = 'Cannot open form "%s".';
lisConvert = 'Convert';
lisPLDShowGlobalLinksIn = 'Show global links in ';
lisPLDShowUserLinksIn = 'Show user links in ';
@ -2851,9 +2851,8 @@ resourcestring
srkmCommand = 'Command:';
lisKeyOr2KeySequence = 'Key (or 2 key sequence)';
lisTheKeyIsAlreadyAssignedToRemoveTheOldAssignmentAnd = 'The key %s'
+'%sis already assigned to %s.'
+'%sRemove the old assignment and assign the key to the new function'
+'%s%s?';
+' is already assigned to %s%s.'
+'%s%sRemove the old assignment and assign the key to the new function %s?';
lisAlternativeKeyOr2KeySequence = 'Alternative key (or 2 key sequence)';
srkmConflic = 'Conflict ';
lisThereAreNoConflictingKeys = 'There are no conflicting keys.';