moved nextKeyView to xib

This commit is contained in:
michael starke
2017-10-19 17:05:10 +02:00
parent d10a0db960
commit 0fc77d5809
5 changed files with 10 additions and 6 deletions

View File

@@ -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"/>

View File

@@ -49,7 +49,7 @@
}
- (NSString *)label {
return NSLocalizedString(@"INTEGRATION_SETTINGS", "");
return NSLocalizedString(@"INTEGRATION_SETTINGS", "Label for the integration settings tab");
}
- (void)awakeFromNib {

View File

@@ -49,7 +49,7 @@
}
- (NSString *)label {
return NSLocalizedString(@"PLUGIN_SETTINGS", "");
return NSLocalizedString(@"PLUGIN_SETTINGS", "Label for plugin settings tab");
}
- (void)viewDidLoad {

View File

@@ -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]];
}];

View File

@@ -53,7 +53,7 @@
}
- (NSString *)label {
return NSLocalizedString(@"WORKFLOW_SETTINGS", "");
return NSLocalizedString(@"WORKFLOW_SETTINGS", "Label for the workflow settings tab");
}
- (void)willShowTab {