diff --git a/Cartfile b/Cartfile index 18e65441..e56324aa 100644 --- a/Cartfile +++ b/Cartfile @@ -1,4 +1,4 @@ github "sparkle-project/Sparkle" ~> 1.22 github "mattt/TransformerKit" ~> 1.1.1 -github "MacPass/KeePassKit" "5a57e2e90e8b96e7aa76f573ed8d48e8d584dc4a" +github "MacPass/KeePassKit" "e22b8f2e5b4f8bccdea7630318e42eeb6eec23b5" github "mstarke/HNHUi" ~> 4.0 diff --git a/Cartfile.resolved b/Cartfile.resolved index 6d15564c..1a09a31a 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,4 +1,4 @@ -github "MacPass/KeePassKit" "5a57e2e90e8b96e7aa76f573ed8d48e8d584dc4a" +github "MacPass/KeePassKit" "e22b8f2e5b4f8bccdea7630318e42eeb6eec23b5" github "mattt/TransformerKit" "1.1.1" github "mstarke/HNHUi" "4.0.2" github "robbiehanson/KissXML" "5.3.2" diff --git a/MacPass/MPTOTPViewController.m b/MacPass/MPTOTPViewController.m index 4a764392..484b518e 100644 --- a/MacPass/MPTOTPViewController.m +++ b/MacPass/MPTOTPViewController.m @@ -52,7 +52,6 @@ self.toptValueTextField.stringValue = self.generator.string; NSString *template = NSLocalizedString(@"TOTP_REMAINING_TIME_%ld_SECONDS", @"Time in seconds remaining for a valid TOTP string, format should be %ld"); - template = @"%ld s"; self.remainingTimeButton.title = [NSString stringWithFormat:template, (NSUInteger)self.generator.remainingTime]; [self performSelector:@selector(_updateDisplay) withObject:nil afterDelay:0.5]; diff --git a/MacPass/MPTOTPViewController.xib b/MacPass/MPTOTPViewController.xib index 6f3a90a7..ced632ec 100644 --- a/MacPass/MPTOTPViewController.xib +++ b/MacPass/MPTOTPViewController.xib @@ -34,7 +34,7 @@ - + @@ -42,20 +42,29 @@ + + + @@ -78,4 +87,7 @@ + + + diff --git a/MacPass/en.lproj/Localizable.strings b/MacPass/en.lproj/Localizable.strings index 78cf19be..f1f097ba 100644 --- a/MacPass/en.lproj/Localizable.strings +++ b/MacPass/en.lproj/Localizable.strings @@ -25,12 +25,6 @@ /* Toolbar item with action menu */ "ACTION" = "Action"; -/* Menu item title for adding an hmacotp config attribute */ -"ADD_CUSTOM_ATTRIBUTE_HMACOTP_CONFIG" = "Add HMACOTP Configuration"; - -/* Menu item title for adding an hmacotp seed attribute */ -"ADD_CUSTOM_ATTRIBUTE_HMACOTP_SEED" = "Add HMACOTP Seed"; - /* Menu displayed for adding special custom keys */ "ADD_CUSTOM_FIELD_CONTEXT_MENU" = "Add Custom Field Menu"; @@ -101,8 +95,11 @@ /* Menu item for automatic trash creation */ "AUTOCREATE_TRASH_FOLDER" = "Create Automatically"; -/* Message text in the autotype selection window. Placeholder is %1 - windowTitle */ -"AUTOTYPE_CANDIDATE_SELECTION_WINDOW_MESSAGE_%@" = "There are multiple matches for the current window: %@. Please select which match should be used."; +/* Message text in the autotype confirmation window. Placeholder is %1 - applicationName, %2 windowTitle */ +"AUTOTYPE_CANDIDATE_CONFIRMATION_WINDOW_MESSAGE_%@_%@" = "AUTOTYPE_CANDIDATE_CONFIRMATION_WINDOW_MESSAGE_%1$@_%2$@"; + +/* Message text in the autotype selection window. Placeholder is %1 - applicationName, %2 windowTitle */ +"AUTOTYPE_CANDIDATE_SELECTION_WINDOW_MESSAGE_%@_%@" = "There are multiple matches for the window %2$@ of application %1$@. Please select which match should be used."; /* Window title for the stand-alone password creator window */ "AUTOTYPE_DOCTOR_RESULTS_WINDOW_TITLE" = "Autotype Doctor"; @@ -714,6 +711,9 @@ /* Checkbox in dialog to set the selection as default file change strategy! */ "SET_AS_DEFAULT_FILE_CHANGE_STRATEGY" = "Use this method as default. You can change this at any time in the preferences."; +/* Menu item title editing TOTP settings */ +"SETUP_TOTP_SETTINGS" = "Edit Time-One-Time-Password settings."; + /* Action button in Notification to show the Autotype Doctor */ "SHOW_AUTOTYPE_DOCTOR" = "Show Autotype Doctor"; @@ -736,6 +736,9 @@ /* Toolbar item to perform autotype */ "TOOLBAR_PERFORM_AUTOTYPE_FOR_ENTRY" = "Autotype"; +/* Time in seconds remaining for a valid TOTP string, format should be %ld */ +"TOTP_REMAINING_TIME_%ld_SECONDS" = "%ld s"; + /* Touchbar button label for choosing the keyfile */ "TOUCHBAR_CHOOSE_KEYFILE" = "Choose Keyfile";