From 50e309bc30a10158762b5cf528d67123462dc3a0 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 5 Jun 2017 18:59:30 +0200 Subject: =?UTF-8?q?Now=20that=20was=20some=20silly=20code=E2=80=A6=20(part?= =?UTF-8?q?=20of=20#2811)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPIndexesController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPIndexesController.m b/Source/SPIndexesController.m index debeaf30..3d30f698 100644 --- a/Source/SPIndexesController.m +++ b/Source/SPIndexesController.m @@ -264,12 +264,15 @@ static const NSString *SPNewIndexKeyBlockSize = @"IndexKeyBlockSize"; } } } + + NSString *info = hasForeignKey ? [NSString stringWithFormat:NSLocalizedString(@"The foreign key relationship '%@' has a dependency on this index. This relationship must be removed before the index can be deleted.\n\nAre you sure you want to continue to delete the relationship and the index? This action cannot be undone.", @"delete index and foreign key informative message"), constraintName] + : [NSString stringWithFormat:NSLocalizedString(@"Are you sure you want to delete the index '%@'? This action cannot be undone.", @"delete index informative message"), keyName]; NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Delete index '%@'?", @"delete index message"), keyName] defaultButton:NSLocalizedString(@"Delete", @"delete button") alternateButton:NSLocalizedString(@"Cancel", @"cancel button") otherButton:nil - informativeTextWithFormat:hasForeignKey ? NSLocalizedString(@"The foreign key relationship '%@' has a dependency on this index. This relationship must be removed before the index can be deleted.\n\nAre you sure you want to continue to delete the relationship and the index? This action cannot be undone.", @"delete index and foreign key informative message"), constraintName : NSLocalizedString(@"Are you sure you want to delete the index '%@'? This action cannot be undone.", @"delete index informative message"), keyName]; + informativeTextWithFormat:@"%@", info]; [alert setAlertStyle:NSCriticalAlertStyle]; -- cgit v1.2.3