Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

A few grammar fixes for error messages. #57

Open
wants to merge 1 commit into from

3 participants

@faulkner

No description provided.

@rikas

Much better! Merge this already! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 16, 2011
  1. @faulkner
This page is out of date. Refresh to see the latest.
View
2  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];
View
8 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;
View
2  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];
View
8 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;
View
2  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]];
View
4 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]];
Something went wrong with that request. Please try again.