aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-15 14:34:10 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-15 14:34:10 +0000
commit4984644813df727591c0d7d05fe3b505d67fd69d (patch)
treec05bef205b88dc5097c1b0b2ec80a6d96b657fcb /Source/TableDocument.m
parent74b67a8498f66488bebf52d197bcccc06cfd60ee (diff)
downloadsequelpro-4984644813df727591c0d7d05fe3b505d67fd69d.tar.gz
sequelpro-4984644813df727591c0d7d05fe3b505d67fd69d.tar.bz2
sequelpro-4984644813df727591c0d7d05fe3b505d67fd69d.zip
More updates related to issue #192.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index f292e691..80aac913 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -361,8 +361,8 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
[NSString stringWithFormat:NSLocalizedString(@"Connected to host, but unable to connect to database %@.\n\nBe sure that the database exists and that you have the necessary privileges.\n\nMySQL said: %@", @"message of panel when connection to db failed"), [databaseField stringValue], [mySQLConnection getLastErrorMessage]]);
} else if (code == 4) {
//no host is given
- NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil,
- @selector(sheetDidEnd:returnCode:contextInfo:), @"connect", NSLocalizedString(@"Please enter at least a host or socket.", @"message of panel when host/socket are missing"));
+ NSBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil,
+ @selector(sheetDidEnd:returnCode:contextInfo:), @"connect", NSLocalizedString(@"Insufficient details provided to establish a connection. Please provide at least a host or socket.", @"insufficient details informative message"));
}
}
@@ -469,7 +469,8 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
// test if host and socket are not nil
if ([host isEqualToString:@""] && [socket isEqualToString:@""]) {
- NSRunAlertPanel(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"Please enter at least a host or socket.", @"message of panel when host/socket are missing"), NSLocalizedString(@"OK", @"OK button"), nil, nil);
+ NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Insufficient details provided to establish a connection. Please provide at least a host or socket.", @"insufficient details informative message"), NSLocalizedString(@"OK", @"OK button"), nil, nil);
+
return;
}