if (self.name.stringValue.length == 0)
{
NSAlert *alert = [[NSAlert alloc] init];
- [alert setMessageText:NSLocalizedString(@"Warning!", @"")];
- [alert setInformativeText:NSLocalizedString(@"You need to insert a name for the preset.", @"")];
+ [alert setMessageText:NSLocalizedString(@"The preset name cannot be empty.", @"")];
+ [alert setInformativeText:NSLocalizedString(@"Please enter a name.", @"")];
[alert runModal];
}
else
if ([[NSFileManager defaultManager] fileExistsAtPath:destinationDirectory] == 0)
{
NSAlert *alert = [[NSAlert alloc] init];
- [alert setMessageText:NSLocalizedString(@"Warning!", @"")];
- [alert setInformativeText:NSLocalizedString(@"This is not a valid destination directory!", @"")];
+ [alert setMessageText:NSLocalizedString(@"Invalid destination.", @"")];
+ [alert setInformativeText:NSLocalizedString(@"The current destination folder is not a valid.", @"")];
[alert runModal];
return;
}
if ([[NSFileManager defaultManager] fileExistsAtPath:self.job.destURL.path])
{
NSAlert *alert = [[NSAlert alloc] init];
- [alert setMessageText:NSLocalizedString(@"Warning!", @"")];
+ [alert setMessageText:NSLocalizedString(@"A file already exists at the selected destination.", @"")];
[alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Do you want to overwrite %@?", @""), self.job.destURL.path]];
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"")];
[alert addButtonWithTitle:NSLocalizedString(@"Overwrite", @"")];
// Save the current selection path and apply it again after the deletion
NSIndexPath *currentSelection = [self.treeController selectionIndexPath];
/* Alert user before deleting preset */
- NSAlert *alert = [NSAlert alertWithMessageText:@"Warning!"
- defaultButton:@"OK"
- alternateButton:@"Cancel"
+ NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Are you sure you want to permanently delete the selected preset?", nil)
+ defaultButton:NSLocalizedString(@"Delete Preset", nil)
+ alternateButton:NSLocalizedString(@"Cancel", nil)
otherButton:nil
- informativeTextWithFormat:@"Are you sure that you want to delete the selected preset?"];
+ informativeTextWithFormat:NSLocalizedString(@"You can't undo this action.", nil)];
[alert setAlertStyle:NSCriticalAlertStyle];
NSInteger status = [alert runModal];
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
- LastUpgradeVersion = "0630"
+ LastUpgradeVersion = "0640"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
- LastUpgradeVersion = "0630"
- version = "1.3">
+ LastUpgradeVersion = "0640"
+ version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
ReferencedContainer = "container:HandBrake.xcodeproj">
</BuildableReference>
</MacroExpansion>
+ <AdditionalOptions>
+ </AdditionalOptions>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
buildConfiguration = "release"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
+ enableAddressSanitizer = "YES"
+ debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">