Changeset 1273

Show
Ignore:
Timestamp:
02/18/10 23:26:20 (5 months ago)
Author:
astrange
Message:

Reformat error strings in pref pane.
Also fix a typo causing some text to not be shown if there was an update.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/CPFPerianPrefPaneController.m

    r1270 r1273  
    484484                ret = YES; 
    485485        else 
    486                 [errorString appendFormat:NSLocalizedString(@"Extraction for %@ failed\n", @""), archivePath]; 
     486                [errorString appendFormat:NSLocalizedString(@"extraction of %@ failed\n", @""), [finalPath lastPathComponent]]; 
    487487         
    488488        unsetenv("SRC_ARCHIVE"); 
     
    521521                        ret = YES; 
    522522                else 
    523                         [errorString appendFormat:NSLocalizedString(@"Extraction for %@ failed\n", @""), archivePath]; 
    524         } 
    525         else 
    526                 [errorString appendFormat:NSLocalizedString(@"Authentication failed for extraction for %@\n", @""), archivePath]; 
     523                        [errorString appendFormat:NSLocalizedString(@"extraction of %@ failed\n", @""), [finalPath lastPathComponent]]; 
     524        } 
     525        else 
     526                [errorString appendFormat:NSLocalizedString(@"authentication failed while extracting %@\n", @""), [finalPath lastPathComponent]]; 
    527527                 
    528528        unsetenv("SRC_ARCHIVE"); 
     
    552552                        ret = YES; 
    553553                else 
    554                         [errorString appendFormat:NSLocalizedString(@"Removal for %@ failed\n", @""), componentPath]; 
    555         } 
    556         else 
    557                 [errorString appendFormat:NSLocalizedString(@"Authentication failed for removal for %@\n", @""), componentPath]; 
     554                        [errorString appendFormat:NSLocalizedString(@"removal of %@ failed\n", @""), [componentPath lastPathComponent]]; 
     555        } 
     556        else 
     557                [errorString appendFormat:NSLocalizedString(@"authentication failed while removing %@\n", @""), [componentPath lastPathComponent]]; 
    558558         
    559559        unsetenv("COMP_PATH"); 
     
    821821        } else if ([status isEqualToString:@"NoUpdates"]) { 
    822822                [textField_updateStatus setStringValue:@"There are no updates."]; 
    823         } else if ([status isEqualToString:@"NoUpdates"]) { 
     823        } else if ([status isEqualToString:@"YesUpdates"]) { 
    824824                [textField_updateStatus setStringValue:@"Updates found!"]; 
    825825        }