mirror of
https://github.com/MacPass/MacPass.git
synced 2026-02-01 08:58:24 +00:00
Updated localizations. Added edit button to TOTP view
This commit is contained in:
2
Cartfile
2
Cartfile
@@ -1,4 +1,4 @@
|
|||||||
github "sparkle-project/Sparkle" ~> 1.22
|
github "sparkle-project/Sparkle" ~> 1.22
|
||||||
github "mattt/TransformerKit" ~> 1.1.1
|
github "mattt/TransformerKit" ~> 1.1.1
|
||||||
github "MacPass/KeePassKit" "5a57e2e90e8b96e7aa76f573ed8d48e8d584dc4a"
|
github "MacPass/KeePassKit" "e22b8f2e5b4f8bccdea7630318e42eeb6eec23b5"
|
||||||
github "mstarke/HNHUi" ~> 4.0
|
github "mstarke/HNHUi" ~> 4.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
github "MacPass/KeePassKit" "5a57e2e90e8b96e7aa76f573ed8d48e8d584dc4a"
|
github "MacPass/KeePassKit" "e22b8f2e5b4f8bccdea7630318e42eeb6eec23b5"
|
||||||
github "mattt/TransformerKit" "1.1.1"
|
github "mattt/TransformerKit" "1.1.1"
|
||||||
github "mstarke/HNHUi" "4.0.2"
|
github "mstarke/HNHUi" "4.0.2"
|
||||||
github "robbiehanson/KissXML" "5.3.2"
|
github "robbiehanson/KissXML" "5.3.2"
|
||||||
|
|||||||
@@ -52,7 +52,6 @@
|
|||||||
self.toptValueTextField.stringValue = self.generator.string;
|
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");
|
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.remainingTimeButton.title = [NSString stringWithFormat:template, (NSUInteger)self.generator.remainingTime];
|
||||||
[self performSelector:@selector(_updateDisplay) withObject:nil afterDelay:0.5];
|
[self performSelector:@selector(_updateDisplay) withObject:nil afterDelay:0.5];
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="480" height="21"/>
|
<rect key="frame" x="0.0" y="0.0" width="480" height="21"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="xBL-Jz-VQO" customClass="HNHUITextField">
|
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="xBL-Jz-VQO" customClass="HNHUITextField">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="445" height="21"/>
|
<rect key="frame" x="0.0" y="0.0" width="399" height="21"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" truncatesLastVisibleLine="YES" selectable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" usesSingleLineMode="YES" id="Vuy-HC-UhI">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" truncatesLastVisibleLine="YES" selectable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" usesSingleLineMode="YES" id="Vuy-HC-UhI">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -42,20 +42,29 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Hxg-bd-l1O">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Hxg-bd-l1O">
|
||||||
<rect key="frame" x="453" y="1" width="27" height="17"/>
|
<rect key="frame" x="407" y="1" width="27" height="17"/>
|
||||||
<buttonCell key="cell" type="inline" title="30" bezelStyle="inline" alignment="center" enabled="NO" borderStyle="border" inset="2" id="roW-Uk-ff9">
|
<buttonCell key="cell" type="inline" title="30" bezelStyle="inline" alignment="center" enabled="NO" borderStyle="border" inset="2" id="roW-Uk-ff9">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
</button>
|
</button>
|
||||||
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="xge-Jc-QnB">
|
||||||
|
<rect key="frame" x="436" y="-7" width="50" height="32"/>
|
||||||
|
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSActionTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="64a-Tn-vdd">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
</buttonCell>
|
||||||
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
<visibilityPriorities>
|
<visibilityPriorities>
|
||||||
<integer value="1000"/>
|
<integer value="1000"/>
|
||||||
<integer value="1000"/>
|
<integer value="1000"/>
|
||||||
|
<integer value="1000"/>
|
||||||
</visibilityPriorities>
|
</visibilityPriorities>
|
||||||
<customSpacing>
|
<customSpacing>
|
||||||
<real value="3.4028234663852886e+38"/>
|
<real value="3.4028234663852886e+38"/>
|
||||||
<real value="3.4028234663852886e+38"/>
|
<real value="3.4028234663852886e+38"/>
|
||||||
|
<real value="3.4028234663852886e+38"/>
|
||||||
</customSpacing>
|
</customSpacing>
|
||||||
</stackView>
|
</stackView>
|
||||||
</subviews>
|
</subviews>
|
||||||
@@ -78,4 +87,7 @@
|
|||||||
<point key="canvasLocation" x="-180" y="74"/>
|
<point key="canvasLocation" x="-180" y="74"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
|
<resources>
|
||||||
|
<image name="NSActionTemplate" width="14" height="14"/>
|
||||||
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
@@ -25,12 +25,6 @@
|
|||||||
/* Toolbar item with action menu */
|
/* Toolbar item with action menu */
|
||||||
"ACTION" = "Action";
|
"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 */
|
/* Menu displayed for adding special custom keys */
|
||||||
"ADD_CUSTOM_FIELD_CONTEXT_MENU" = "Add Custom Field Menu";
|
"ADD_CUSTOM_FIELD_CONTEXT_MENU" = "Add Custom Field Menu";
|
||||||
|
|
||||||
@@ -101,8 +95,11 @@
|
|||||||
/* Menu item for automatic trash creation */
|
/* Menu item for automatic trash creation */
|
||||||
"AUTOCREATE_TRASH_FOLDER" = "Create Automatically";
|
"AUTOCREATE_TRASH_FOLDER" = "Create Automatically";
|
||||||
|
|
||||||
/* Message text in the autotype selection window. Placeholder is %1 - windowTitle */
|
/* Message text in the autotype confirmation window. Placeholder is %1 - applicationName, %2 windowTitle */
|
||||||
"AUTOTYPE_CANDIDATE_SELECTION_WINDOW_MESSAGE_%@" = "There are multiple matches for the current window: %@. Please select which match should be used.";
|
"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 */
|
/* Window title for the stand-alone password creator window */
|
||||||
"AUTOTYPE_DOCTOR_RESULTS_WINDOW_TITLE" = "Autotype Doctor";
|
"AUTOTYPE_DOCTOR_RESULTS_WINDOW_TITLE" = "Autotype Doctor";
|
||||||
@@ -714,6 +711,9 @@
|
|||||||
/* Checkbox in dialog to set the selection as default file change strategy! */
|
/* 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.";
|
"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 */
|
/* Action button in Notification to show the Autotype Doctor */
|
||||||
"SHOW_AUTOTYPE_DOCTOR" = "Show Autotype Doctor";
|
"SHOW_AUTOTYPE_DOCTOR" = "Show Autotype Doctor";
|
||||||
|
|
||||||
@@ -736,6 +736,9 @@
|
|||||||
/* Toolbar item to perform autotype */
|
/* Toolbar item to perform autotype */
|
||||||
"TOOLBAR_PERFORM_AUTOTYPE_FOR_ENTRY" = "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 button label for choosing the keyfile */
|
||||||
"TOUCHBAR_CHOOSE_KEYFILE" = "Choose Keyfile";
|
"TOUCHBAR_CHOOSE_KEYFILE" = "Choose Keyfile";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user