From 4854e51a58cad3b6ce06cf02d1bec15a5fc38d34 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 20 Oct 2018 13:31:06 +0200 Subject: MacGui: load the HandBrakeKit framework localized strings from the framework bundle. --- macosx/HBVideo+UIAdditions.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'macosx/HBVideo+UIAdditions.m') diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m index b16572990..f330e3526 100644 --- a/macosx/HBVideo+UIAdditions.m +++ b/macosx/HBVideo+UIAdditions.m @@ -6,6 +6,8 @@ #import "HBVideo+UIAdditions.h" #import "HBJob+Private.h" +#import "HBLocalizationUtilities.h" + #include "hb.h" @implementation HBVideo (UIAdditions) @@ -43,7 +45,7 @@ { NSMutableArray *framerates = [NSMutableArray array]; - [framerates addObject:NSLocalizedString(@"Same as source", @"HBVideo -> frame rates display name")]; + [framerates addObject:HBKitLocalizedString(@"Same as source", @"HBVideo -> frame rates display name")]; for (const hb_rate_t *video_framerate = hb_video_framerate_get_next(NULL); video_framerate != NULL; @@ -265,7 +267,7 @@ } else { - return NSLocalizedString(@"Same as source", @"HBVideo -> frame rates display name"); + return HBKitLocalizedString(@"Same as source", @"HBVideo -> frame rates display name"); } } @@ -276,7 +278,7 @@ - (id)reverseTransformedValue:(id)value { - if ([value isEqualTo:NSLocalizedString(@"Same as source", @"HBVideo -> frame rates display name")]) + if ([value isEqualTo:HBKitLocalizedString(@"Same as source", @"HBVideo -> frame rates display name")]) { return @0; } -- cgit v1.2.3