summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob.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/HBJob.m
parent70f1438bd17a9eea7e18db17d0bbc5b1ec11ac93 (diff)
MacGui: load the HandBrakeKit framework localized strings from the framework bundle.
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r--macosx/HBJob.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index ccebe8a0c..beb7e5875 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -13,6 +13,7 @@
#import "HBMutablePreset.h"
#import "HBCodingUtilities.h"
+#import "HBLocalizationUtilities.h"
#import "HBUtilities.h"
#import "HBSecurityAccessToken.h"
@@ -178,8 +179,8 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
{
if (outError)
{
- *outError = [NSError errorWithDomain:@"HBError" code:0 userInfo:@{NSLocalizedDescriptionKey: NSLocalizedString(@"Invalid name", @"HBJob -> invalid name error description"),
- NSLocalizedRecoverySuggestionErrorKey: NSLocalizedString(@"The file name can't contain the / character.", @"HBJob -> invalid name error recovery suggestion")}];
+ *outError = [NSError errorWithDomain:@"HBError" code:0 userInfo:@{NSLocalizedDescriptionKey: HBKitLocalizedString(@"Invalid name", @"HBJob -> invalid name error description"),
+ NSLocalizedRecoverySuggestionErrorKey: HBKitLocalizedString(@"The file name can't contain the / character.", @"HBJob -> invalid name error recovery suggestion")}];
}
return NO;
}