mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
moved nextKeyView to xib
This commit is contained in:
@@ -83,6 +83,9 @@ DQ
|
||||
<string>NSAllRomanInputSourcesLocaleIdentifier</string>
|
||||
</allowedInputSourceLocales>
|
||||
</secureTextFieldCell>
|
||||
<connections>
|
||||
<outlet property="nextKeyView" destination="241" id="axS-Y0-6Hv"/>
|
||||
</connections>
|
||||
</secureTextField>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="408">
|
||||
<rect key="frame" x="366" y="140" width="29" height="25"/>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
}
|
||||
|
||||
- (NSString *)label {
|
||||
return NSLocalizedString(@"INTEGRATION_SETTINGS", "");
|
||||
return NSLocalizedString(@"INTEGRATION_SETTINGS", "Label for the integration settings tab");
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
}
|
||||
|
||||
- (NSString *)label {
|
||||
return NSLocalizedString(@"PLUGIN_SETTINGS", "");
|
||||
return NSLocalizedString(@"PLUGIN_SETTINGS", "Label for plugin settings tab");
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
|
||||
@@ -43,8 +43,9 @@ NSString *const MPTokenValueTransformerName = @"com.hicknhack.macpass.MPTokenVal
|
||||
[NSValueTransformer registerValueTransformerWithName:MPExpiryDateValueTransformerName
|
||||
transformedValueClass:NSString.class
|
||||
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]) {
|
||||
return NSLocalizedString(@"NO_EXPIRE_DATE_SET","");
|
||||
return noExpirationDateString;
|
||||
}
|
||||
static NSDateFormatter *formatter;
|
||||
if(!formatter) {
|
||||
@@ -54,10 +55,10 @@ NSString *const MPTokenValueTransformerName = @"com.hicknhack.macpass.MPTokenVal
|
||||
}
|
||||
|
||||
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]];
|
||||
}];
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
}
|
||||
|
||||
- (NSString *)label {
|
||||
return NSLocalizedString(@"WORKFLOW_SETTINGS", "");
|
||||
return NSLocalizedString(@"WORKFLOW_SETTINGS", "Label for the workflow settings tab");
|
||||
}
|
||||
|
||||
- (void)willShowTab {
|
||||
|
||||
Reference in New Issue
Block a user