1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 22:51:39 +00:00

Pushed the error message logic in Cocoa' addDirectory into the core.

This commit is contained in:
Virgil Dupras
2012-07-31 15:33:44 -04:00
parent 81df280ea6
commit deb5260c6a
24 changed files with 185 additions and 198 deletions

View File

@@ -138,17 +138,7 @@ http://www.hardcoded.net/licenses/bsd_license
/* Public */
- (void)addDirectory:(NSString *)directory
{
NSInteger r = [model addDirectory:directory];
if (r) {
NSString *m = @"";
if (r == 1) {
m = TR(@"'%@' already is in the list.");
}
else if (r == 2) {
m = TR(@"'%@' does not exist.");
}
[Dialogs showMessage:[NSString stringWithFormat:m,directory]];
}
[model addDirectory:directory];
[_recentDirectories addFile:directory];
[[self window] makeKeyAndOrderFront:nil];
}

View File

@@ -7,8 +7,6 @@
"Select a file to save your results to" = "Select a file to save your results to";
"Select a folder to add to the scanning list" = "Select a folder to add to the scanning list";
"You have unsaved results, do you really want to continue?" = "You have unsaved results, do you really want to continue?";
"'%@' already is in the list." = "'%@' already is in the list.";
"'%@' does not exist." = "'%@' does not exist.";
"The name '%@' already exists." = "The name '%@' already exists.";
"A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again." = "A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.";
"Your iTunes Library contains %d dead tracks ready to be removed. Continue?" = "Your iTunes Library contains %d dead tracks ready to be removed. Continue?";