diff options
author | Max <post@wickenrode.com> | 2017-06-05 18:59:30 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2017-06-05 18:59:30 +0200 |
commit | 50e309bc30a10158762b5cf528d67123462dc3a0 (patch) | |
tree | b9bb2851857dd63e407fc526d29d8446f339ecba | |
parent | c83f7b115e9cb41f7c92212434096515ac8e6909 (diff) | |
download | sequelpro-50e309bc30a10158762b5cf528d67123462dc3a0.tar.gz sequelpro-50e309bc30a10158762b5cf528d67123462dc3a0.tar.bz2 sequelpro-50e309bc30a10158762b5cf528d67123462dc3a0.zip |
Now that was some silly codeā¦ (part of #2811)
-rw-r--r-- | Source/SPIndexesController.m | 5 |
1 files changed, 4 insertions, 1 deletions
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]; |