补充key

This commit is contained in:
2026-03-07 13:43:26 +08:00
parent cbcf8c4197
commit 6327f31f11
12 changed files with 49 additions and 20 deletions

View File

@@ -196,7 +196,7 @@
- (UILabel *)placeholderLabel {
if (!_placeholderLabel) {
_placeholderLabel = [[UILabel alloc] init];
_placeholderLabel.text = @"Send A Message";
_placeholderLabel.text = KBLocalized(@"Send A Message");
_placeholderLabel.textColor = [UIColor whiteColor];
_placeholderLabel.font = [UIFont systemFontOfSize:14];
_placeholderLabel.textAlignment = NSTextAlignmentCenter;

View File

@@ -435,7 +435,7 @@
- (UILabel *)cancelLabel {
if (!_cancelLabel) {
_cancelLabel = [[UILabel alloc] init];
_cancelLabel.text = @"Release To Cancel";
_cancelLabel.text = KBLocalized(@"Release To Cancel");
_cancelLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
_cancelLabel.textColor = [UIColor whiteColor];
}

View File

@@ -56,7 +56,7 @@
_character = character;
self.titleLabel.text = character.characterName ?: @"";
self.downloadLabel.text = character.download ?: @"";
self.downloadLabel.text = character.download ?: [NSString stringWithFormat:@"%@: 0", KBLocalized(@"Download")];
self.descLabel.text = character.characterBackground ?: @"";
[self.avatarView kb_setImageURL:character.avatarUrl placeholder:KBAvatarPlaceholderImage];
[self kb_updateSaveButtonWithAdded:character.added];
@@ -152,7 +152,7 @@
} else {
self.saveButton.enabled = YES;
self.saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];
[self.saveButton setTitle:@"Save" forState:UIControlStateNormal];
[self.saveButton setTitle:KBLocalized(@"Save") forState:UIControlStateNormal];
[self.saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
}
}
@@ -203,7 +203,7 @@
_titleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_titleLabel.font = [KBFont medium:16];
_titleLabel.textAlignment = NSTextAlignmentCenter;
_titleLabel.text = @"High EQ"; //
_titleLabel.text = @"";
}
return _titleLabel;
}
@@ -215,7 +215,7 @@
_downloadLabel.backgroundColor = [UIColor colorWithHex:0xEDFFFD];
_downloadLabel.font = [KBFont regular:13];
_downloadLabel.textAlignment = NSTextAlignmentCenter;
_downloadLabel.text = @"Download: 1 Million";
_downloadLabel.text = [NSString stringWithFormat:@"%@: 0", KBLocalized(@"Download")];
}
return _downloadLabel;
}
@@ -236,7 +236,7 @@
_descLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_descLabel.font = [KBFont medium:14];
_descLabel.numberOfLines = 0;
_descLabel.text = @"Be Neither Too Close\nNor Too Distant";
_descLabel.text = @"";
}
return _descLabel;
}
@@ -244,7 +244,7 @@
- (UIButton *)saveButton {
if (!_saveButton) {
_saveButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_saveButton setTitle:@"Save" forState:UIControlStateNormal];
[_saveButton setTitle:KBLocalized(@"Save") forState:UIControlStateNormal];
[_saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
_saveButton.titleLabel.font = [KBFont medium:16];
_saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];

View File

@@ -63,7 +63,7 @@
[self.checkButton addTarget:self action:@selector(toggleCheck) forControlEvents:UIControlEventTouchUpInside];
self.descLabel = [UILabel new];
self.descLabel.text = @"allow log in with apple id?";
self.descLabel.text = KBLocalized(@"Allow log in with Apple ID?");
self.descLabel.textColor = [UIColor blackColor];
self.descLabel.font = [UIFont systemFontOfSize:16];
@@ -85,7 +85,7 @@
self.continueButton.layer.cornerRadius = 10;
self.continueButton.layer.borderWidth = 1.0;
self.continueButton.layer.borderColor = [UIColor colorWithWhite:0.8 alpha:1.0].CGColor;
[self.continueButton setTitle:@"Continue" forState:UIControlStateNormal];
[self.continueButton setTitle:KBLocalized(@"Continue") forState:UIControlStateNormal];
[self.continueButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
self.continueButton.titleLabel.font = [UIFont boldSystemFontOfSize:20];
[self.continueButton addTarget:self action:@selector(onContinue) forControlEvents:UIControlEventTouchUpInside];

View File

@@ -44,7 +44,7 @@
}
- (void)configWithDetail:(KBShopThemeDetailModel *)detail {
NSString *title = detail.themeName.length ? detail.themeName : @"Dopamine";
NSString *title = detail.themeName.length ? detail.themeName : @"";
NSString *download = detail.themeDownload.length ? detail.themeDownload : @"0";
NSString *downloadText = [NSString stringWithFormat:@"%@: %@", KBLocalized(@"Download"), download];
self.leftLabel.text = title;
@@ -72,7 +72,7 @@
_leftLabel = [UILabel new];
_leftLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_leftLabel.font = [KBFont medium:16];
_leftLabel.text = @"Dopamine";
_leftLabel.text = @"";
}
return _leftLabel;
}
@@ -82,7 +82,7 @@
_rightLabel.textColor = [UIColor colorWithHex:KBColorValue];
_rightLabel.font = [KBFont regular:13];
_rightLabel.textAlignment = NSTextAlignmentRight;
_rightLabel.text = @"Download: 1 Million";
_rightLabel.text = [NSString stringWithFormat:@"%@: 0", KBLocalized(@"Download")];
}
return _rightLabel;
}

View File

@@ -77,7 +77,7 @@
}
- (void)configTitle:(NSString *)title currency:(NSString *)currency price:(NSString *)price strike:(nullable NSString *)strike {
self.titleLabel.text = title.length ? title : @"1 Month";
self.titleLabel.text = title.length ? title : KBLocalized(@"Monthly Subscription");
self.currencyLabel.text = currency.length ? currency : @"$";
self.priceLabel.text = price.length ? price : @"6.90";
self.strikeLabel.hidden = (strike.length == 0);
@@ -121,7 +121,7 @@
- (UILabel *)titleLabel {
if (!_titleLabel) {
_titleLabel = [UILabel new];
_titleLabel.text = @"1 Month";
_titleLabel.text = KBLocalized(@"Monthly Subscription");
_titleLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_titleLabel.font = [KBFont medium:13];
}

View File

@@ -61,8 +61,8 @@
}
- (void)configWithName:(NSString *)name text:(NSString *)text {
self.nameLabel.text = name.length ? name : @"User";
self.contentLabel.text = text.length ? text : @"I highly recommend this app.";
self.nameLabel.text = name.length ? name : KBLocalized(@"User");
self.contentLabel.text = text.length ? text : KBLocalized(@"I highly recommend this app.");
}
#pragma mark - Lazy
@@ -87,7 +87,7 @@
_nameLabel = [UILabel new];
_nameLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_nameLabel.font = [KBFont medium:13];
_nameLabel.text = @"Sdsd666";
_nameLabel.text = KBLocalized(@"User");
}
return _nameLabel;
}
@@ -117,10 +117,9 @@
_contentLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_contentLabel.font = [KBFont regular:10];
_contentLabel.numberOfLines = 2;
_contentLabel.text = @"I Highly Recommend This App. It Taught Me How To Chat";
_contentLabel.text = KBLocalized(@"I highly recommend this app.");
}
return _contentLabel;
}
@end