From e8bdd3b2b81e7d8f25c854ad184fd5bc98892cab Mon Sep 17 00:00:00 2001 From: michael starke Date: Sat, 2 Sep 2017 09:42:12 +0200 Subject: [PATCH] added missing localizations --- Cartfile.resolved | 2 +- MacPass/MPAppDelegate.m | 4 ++-- MacPass/MPContextBarViewController.m | 2 +- MacPass/MPEntryContextMenuDelegate.m | 2 +- MacPass/MPFixAutotypeWindowController.m | 2 +- MacPass/MPToolbarDelegate.m | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index ff168b6a..2e3e82ec 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,3 +1,3 @@ -github "mstarke/HNHUi" "1.1" +github "mstarke/HNHUi" "1.1.2" github "mstarke/KeePassKit" "c683892ac02d04d7cbcf4b4a0b684586349df0d3" github "sparkle-project/Sparkle" "1.18.1" diff --git a/MacPass/MPAppDelegate.m b/MacPass/MPAppDelegate.m index a4ee3739..7200358b 100644 --- a/MacPass/MPAppDelegate.m +++ b/MacPass/MPAppDelegate.m @@ -236,9 +236,9 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi - (void)checkForUpdates:(id)sender { #if defined(DEBUG) || defined(NO_SPARKLE) NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = @"Updates are disabled!"; + alert.messageText = NSLocalizedString(@"Updates are disabled!", @"Message text for disabled updates alert!"); alert.informativeText = [NSString stringWithFormat:@"Sparkle updates are disabled for this build of %@!", NSApp.applicationName]; - [alert addButtonWithTitle:@"Ok"]; + [alert addButtonWithTitle:NSLocalizedString(@"OK", @"Ok button")]; [alert runModal]; #else [[SUUpdater sharedUpdater] checkForUpdates:sender]; diff --git a/MacPass/MPContextBarViewController.m b/MacPass/MPContextBarViewController.m index 1561e28b..45bb1e61 100644 --- a/MacPass/MPContextBarViewController.m +++ b/MacPass/MPContextBarViewController.m @@ -79,7 +79,7 @@ typedef NS_ENUM(NSUInteger, MPContextTab) { } NSInteger specialTags[] = { MPEntrySearchDoublePasswords, MPEntrySearchExpiredEntries }; NSArray *titles = @[ NSLocalizedString(@"SEARCH_DUPLICATE_PASSWORDS", ""), NSLocalizedString(@"SEARCH_EXPIRED_ENTRIES", "") ]; - NSMenu *specialMenu = [[NSMenu alloc] initWithTitle:@"Special Filters Menu"]; + NSMenu *specialMenu = [[NSMenu alloc] initWithTitle:NSLocalizedString(@"CUSTOM_SEARCH_FILTER_MENU", @"Title for menu for custom search filters")]; [specialMenu addItemWithTitle:NSLocalizedString(@"SELECT_FILTER_WITH_DOTS", "") action:NULL keyEquivalent:@""]; [[specialMenu itemAtIndex:0] setEnabled:NO]; [[specialMenu itemAtIndex:0] setTag:MPEntrySearchNone]; diff --git a/MacPass/MPEntryContextMenuDelegate.m b/MacPass/MPEntryContextMenuDelegate.m index eba2c1a1..7df78953 100644 --- a/MacPass/MPEntryContextMenuDelegate.m +++ b/MacPass/MPEntryContextMenuDelegate.m @@ -54,7 +54,7 @@ static NSUInteger const kMPAttachmentsMenuItem = 2000; if(entry.customAttributes.count > 0) { [menu addItem:[NSMenuItem separatorItem]]; NSMenuItem *attributeItem = [[NSMenuItem alloc] init]; - NSMenu *submenu = [[NSMenu alloc] initWithTitle:@"Fields"]; + NSMenu *submenu = [[NSMenu alloc] initWithTitle:NSLocalizedString(@"COPY_CUSTOM_FIELDS_MENU", @"Context menu sub-menu to copy custom fields to clipboard")]; attributeItem.title = NSLocalizedString(@"COPY_CUSTOM_FIELDS", "Submenu to Copy custom fields"); attributeItem.tag = kMPCustomFieldMenuItem; for (KPKAttribute *attribute in entry.customAttributes) { diff --git a/MacPass/MPFixAutotypeWindowController.m b/MacPass/MPFixAutotypeWindowController.m index f2281678..f499ba8f 100644 --- a/MacPass/MPFixAutotypeWindowController.m +++ b/MacPass/MPFixAutotypeWindowController.m @@ -92,7 +92,7 @@ NSString *const kMPIconCell = @"IconCell"; } }]; [[self.document undoManager] endUndoGrouping]; - [[self.document undoManager] setActionName:@"Clear Autotype"]; + [[self.document undoManager] setActionName:NSLocalizedString(@"CLEAR_AUTOTYPE", @"Clear Autotype Button")]; [self.tableView reloadDataForRowIndexes:indexes columnIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0,2)]]; } diff --git a/MacPass/MPToolbarDelegate.m b/MacPass/MPToolbarDelegate.m index 31eb95eb..54f9e642 100644 --- a/MacPass/MPToolbarDelegate.m +++ b/MacPass/MPToolbarDelegate.m @@ -143,7 +143,7 @@ NSString *const MPToolbarItemHistory = @"TOOLBAR_HISTORY"; [button sizeToFit]; NSMenu *menu = [NSMenu allocWithZone:[NSMenu menuZone]]; - [menu addItemWithTitle:@"Dummy" action:NULL keyEquivalent:@""]; + [menu addItemWithTitle:NSLocalizedString(@"UNKNOWN_TOOLBAR_ITEM", @"") action:NULL keyEquivalent:@""]; menu.delegate = _entryMenuDelegate; [button setContextMenu:menu];