mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 02:09:22 +00:00
Updated localisations. Enabled time slice stepper
This commit is contained in:
@@ -1600,7 +1600,6 @@
|
||||
4C77E36C15B84A240093A587 /* MacPass */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4CB1123E256EB74E00204D1B /* OTP */,
|
||||
4CF9ECAE1BFDEC5700C58E99 /* Plugin */,
|
||||
4C217D8E17A32BCF00609FAA /* Common */,
|
||||
4C104129178CDD26001B5239 /* Categories */,
|
||||
@@ -1756,13 +1755,6 @@
|
||||
name = Protocolls;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4CB1123E256EB74E00204D1B /* OTP */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = OTP;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4CCFA12C1BF0CC7A0078E0A1 /* Databases */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
||||
@@ -15,12 +15,14 @@
|
||||
@property (strong) IBOutlet NSTextField *secretTextField;
|
||||
@property (strong) IBOutlet NSPopUpButton *algorithmPopUpButton;
|
||||
@property (strong) IBOutlet NSTextField *timeStepTextField;
|
||||
@property (strong) IBOutlet NSStepper *timeStepStepper;
|
||||
@property (strong) IBOutlet NSPopUpButton *digitCountPopUpButton;
|
||||
@property (strong) IBOutlet NSImageView *qrCodeImageView;
|
||||
@property (strong) IBOutlet NSGridView *gridView;
|
||||
@property (strong) IBOutlet NSPopUpButton *typePopUpButton;
|
||||
|
||||
@property (strong) KPKTimeOTPGenerator *generator;
|
||||
@property NSInteger timeSlice;
|
||||
|
||||
@end
|
||||
|
||||
@@ -78,6 +80,9 @@ typedef NS_ENUM(NSUInteger, MPOTPType) {
|
||||
[self.typePopUpButton.menu addItem:steamItem];
|
||||
[self.typePopUpButton.menu addItem:customItem];
|
||||
|
||||
[self.timeStepTextField bind:NSValueBinding toObject:self withKeyPath:NSStringFromSelector(@selector(timeSlice)) options:nil];
|
||||
[self.timeStepStepper bind:NSValueBinding toObject:self withKeyPath:NSStringFromSelector(@selector(timeSlice)) options:nil];
|
||||
|
||||
[self _updateView:MPOTPUpdateSourceEntry];
|
||||
}
|
||||
|
||||
@@ -131,9 +136,9 @@ typedef NS_ENUM(NSUInteger, MPOTPType) {
|
||||
[self.algorithmPopUpButton selectItemWithTag:self.generator.hashAlgorithm];
|
||||
|
||||
[self.digitCountPopUpButton selectItemWithTag:self.generator.numberOfDigits];
|
||||
|
||||
|
||||
|
||||
|
||||
self.timeSlice = self.generator.timeSlice;
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<outlet property="gridView" destination="4gl-4p-0WY" id="hvW-TB-Elg"/>
|
||||
<outlet property="qrCodeImageView" destination="yS5-M0-RSB" id="s9E-ID-WQz"/>
|
||||
<outlet property="secretTextField" destination="Bt8-9X-91R" id="mtn-nj-3oO"/>
|
||||
<outlet property="timeStepStepper" destination="CgJ-Qt-NPu" id="JxC-E8-BXY"/>
|
||||
<outlet property="timeStepTextField" destination="AdN-zI-C65" id="ebN-x3-AIN"/>
|
||||
<outlet property="typePopUpButton" destination="ku7-YD-kkV" id="8zT-Y5-6Wa"/>
|
||||
<outlet property="urlTextField" destination="GJN-85-eYH" id="Y1F-zI-hLu"/>
|
||||
@@ -21,7 +22,7 @@
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView misplaced="YES" id="Hz6-mo-xeY">
|
||||
<customView id="Hz6-mo-xeY">
|
||||
<rect key="frame" x="0.0" y="0.0" width="354" height="301"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
@@ -170,7 +171,7 @@
|
||||
<gridCell row="QY3-TF-Rbs" column="Ecc-pj-MX9" xPlacement="fill" id="bvB-9m-g1U">
|
||||
<textField key="contentView" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="AdN-zI-C65">
|
||||
<rect key="frame" x="109" y="33" width="150" height="21"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" id="bHO-kq-GUf">
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" id="bHO-kq-GUf">
|
||||
<font key="font" usesAppearanceFont="YES"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
|
||||
@@ -416,6 +416,15 @@
|
||||
/* Group column title */
|
||||
"GROUP" = "Group";
|
||||
|
||||
/* SHA 1 hash algoritm menu item */
|
||||
"HASH_SHA1" = "Sha1";
|
||||
|
||||
/* SHA 256 hash algoritm menu item */
|
||||
"HASH_SHA256" = "Sha256";
|
||||
|
||||
/* SHA 512 hash algoritm menu item */
|
||||
"HASH_SHA512" = "Sha512";
|
||||
|
||||
/* History count column title
|
||||
Menu item to toggle display of history count column in entry table */
|
||||
"HISTORY" = "History";
|
||||
@@ -540,6 +549,15 @@
|
||||
/* Select Browser */
|
||||
"OTHER_BROWSER" = "Select Browser…";
|
||||
|
||||
/* OTP custom type */
|
||||
"OTP_CUSTOM" = "Custom settings";
|
||||
|
||||
/* OTP type RFC */
|
||||
"OTP_RFC" = "RFC 6238";
|
||||
|
||||
/* OTP type Steam */
|
||||
"OTP_STEAM" = "Steam";
|
||||
|
||||
/* Value field for reference lookup */
|
||||
"OUTPUT_VALUE" = "Output Value";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user