diff --git a/AddCollectionController.m b/AddCollectionController.m index 2aa813c9..ae370c59 100644 --- a/AddCollectionController.m +++ b/AddCollectionController.m @@ -40,7 +40,7 @@ - (IBAction)cancel:(id)sender { - (IBAction)add:(id)sender { if ([ [collectionname stringValue] length] == 0) { - NSRunAlertPanel(@"Error", @"Collection name could not be empty", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Collection name can not be empty", @"OK", nil, nil); return; } NSArray *keys = [[NSArray alloc] initWithObjects:@"dbname", @"collectionname", nil]; diff --git a/AddConnectionController.m b/AddConnectionController.m index e14a19da..2aa00d5e 100644 --- a/AddConnectionController.m +++ b/AddConnectionController.m @@ -175,19 +175,19 @@ - (BOOL)validateConnection return NO; } if ([[connectionInfo objectForKey:@"alias"] length]<3) { - NSRunAlertPanel(@"Error", @"Connection name should not be less than 3 charaters", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Alias should not be less than 3 charaters", @"OK", nil, nil); return NO; } if ([connectionsArrayController checkDuplicate:[connectionInfo objectForKey:@"alias"]]) { - NSRunAlertPanel(@"Error", @"Connection alias name has been existed!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Alias already in use!", @"OK", nil, nil); return NO; } if ([usesshCheckBox state] == 1 && ([[connectionInfo objectForKey:@"bindaddress"] length] == 0 || [[connectionInfo objectForKey:@"sshhost"] length] == 0)) { - NSRunAlertPanel(@"Error", @"Please full fill ssh information!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Tunneling requires both Bind Address and SSH Host!", @"OK", nil, nil); return NO; } if ([usereplCheckBox state] == 1 && ([[connectionInfo objectForKey:@"servers"] length] == 0 || [[connectionInfo objectForKey:@"repl_name"] length] == 0)) { - NSRunAlertPanel(@"Error", @"Please full fill replica-set information!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Replica Set requires both Servers and Set Name!", @"OK", nil, nil); return NO; } return YES; diff --git a/AddDBController.m b/AddDBController.m index 7daeaf3a..014facb9 100644 --- a/AddDBController.m +++ b/AddDBController.m @@ -51,7 +51,7 @@ - (IBAction)cancel:(id)sender { - (IBAction)add:(id)sender { if ([ [dbname stringValue] length] == 0) { - NSRunAlertPanel(@"Error", @"Database name could not be empty", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Database name can not be empty", @"OK", nil, nil); return; } NSArray *keys = [[NSArray alloc] initWithObjects:@"dbname", @"user", @"password", nil]; diff --git a/EditConnectionController.m b/EditConnectionController.m index 9bb7188d..716c5fcf 100644 --- a/EditConnectionController.m +++ b/EditConnectionController.m @@ -212,19 +212,19 @@ - (BOOL)validateConnection:(NSDictionary *)connectionInfo return NO; } if ([[connectionInfo objectForKey:@"alias"] length]<3) { - NSRunAlertPanel(@"Error", @"Connection name should not be less than 3 charaters", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Alias should not be less than 3 charaters", @"OK", nil, nil); return NO; } if (![[connectionInfo objectForKey:@"alias"] isEqualToString:connection.alias] && [connectionsArrayController checkDuplicate:[connectionInfo objectForKey:@"alias"]]) { - NSRunAlertPanel(@"Error", @"Connection alias name has been existed!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Alias already in use!", @"OK", nil, nil); return NO; } if ([usesshCheckBox state] == 1 && ([[connectionInfo objectForKey:@"bindaddress"] length] == 0 || [[connectionInfo objectForKey:@"sshhost"] length] == 0)) { - NSRunAlertPanel(@"Error", @"Please full fill ssh information!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Tunneling requires both Bind Address and SSH Host!", @"OK", nil, nil); return NO; } if ([usereplCheckBox state] == 1 && ([[connectionInfo objectForKey:@"servers"] length] == 0 || [[connectionInfo objectForKey:@"repl_name"] length] == 0)) { - NSRunAlertPanel(@"Error", @"Please full fill replica-set information!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Replica Set requires both Servers and Set Name!", @"OK", nil, nil); return NO; } return YES; diff --git a/ExportWindowController.mm b/ExportWindowController.mm index ba35e409..1e6228ba 100644 --- a/ExportWindowController.mm +++ b/ExportWindowController.mm @@ -79,7 +79,7 @@ - (IBAction)export:(id)sender { [progressIndicator setDoubleValue:0]; NSString *collection = [[NSString alloc] initWithString:[collectionTextField stringValue]]; if (![collection isPresent]) { - NSRunAlertPanel(@"Error", @"Collection name could not be empty!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Collection name can not be empty!", @"OK", nil, nil); return; } NSString *tablename = [[NSString alloc] initWithString:[tablesPopUpButton titleOfSelectedItem]]; diff --git a/ImportWindowController.mm b/ImportWindowController.mm index fe9b2895..71e034be 100644 --- a/ImportWindowController.mm +++ b/ImportWindowController.mm @@ -79,11 +79,11 @@ - (IBAction)import:(id)sender { NSString *collection = [[NSString alloc] initWithString:[collectionTextField stringValue]]; int chunkSize = [chunkSizeTextField intValue]; if (![collection isPresent]) { - NSRunAlertPanel(@"Error", @"Collection name could not be empty!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Collection name can not be empty!", @"OK", nil, nil); return; } if (chunkSize == 0) { - NSRunAlertPanel(@"Error", @"Chunk Size could not be 0!", @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"Chunk Size can not be 0!", @"OK", nil, nil); return; } NSString *tablename = [[NSString alloc] initWithString:[tablesPopUpButton titleOfSelectedItem]];