mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 04:42:29 +00:00
updated more comments for localization
This commit is contained in:
@@ -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]];
|
||||
|
||||
@@ -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]];
|
||||
|
||||
@@ -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:);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user