summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideo+UIAdditions.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-10-20 13:31:06 +0200
committerDamiano Galassi <[email protected]>2018-10-20 13:31:06 +0200
commit4854e51a58cad3b6ce06cf02d1bec15a5fc38d34 (patch)
tree5bf4a11c2f8aa8282c0d9e0e9272cdc7ba49fc22 /macosx/HBVideo+UIAdditions.m
parent70f1438bd17a9eea7e18db17d0bbc5b1ec11ac93 (diff)
MacGui: load the HandBrakeKit framework localized strings from the framework bundle.
Diffstat (limited to 'macosx/HBVideo+UIAdditions.m')
-rw-r--r--macosx/HBVideo+UIAdditions.m8
1 files changed, 5 insertions, 3 deletions
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;
}