summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.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/HBPreset.m
parent70f1438bd17a9eea7e18db17d0bbc5b1ec11ac93 (diff)
MacGui: load the HandBrakeKit framework localized strings from the framework bundle.
Diffstat (limited to 'macosx/HBPreset.m')
-rw-r--r--macosx/HBPreset.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m
index 4d3c2f095..98d424253 100644
--- a/macosx/HBPreset.m
+++ b/macosx/HBPreset.m
@@ -10,6 +10,7 @@
#include "preset.h"
#import "NSJSONSerialization+HBAdditions.h"
+#import "HBLocalizationUtilities.h"
@interface HBPreset ()
@@ -197,9 +198,9 @@
- (NSError *)invalidPresetErrorForUrl:(NSURL *)url
{
- NSString *description = [NSString stringWithFormat:NSLocalizedString(@"The preset \"%@\" could not be imported.", @"Preset -> import error description"),
+ NSString *description = [NSString stringWithFormat:HBKitLocalizedString(@"The preset \"%@\" could not be imported.", @"Preset -> import error description"),
url.lastPathComponent];
- NSString *reason = NSLocalizedString(@"The selected preset is invalid.", @"Preset -> import error reason");
+ NSString *reason = HBKitLocalizedString(@"The selected preset is invalid.", @"Preset -> import error reason");
return [NSError errorWithDomain:@"HBPresetDomain" code:1 userInfo:@{NSLocalizedDescriptionKey: description,
NSLocalizedRecoverySuggestionErrorKey: reason}];
@@ -208,9 +209,9 @@
- (NSError *)newerPresetErrorForUrl:(NSURL *)url
{
- NSString *description = [NSString stringWithFormat:NSLocalizedString(@"The preset \"%@\" could not be imported.", @"Preset -> import error description"),
+ NSString *description = [NSString stringWithFormat:HBKitLocalizedString(@"The preset \"%@\" could not be imported.", @"Preset -> import error description"),
url.lastPathComponent];
- NSString *reason = NSLocalizedString(@"The selected preset was created with a newer version of HandBrake.", @"Preset -> import error reason");
+ NSString *reason = HBKitLocalizedString(@"The selected preset was created with a newer version of HandBrake.", @"Preset -> import error reason");
return [NSError errorWithDomain:@"HBPresetDomain" code:2 userInfo:@{NSLocalizedDescriptionKey: description,
NSLocalizedRecoverySuggestionErrorKey: reason}];