aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-12 22:02:28 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-12 22:02:28 +0000
commit35e6aaac3997475a04984b09fac24ab02574ab27 (patch)
tree67aa8a2d77c06f36c4b5ef54226b018bfe97f80b /Source
parent3e7626a0d58b4acfdef0ab3e7d2110b44300fb36 (diff)
downloadsequelpro-35e6aaac3997475a04984b09fac24ab02574ab27.tar.gz
sequelpro-35e6aaac3997475a04984b09fac24ab02574ab27.tar.bz2
sequelpro-35e6aaac3997475a04984b09fac24ab02574ab27.zip
More dialog updates. Issue #192.
Diffstat (limited to 'Source')
-rw-r--r--Source/CustomQuery.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 5efc0ffc..579f8c3e 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -136,14 +136,14 @@ insert the choosen favorite query in the query textView or save query to favorit
id favorite;
while ( (favorite = [enumerator nextObject]) ) {
if ( [favorite isEqualToString:[textView string]] ) {
- NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil,
- NSLocalizedString(@"Query already exists in favorites.", @"message of panel when trying to save query which already exists in favorites"));
+ NSBeginAlertSheet(NSLocalizedString(@"Query already exists", @"query already exists message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil,
+ NSLocalizedString(@"The query you are adding to your favorites already exists.", @"query already exists informative message"));
return;
}
}
if ( [[textView string] isEqualToString:@""] ) {
- NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil,
- NSLocalizedString(@"Query can't be empty.", @"message of panel when trying to save empty query"));
+ NSBeginAlertSheet(NSLocalizedString(@"Empty query", @"empty query message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil,
+ NSLocalizedString(@"Cannot save an empty query.", @"empty query informative message"));
return;
}
[queryFavorites addObject:[NSString stringWithString:[textView string]]];
@@ -1047,7 +1047,8 @@ inserts the query in the textView and performs query
while ( (favorite = [enumerator nextObject]) ) {
if ( [favorite isEqualToString:anObject] && i != rowIndex) {
- NSRunAlertPanel(@"Error", @"Query already exists in favorites.", @"OK", nil, nil);
+ NSRunAlertPanel(@"Query already exists", @"The query you are adding to your favorites already exists.", @"OK", nil, nil);
+
//remove row if it was a (blank) new row or a copied row
if ( [[queryFavorites objectAtIndex:rowIndex] isEqualToString:@""] ||
[[queryFavorites objectAtIndex:rowIndex] isEqualToString:anObject] ) {