summaryrefslogtreecommitdiffstats
path: root/macosx/HBFilters+UIAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBFilters+UIAdditions.m')
-rw-r--r--macosx/HBFilters+UIAdditions.m12
1 files changed, 10 insertions, 2 deletions
diff --git a/macosx/HBFilters+UIAdditions.m b/macosx/HBFilters+UIAdditions.m
index b143181dc..71ce759f8 100644
--- a/macosx/HBFilters+UIAdditions.m
+++ b/macosx/HBFilters+UIAdditions.m
@@ -19,7 +19,11 @@ static NSArray * filterParamsToNamesArray(hb_filter_param_t * (f)(int), int filt
for (hb_filter_param_t *preset = f(filter_id); preset->name != NULL; preset++)
{
- [presets addObject:@(preset->name)];
+ NSString *name = @(preset->name);
+ if ([name isEqualToString:@"Off"]) {
+ name = NSLocalizedString(@"Off", @"HBFilters -> off display name");
+ }
+ [presets addObject:name];
}
return [presets copy];
@@ -37,7 +41,11 @@ static NSDictionary * filterParamsToNamesDict(hb_filter_param_t * (f)(int), int
for (hb_filter_param_t *preset = f(filter_id); preset->name != NULL; preset++)
{
- [presets setObject:NSLocalizedString(@(preset->short_name), nil) forKey:@(preset->name)];
+ NSString *name = @(preset->name);
+ if ([name isEqualToString:@"Off"]) {
+ name = NSLocalizedString(@"Off", @"HBFilters -> off display name");
+ }
+ [presets setObject:@(preset->short_name) forKey:name];
}
return [presets copy];