Ticket #37974: patch-MPActionLauncher.m.diff

File patch-MPActionLauncher.m.diff, 6.3 KB (added by IanWadham, 12 years ago)
  • MPActionLauncher.m

    old new  
    159159{
    160160        //The notification needs a title. We initialize an array containing the titles for each type of notification
    161161        NSString *growlTitles[GROWL_TYPES];
    162         growlTitles[GROWL_INSTALL] = [NSString stringWithString: @"Installation Completed"];
    163         growlTitles[GROWL_UNINSTALL] = [NSString stringWithString: @"Uninstall Completed"];
    164         growlTitles[GROWL_UPGRADE] = [NSString stringWithString: @"Upgrade Completed"];
    165         growlTitles[GROWL_SYNC] = [NSString stringWithString: @"Sync Completed"];
    166         growlTitles[GROWL_SELFUPDATE] = [NSString stringWithString: @"Selfupdate Completed"];
    167         growlTitles[GROWL_INSTALLFAILED] = [NSString stringWithString: @"Installation Failed"];
    168         growlTitles[GROWL_UNINSTALLFAILED] = [NSString stringWithString: @"Uninstall Failed"];
    169         growlTitles[GROWL_UPGRADEFAILED] = [NSString stringWithString: @"Upgrade Failed"];
    170         growlTitles[GROWL_SYNCFAILED] = [NSString stringWithString: @"Sync Failed"];
    171         growlTitles[GROWL_SELFUPDATEFAILED] = [NSString stringWithString: @"Selfupdate Failed"];
     162        growlTitles[GROWL_INSTALL] = @"Installation Completed";
     163        growlTitles[GROWL_UNINSTALL] = @"Uninstall Completed";
     164        growlTitles[GROWL_UPGRADE] = @"Upgrade Completed";
     165        growlTitles[GROWL_SYNC] = @"Sync Completed";
     166        growlTitles[GROWL_SELFUPDATE] = @"Selfupdate Completed";
     167        growlTitles[GROWL_INSTALLFAILED] = @"Installation Failed";
     168        growlTitles[GROWL_UNINSTALLFAILED] = @"Uninstall Failed";
     169        growlTitles[GROWL_UPGRADEFAILED] = @"Upgrade Failed";
     170        growlTitles[GROWL_SYNCFAILED] = @"Sync Failed";
     171        growlTitles[GROWL_SELFUPDATEFAILED] = @"Selfupdate Failed";
    172172
    173         growlTitles[GROWL_ALLOPS] = [NSString stringWithString: @"Operations Completed"];
    174         growlTitles[GROWL_ALLOPSFAILED] = [NSString stringWithString: @"Operations Failed"];
     173        growlTitles[GROWL_ALLOPS] = @"Operations Completed";
     174        growlTitles[GROWL_ALLOPSFAILED] = @"Operations Failed";
    175175
    176176        //The notification also needs a description. We initialize an array containing the descriptions for each type of notification
    177177        NSString *growlDescriptions[GROWL_TYPES];       
    178         growlDescriptions[GROWL_INSTALL] = [NSString stringWithString: @"Operation completed successfully"];
    179         growlDescriptions[GROWL_UNINSTALL] = [NSString stringWithString: @"Operation completed successfully"];
    180         growlDescriptions[GROWL_UPGRADE] = [NSString stringWithString: @"Operation completed successfully"];
    181         growlDescriptions[GROWL_SYNC] = [NSString stringWithString: @"Operation completed successfully"];
    182         growlDescriptions[GROWL_SELFUPDATE] = [NSString stringWithString: @"Operation completed successfully"];
    183         growlDescriptions[GROWL_INSTALLFAILED] = [NSString stringWithString: @"Operation Failed"];
    184         growlDescriptions[GROWL_UNINSTALLFAILED] = [NSString stringWithString: @"Operation Failed"];
    185         growlDescriptions[GROWL_UPGRADEFAILED] = [NSString stringWithString: @"Operation Failed"];
    186         growlDescriptions[GROWL_SYNCFAILED] = [NSString stringWithString: @"Operation Failed"];
    187         growlDescriptions[GROWL_SELFUPDATEFAILED] = [NSString stringWithString: @"Operation Failed"];
     178        growlDescriptions[GROWL_INSTALL] = @"Operation completed successfully";
     179        growlDescriptions[GROWL_UNINSTALL] = @"Operation completed successfully";
     180        growlDescriptions[GROWL_UPGRADE] = @"Operation completed successfully";
     181        growlDescriptions[GROWL_SYNC] = @"Operation completed successfully";
     182        growlDescriptions[GROWL_SELFUPDATE] = @"Operation completed successfully";
     183        growlDescriptions[GROWL_INSTALLFAILED] = @"Operation Failed";
     184        growlDescriptions[GROWL_UNINSTALLFAILED] = @"Operation Failed";
     185        growlDescriptions[GROWL_UPGRADEFAILED] = @"Operation Failed";
     186        growlDescriptions[GROWL_SYNCFAILED] = @"Operation Failed";
     187        growlDescriptions[GROWL_SELFUPDATEFAILED] = @"Operation Failed";
    188188
    189         growlDescriptions[GROWL_ALLOPS] = [NSString stringWithString: @"All Operations Completed Succesfully"];
    190         growlDescriptions[GROWL_ALLOPSFAILED] = [NSString stringWithString: @"Operations Failed"];
     189        growlDescriptions[GROWL_ALLOPS] = @"All Operations Completed Succesfully";
     190        growlDescriptions[GROWL_ALLOPSFAILED] = @"Operations Failed";
    191191
    192192        //And the notification also needs a name, which Growl uses to identify it. We initialize an array containing
    193193        //these names here
    194194        NSString *growlNotificationNames[GROWL_TYPES];
    195         growlNotificationNames[GROWL_INSTALL] = [NSString stringWithString: @"InstallCompleted"];
    196         growlNotificationNames[GROWL_UNINSTALL] = [NSString stringWithString: @"UninstallCompleted"];
    197         growlNotificationNames[GROWL_UPGRADE] = [NSString stringWithString: @"UpgradeCompleted"];
    198         growlNotificationNames[GROWL_SYNC] = [NSString stringWithString: @"SyncCompleted"];
    199         growlNotificationNames[GROWL_SELFUPDATE] = [NSString stringWithString: @"SelfupdateCompleted"];
    200         growlNotificationNames[GROWL_INSTALLFAILED] = [NSString stringWithString: @"InstallFailed"];
    201         growlNotificationNames[GROWL_UNINSTALLFAILED] = [NSString stringWithString: @"UninstallFailed"];
    202         growlNotificationNames[GROWL_UPGRADEFAILED] = [NSString stringWithString: @"UpgradeFailed"];
    203         growlNotificationNames[GROWL_SYNCFAILED] = [NSString stringWithString: @"SyncFailed"];
    204         growlNotificationNames[GROWL_SELFUPDATEFAILED] = [NSString stringWithString: @"SelfupdateFailed"];
     195        growlNotificationNames[GROWL_INSTALL] = @"InstallCompleted";
     196        growlNotificationNames[GROWL_UNINSTALL] = @"UninstallCompleted";
     197        growlNotificationNames[GROWL_UPGRADE] = @"UpgradeCompleted";
     198        growlNotificationNames[GROWL_SYNC] = @"SyncCompleted";
     199        growlNotificationNames[GROWL_SELFUPDATE] = @"SelfupdateCompleted";
     200        growlNotificationNames[GROWL_INSTALLFAILED] = @"InstallFailed";
     201        growlNotificationNames[GROWL_UNINSTALLFAILED] = @"UninstallFailed";
     202        growlNotificationNames[GROWL_UPGRADEFAILED] = @"UpgradeFailed";
     203        growlNotificationNames[GROWL_SYNCFAILED] = @"SyncFailed";
     204        growlNotificationNames[GROWL_SELFUPDATEFAILED] = @"SelfupdateFailed";
    205205       
    206         growlNotificationNames[GROWL_ALLOPS] = [NSString stringWithString: @"OperationsCompleted"];
    207         growlNotificationNames[GROWL_ALLOPSFAILED] = [NSString stringWithString: @"OperationsFailed"];
     206        growlNotificationNames[GROWL_ALLOPS] = @"OperationsCompleted";
     207        growlNotificationNames[GROWL_ALLOPSFAILED] = @"OperationsFailed";
    208208       
    209209       
    210210        /*#################     These initializations should be moved to [init], and only call the following functions  #################*/