mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 02:22:28 +00:00
moved nextKeyView to xib
This commit is contained in:
@@ -83,6 +83,9 @@ DQ
|
|||||||
<string>NSAllRomanInputSourcesLocaleIdentifier</string>
|
<string>NSAllRomanInputSourcesLocaleIdentifier</string>
|
||||||
</allowedInputSourceLocales>
|
</allowedInputSourceLocales>
|
||||||
</secureTextFieldCell>
|
</secureTextFieldCell>
|
||||||
|
<connections>
|
||||||
|
<outlet property="nextKeyView" destination="241" id="axS-Y0-6Hv"/>
|
||||||
|
</connections>
|
||||||
</secureTextField>
|
</secureTextField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="408">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="408">
|
||||||
<rect key="frame" x="366" y="140" width="29" height="25"/>
|
<rect key="frame" x="366" y="140" width="29" height="25"/>
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)label {
|
- (NSString *)label {
|
||||||
return NSLocalizedString(@"INTEGRATION_SETTINGS", "");
|
return NSLocalizedString(@"INTEGRATION_SETTINGS", "Label for the integration settings tab");
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)awakeFromNib {
|
- (void)awakeFromNib {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)label {
|
- (NSString *)label {
|
||||||
return NSLocalizedString(@"PLUGIN_SETTINGS", "");
|
return NSLocalizedString(@"PLUGIN_SETTINGS", "Label for plugin settings tab");
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
|
|||||||
@@ -43,8 +43,9 @@ NSString *const MPTokenValueTransformerName = @"com.hicknhack.macpass.MPTokenVal
|
|||||||
[NSValueTransformer registerValueTransformerWithName:MPExpiryDateValueTransformerName
|
[NSValueTransformer registerValueTransformerWithName:MPExpiryDateValueTransformerName
|
||||||
transformedValueClass:NSString.class
|
transformedValueClass:NSString.class
|
||||||
returningTransformedValueWithBlock:^id(id value) {
|
returningTransformedValueWithBlock:^id(id value) {
|
||||||
|
NSString * _Nonnull noExpirationDateString = NSLocalizedString(@"NO_EXPIRE_DATE_SET", "Expiration date format, when item does not expire");
|
||||||
if(![value isKindOfClass:NSDate.class]) {
|
if(![value isKindOfClass:NSDate.class]) {
|
||||||
return NSLocalizedString(@"NO_EXPIRE_DATE_SET","");
|
return noExpirationDateString;
|
||||||
}
|
}
|
||||||
static NSDateFormatter *formatter;
|
static NSDateFormatter *formatter;
|
||||||
if(!formatter) {
|
if(!formatter) {
|
||||||
@@ -54,10 +55,10 @@ NSString *const MPTokenValueTransformerName = @"com.hicknhack.macpass.MPTokenVal
|
|||||||
}
|
}
|
||||||
|
|
||||||
if([value isEqualToDate:[NSDate distantFuture]]) {
|
if([value isEqualToDate:[NSDate distantFuture]]) {
|
||||||
return NSLocalizedString(@"NO_EXPIRE_DATE_SET", "");
|
return noExpirationDateString;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *template = NSLocalizedString(@"EXPIRES_AT_DATE_%@", "");
|
NSString *template = NSLocalizedString(@"EXPIRES_AT_DATE_%@", "Format to returen the date an item expires. Includes %@ placehoder for date");
|
||||||
return [[NSString alloc] initWithFormat:template, [formatter stringFromDate:value]];
|
return [[NSString alloc] initWithFormat:template, [formatter stringFromDate:value]];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)label {
|
- (NSString *)label {
|
||||||
return NSLocalizedString(@"WORKFLOW_SETTINGS", "");
|
return NSLocalizedString(@"WORKFLOW_SETTINGS", "Label for the workflow settings tab");
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)willShowTab {
|
- (void)willShowTab {
|
||||||
|
|||||||
Reference in New Issue
Block a user