Skip to content
This repository

A few grammar fixes for error messages. #57

Open
wants to merge 1 commit into from

3 participants

Chris Faulkner Ben Evans Ricardo Otero
Chris Faulkner

No description provided.

Ricardo Otero

Much better! Merge this already! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 15, 2011
Chris Faulkner Less confusing error messages. a2afef7
This page is out of date. Refresh to see the latest.
2  AddCollectionController.m
@@ -40,7 +40,7 @@ - (IBAction)cancel:(id)sender {
40 40
 
41 41
 - (IBAction)add:(id)sender {
42 42
     if ([ [collectionname stringValue] length] == 0) {
43  
-        NSRunAlertPanel(@"Error", @"Collection name could not be empty", @"OK", nil, nil);
  43
+        NSRunAlertPanel(@"Error", @"Collection name can not be empty", @"OK", nil, nil);
44 44
         return;
45 45
     }
46 46
     NSArray *keys = [[NSArray alloc] initWithObjects:@"dbname", @"collectionname", nil];
8  AddConnectionController.m
@@ -175,19 +175,19 @@ - (BOOL)validateConnection
175 175
         return NO;
176 176
     }
177 177
     if ([[connectionInfo objectForKey:@"alias"] length]<3) {
178  
-        NSRunAlertPanel(@"Error", @"Connection name should not be less than 3 charaters", @"OK", nil, nil);
  178
+        NSRunAlertPanel(@"Error", @"Alias should not be less than 3 charaters", @"OK", nil, nil);
179 179
         return NO;
180 180
     }
181 181
     if ([connectionsArrayController checkDuplicate:[connectionInfo objectForKey:@"alias"]]) {
182  
-        NSRunAlertPanel(@"Error", @"Connection alias name has been existed!", @"OK", nil, nil);
  182
+        NSRunAlertPanel(@"Error", @"Alias already in use!", @"OK", nil, nil);
183 183
         return NO;
184 184
     }
185 185
     if ([usesshCheckBox state] == 1 && ([[connectionInfo objectForKey:@"bindaddress"] length] == 0 || [[connectionInfo objectForKey:@"sshhost"] length] == 0)) {
186  
-        NSRunAlertPanel(@"Error", @"Please full fill ssh information!", @"OK", nil, nil);
  186
+        NSRunAlertPanel(@"Error", @"Tunneling requires both Bind Address and SSH Host!", @"OK", nil, nil);
187 187
         return NO;
188 188
     }
189 189
     if ([usereplCheckBox state] == 1 && ([[connectionInfo objectForKey:@"servers"] length] == 0 || [[connectionInfo objectForKey:@"repl_name"] length] == 0)) {
190  
-        NSRunAlertPanel(@"Error", @"Please full fill replica-set information!", @"OK", nil, nil);
  190
+        NSRunAlertPanel(@"Error", @"Replica Set requires both Servers and Set Name!", @"OK", nil, nil);
191 191
         return NO;
192 192
     }
193 193
     return YES;
2  AddDBController.m
@@ -51,7 +51,7 @@ - (IBAction)cancel:(id)sender {
51 51
 
52 52
 - (IBAction)add:(id)sender {
53 53
     if ([ [dbname stringValue] length] == 0) {
54  
-        NSRunAlertPanel(@"Error", @"Database name could not be empty", @"OK", nil, nil);
  54
+        NSRunAlertPanel(@"Error", @"Database name can not be empty", @"OK", nil, nil);
55 55
         return;
56 56
     }
57 57
     NSArray *keys = [[NSArray alloc] initWithObjects:@"dbname", @"user", @"password", nil];
8  EditConnectionController.m
@@ -212,19 +212,19 @@ - (BOOL)validateConnection:(NSDictionary *)connectionInfo
212 212
         return NO;
213 213
     }
214 214
     if ([[connectionInfo objectForKey:@"alias"] length]<3) {
215  
-        NSRunAlertPanel(@"Error", @"Connection name should not be less than 3 charaters", @"OK", nil, nil);
  215
+        NSRunAlertPanel(@"Error", @"Alias should not be less than 3 charaters", @"OK", nil, nil);
216 216
         return NO;
217 217
     }
218 218
     if (![[connectionInfo objectForKey:@"alias"] isEqualToString:connection.alias] && [connectionsArrayController checkDuplicate:[connectionInfo objectForKey:@"alias"]]) {
219  
-        NSRunAlertPanel(@"Error", @"Connection alias name has been existed!", @"OK", nil, nil);
  219
+        NSRunAlertPanel(@"Error", @"Alias already in use!", @"OK", nil, nil);
220 220
         return NO;
221 221
     }
222 222
     if ([usesshCheckBox state] == 1 && ([[connectionInfo objectForKey:@"bindaddress"] length] == 0 || [[connectionInfo objectForKey:@"sshhost"] length] == 0)) {
223  
-        NSRunAlertPanel(@"Error", @"Please full fill ssh information!", @"OK", nil, nil);
  223
+        NSRunAlertPanel(@"Error", @"Tunneling requires both Bind Address and SSH Host!", @"OK", nil, nil);
224 224
         return NO;
225 225
     }
226 226
     if ([usereplCheckBox state] == 1 && ([[connectionInfo objectForKey:@"servers"] length] == 0 || [[connectionInfo objectForKey:@"repl_name"] length] == 0)) {
227  
-        NSRunAlertPanel(@"Error", @"Please full fill replica-set information!", @"OK", nil, nil);
  227
+        NSRunAlertPanel(@"Error", @"Replica Set requires both Servers and Set Name!", @"OK", nil, nil);
228 228
         return NO;
229 229
     }
230 230
     return YES;
2  ExportWindowController.mm
@@ -79,7 +79,7 @@ - (IBAction)export:(id)sender {
79 79
     [progressIndicator setDoubleValue:0];
80 80
     NSString *collection = [[NSString alloc] initWithString:[collectionTextField stringValue]];
81 81
     if (![collection isPresent]) {
82  
-        NSRunAlertPanel(@"Error", @"Collection name could not be empty!", @"OK", nil, nil);
  82
+        NSRunAlertPanel(@"Error", @"Collection name can not be empty!", @"OK", nil, nil);
83 83
         return;
84 84
     }
85 85
     NSString *tablename = [[NSString alloc] initWithString:[tablesPopUpButton titleOfSelectedItem]];
4  ImportWindowController.mm
@@ -79,11 +79,11 @@ - (IBAction)import:(id)sender {
79 79
     NSString *collection = [[NSString alloc] initWithString:[collectionTextField stringValue]];
80 80
     int chunkSize = [chunkSizeTextField intValue];
81 81
     if (![collection isPresent]) {
82  
-        NSRunAlertPanel(@"Error", @"Collection name could not be empty!", @"OK", nil, nil);
  82
+        NSRunAlertPanel(@"Error", @"Collection name can not be empty!", @"OK", nil, nil);
83 83
         return;
84 84
     }
85 85
     if (chunkSize == 0) {
86  
-        NSRunAlertPanel(@"Error", @"Chunk Size could not be 0!", @"OK", nil, nil);
  86
+        NSRunAlertPanel(@"Error", @"Chunk Size can not be 0!", @"OK", nil, nil);
87 87
         return;
88 88
     }
89 89
     NSString *tablename = [[NSString alloc] initWithString:[tablesPopUpButton titleOfSelectedItem]];
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.