summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-08-11 17:44:05 +0200
committerDamiano Galassi <[email protected]>2019-08-11 17:44:05 +0200
commit17b12685461281b81143c393a914819195e8428e (patch)
tree98cd1d6b3dedcdc3bc8ff40dbbd964c6ac503ec1
parent9b68fc4790916e242e4fc5b752d14652ad40d94d (diff)
MacGui: improve queue accessibility.
-rw-r--r--macosx/HBQueueItemView.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/HBQueueItemView.m b/macosx/HBQueueItemView.m
index 243c52938..5fcf55308 100644
--- a/macosx/HBQueueItemView.m
+++ b/macosx/HBQueueItemView.m
@@ -38,25 +38,32 @@
- (void)HB_updateState
{
NSImage *state = nil;
+ NSString *label = nil;
switch (_item.state) {
case HBQueueItemStateCompleted:
state = [NSImage imageNamed:@"EncodeComplete"];
+ label = NSLocalizedString(@"Encode complete", @"HBQueueItemView -> Encode state accessibility label");
break;
case HBQueueItemStateWorking:
state = [NSImage imageNamed:@"EncodeWorking0"];
+ label = NSLocalizedString(@"Encode working", @"HBQueueItemView -> Encode state accessibility label");
break;
case HBQueueItemStateCanceled:
state = [NSImage imageNamed:@"EncodeCanceled"];
+ label = NSLocalizedString(@"Encode canceled", @"HBQueueItemView -> Encode state accessibility label");
break;
case HBQueueItemStateFailed:
state = [NSImage imageNamed:@"EncodeFailed"];
+ label = NSLocalizedString(@"Encode failed", @"HBQueueItemView -> Encode state accessibility label");
break;
default:
state = [NSImage imageNamed:@"JobSmall"];
+ NSLocalizedString(@"Encode ready", @"HBQueueItemView -> Encode state accessibility label");
break;
}
self.imageView.image = state;
+ self.imageView.accessibilityLabel = label;
}
- (void)HB_updateRightButton
@@ -80,6 +87,7 @@
{
[_removeButton setImage:[NSImage imageNamed:darkAqua ? @"RevealHighlight" : @"Reveal"]];
}
+ _removeButton.accessibilityTitle = NSLocalizedString(@"Reveal destination in Finder", @"HBQueueItemView -> Reveal button accessibility label");
}
else
{
@@ -93,6 +101,7 @@
{
[_removeButton setImage:[NSImage imageNamed:darkAqua ? @"DeleteHighlight" : @"Delete"]];
}
+ _removeButton.accessibilityTitle = NSLocalizedString(@"Remove job", @"HBQueueItemView -> Remove button accessibility label");
}
}