This commit is contained in:
2026-03-09 17:34:08 +08:00
parent c1ace5f53e
commit 0af7428353
55 changed files with 1630 additions and 665 deletions

View File

@@ -108,8 +108,10 @@
NSFontAttributeName : [UIFont systemFontOfSize:13],
NSForegroundColorAttributeName : [UIColor whiteColor]
};
NSString *replyText =
[NSString stringWithFormat:@" %@ ", KBLocalized(@"Reply")];
[attrName appendAttributedString:[[NSAttributedString alloc]
initWithString:@" 回复 "
initWithString:replyText
attributes:replyAttrs]];
NSDictionary *toUserAttrs = @{
@@ -133,8 +135,9 @@
self.timeLabel.text = [reply formattedTime];
//
NSString *likeText =
reply.likeCount > 0 ? [self formatLikeCount:reply.likeCount] : @"赞";
NSString *likeText = reply.likeCount > 0
? [self formatLikeCount:reply.likeCount]
: KBLocalized(@"Like");
self.likeButton.textLabel.text = likeText;
UIImage *likeImage = reply.liked
@@ -212,7 +215,7 @@
if (!_replyButton) {
_replyButton = [UIButton buttonWithType:UIButtonTypeCustom];
_replyButton.titleLabel.font = [UIFont systemFontOfSize:11];
[_replyButton setTitle:@"回复" forState:UIControlStateNormal];
[_replyButton setTitle:KBLocalized(@"Reply") forState:UIControlStateNormal];
[_replyButton setTitleColor:[UIColor colorWithHex:0x9F9F9F] forState:UIControlStateNormal];
[_replyButton addTarget:self
action:@selector(replyButtonTapped)