summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-06-09 10:06:52 +0200
committerDamiano Galassi <[email protected]>2018-06-09 10:06:52 +0200
commit041d228b23f622ee86a528f8c667e048503c226e (patch)
tree31e2a6e0422acd1765c68f78a2209d6014bb186f /macosx/HBPreset.m
parent047c78c7946aeba026a259c1a9cad8937975115b (diff)
MacGui: improve NSLocalizedString comments.
Diffstat (limited to 'macosx/HBPreset.m')
-rw-r--r--macosx/HBPreset.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m
index 067f49773..4d3c2f095 100644
--- a/macosx/HBPreset.m
+++ b/macosx/HBPreset.m
@@ -197,9 +197,9 @@
- (NSError *)invalidPresetErrorForUrl:(NSURL *)url
{
- NSString *description = [NSString stringWithFormat:NSLocalizedString(@"The preset \"%@\" could not be imported.", nil),
+ NSString *description = [NSString stringWithFormat:NSLocalizedString(@"The preset \"%@\" could not be imported.", @"Preset -> import error description"),
url.lastPathComponent];
- NSString *reason = NSLocalizedString(@"The selected preset is invalid.", nil);
+ NSString *reason = NSLocalizedString(@"The selected preset is invalid.", @"Preset -> import error reason");
return [NSError errorWithDomain:@"HBPresetDomain" code:1 userInfo:@{NSLocalizedDescriptionKey: description,
NSLocalizedRecoverySuggestionErrorKey: reason}];
@@ -208,9 +208,9 @@
- (NSError *)newerPresetErrorForUrl:(NSURL *)url
{
- NSString *description = [NSString stringWithFormat:NSLocalizedString(@"The preset \"%@\" could not be imported.", nil),
+ NSString *description = [NSString stringWithFormat:NSLocalizedString(@"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.", nil);
+ NSString *reason = NSLocalizedString(@"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}];