mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 21:19:35 +01:00
IDE: fixed/improved message (layout, typos and i18n) shown when key conflict detected
git-svn-id: trunk@52599 -
This commit is contained in:
parent
3c5b1df94a
commit
74b73ae3c1
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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.';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user