diff --git a/MacPass/MPDatePickingViewController.m b/MacPass/MPDatePickingViewController.m index a2f32a26..f8493708 100644 --- a/MacPass/MPDatePickingViewController.m +++ b/MacPass/MPDatePickingViewController.m @@ -51,9 +51,13 @@ typedef NS_ENUM(NSUInteger, MPDatePreset) { - (void)awakeFromNib { NSMenu *presetMenu = [[NSMenu alloc] init]; NSUInteger tags[] = { MPDatePresetTomorrow, MPDatePresetOneWeek, MPDatePresetOneMonth, MPDatePreset90Days, MPDatePresetOneYear }; - NSArray *dateItems = @[ NSLocalizedString(@"TOMORROW", ""), NSLocalizedString(@"ONE_WEEK", ""), NSLocalizedString(@"ONE_MONTH", ""), NSLocalizedString(@"90_DAYS", ""), NSLocalizedString(@"ONE_YEAR", "") ]; + NSArray *dateItems = @[ NSLocalizedString(@"TOMORROW", "preset to expire tomorrow"), + NSLocalizedString(@"ONE_WEEK", "preset to expire after one week from now"), + NSLocalizedString(@"ONE_MONTH", "preset to expire after one montch from now"), + NSLocalizedString(@"90_DAYS", "preset to expire after 90 days from now"), + NSLocalizedString(@"ONE_YEAR", "preset to expire after one year from now") ]; - NSMenuItem *item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"SELECT_DATE_PRESET", "") action:NULL keyEquivalent:@""]; + NSMenuItem *item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"SELECT_DATE_PRESET", "Menu item title for the expiry preset selection menu in the date picker") action:NULL keyEquivalent:@""]; item.tag = MPDatePresetNone; [presetMenu addItem:item]; [presetMenu addItem:[NSMenuItem separatorItem]]; diff --git a/MacPass/MPOutlineContextMenuDelegate.m b/MacPass/MPOutlineContextMenuDelegate.m index 034820e4..c0da4554 100644 --- a/MacPass/MPOutlineContextMenuDelegate.m +++ b/MacPass/MPOutlineContextMenuDelegate.m @@ -81,7 +81,7 @@ NSString *const _MPOutlineMenuTemplate = @"Template"; return; // nothing to do, all fine } [menu removeAllItems]; - [menu addItemWithTitle:NSLocalizedString(@"CHANGE_DATABASE_NAME", "") + [menu addItemWithTitle:NSLocalizedString(@"CHANGE_DATABASE_NAME", "Menu item in the database outline context menu to change the database name") action:[MPActionHelper actionOfType:MPActionDatabaseSettings] keyEquivalent:@""]; @@ -93,11 +93,11 @@ NSString *const _MPOutlineMenuTemplate = @"Template"; return; // nothing to do, all fine } [menu removeAllItems]; - [menu addItemWithTitle:NSLocalizedString(@"CHANGE_TRASH_GROUP", "") + [menu addItemWithTitle:NSLocalizedString(@"CHANGE_TRASH_GROUP", "Menu item in the database outline context menu to change the trash group") action:@selector(editTrashGroup:) keyEquivalent:@""]; [menu addItem:[NSMenuItem separatorItem]]; - [menu addItemWithTitle:NSLocalizedString(@"EMPTY_TRASH", "") + [menu addItemWithTitle:NSLocalizedString(@"EMPTY_TRASH", "Menu item in the database outline context menu to empyt the trash") action:[MPActionHelper actionOfType:MPActionEmptyTrash] keyEquivalent:@""]; @@ -109,11 +109,11 @@ NSString *const _MPOutlineMenuTemplate = @"Template"; return; // nothing to do, all fine } [menu removeAllItems]; - [menu addItemWithTitle:NSLocalizedString(@"DELETE", "") + [menu addItemWithTitle:NSLocalizedString(@"DELETE", "Menu item in the database outline context menu to delete the node from the trash") action:[MPActionHelper actionOfType:MPActionDelete] keyEquivalent:@""]; [menu addItem:[NSMenuItem separatorItem]]; - [menu addItemWithTitle:NSLocalizedString(@"EMPTY_TRASH", "") + [menu addItemWithTitle:NSLocalizedString(@"EMPTY_TRASH", "Menu item in the database outline to empty the trash") action:[MPActionHelper actionOfType:MPActionEmptyTrash] keyEquivalent:@""]; @@ -125,7 +125,7 @@ NSString *const _MPOutlineMenuTemplate = @"Template"; return; // nothing to do, all fine } [menu removeAllItems]; - [menu addItemWithTitle:NSLocalizedString(@"EDIT_TEMPLATE_GROUP", "") + [menu addItemWithTitle:NSLocalizedString(@"EDIT_TEMPLATE_GROUP", "Menu item in the database outline context menu to change the template group") action:[MPActionHelper actionOfType:MPActionEditTemplateGroup] keyEquivalent:@""]; [menu addItem:[NSMenuItem separatorItem]]; diff --git a/MacPass/MPPasswordCreatorViewController.m b/MacPass/MPPasswordCreatorViewController.m index 74afec31..e6acb14f 100644 --- a/MacPass/MPPasswordCreatorViewController.m +++ b/MacPass/MPPasswordCreatorViewController.m @@ -301,12 +301,12 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) { #pragma mark Helper - (void)_updateSetDefaultsButton:(BOOL)shouldDeleteEntryDefaults { if(shouldDeleteEntryDefaults) { - self.setDefaultButton.title = NSLocalizedString(@"PASSWORD_GENERATOR_RESET_ENTRY_DEFAULTS", ""); + self.setDefaultButton.title = NSLocalizedString(@"PASSWORD_GENERATOR_RESET_ENTRY_DEFAULTS", "Button to reset the password defaults for a single entry"); self.setDefaultButton.enabled = YES; self.setDefaultButton.action = @selector(_resetEntryDefaults:); } else { - self.setDefaultButton.title = NSLocalizedString(@"PASSWORD_GENERATOR_SET_DEFAULTS", ""); + self.setDefaultButton.title = NSLocalizedString(@"PASSWORD_GENERATOR_SET_DEFAULTS", "Button to set the defaults of the password generator"); self.setDefaultButton.action = @selector(_setDefault:); } }