This commit is contained in:
2026-03-04 18:09:11 +08:00
parent 2d02e05956
commit e7567909bc
6 changed files with 8 additions and 10 deletions

View File

@@ -26,7 +26,7 @@
}];
self.titleLabel = [[UILabel alloc] init];
self.titleLabel.text = KBLocalized(@"设置");
self.titleLabel.text = KBLocalized(@"Settings");
self.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold];
self.titleLabel.textColor = [UIColor blackColor];
[self addSubview:self.titleLabel];
@@ -37,7 +37,7 @@
//
UILabel *place = [[UILabel alloc] init];
place.text = KBLocalized(@"这里是设置内容占位");
place.text = KBLocalized(@"Settings content placeholder");
place.textColor = [UIColor darkGrayColor];
place.font = [UIFont systemFontOfSize:14];
[self addSubview:place];

View File

@@ -92,7 +92,7 @@
"No data" = "No data";
"Failed to parse JSON" = "Failed to parse JSON";
"Parse failed" = "Parse failed";
"未获取到数据" = "No data received";
"No data received" = "No data received";
"请求失败\nURL: %@\n状态: %ld\n错误: %@\nUserInfo: %@" = "Request failed\nURL: %@\nStatus: %ld\nError: %@\nUserInfo: %@";
"响应成功(JSON)\nURL: %@\n状态: %ld\nContent-Type: %@\n数据: %@" = "Response OK (JSON)\nURL: %@\nStatus: %ld\nContent-Type: %@\nData: %@";
"响应成功(Data)\nURL: %@\n状态: %ld\nContent-Type: %@\n数据: %@" = "Response OK (Data)\nURL: %@\nStatus: %ld\nContent-Type: %@\nData: %@";
@@ -205,9 +205,8 @@
// Misc
"测试" = "Test";
"这里是设置内容占位" = "Settings content placeholder";
"设置" = "Settings";
"Test" = "Test";
"Settings content placeholder" = "Settings content placeholder";
// English-only keys with Chinese equivalents
"Change The Nickname" = "Change Nickname";

View File

@@ -209,7 +209,6 @@
// 其它
"Test" = "测试";
"暂无数据" = "暂无数据"; // 已有英文 key "No data"
"Settings" = "设置";
"Change The Nickname" = "修改名称";

View File

@@ -50,7 +50,7 @@
@{ @"title": KBLocalized(@"E-mail"), @"icon": @"my_email_icon", @"color": @(0xFF8A65),@"id":@"4" },
@{ @"title": KBLocalized(@"Agreement"), @"icon": @"my_agreement_icon", @"color": @(0x4CD964),@"id":@"5" },
@{ @"title": KBLocalized(@"Privacy Policy"), @"icon": @"my_privacy_icon", @"color": @(0x5AC8FA),@"id":@"6" },
@{ @"title": KBLocalized(@"测试"), @"icon": @"", @"color": @(0x5AC8FA),@"id":@"7" },
@{ @"title": KBLocalized(@"Test"), @"icon": @"", @"color": @(0x5AC8FA),@"id":@"7" },
]
];

View File

@@ -409,7 +409,7 @@ autoShowBusinessError:YES
NSData *data = (NSData *)responseObject;
if (![data isKindOfClass:[NSData class]]) {
#if DEBUG
KBLOG(@"无效响应\nURL: %@\n说明: %@", req.URL.absoluteString, KBLocalized(@"未获取到数据"));
KBLOG(@"无效响应\nURL: %@\n说明: %@", req.URL.absoluteString, KBLocalized(@"No data received"));
#endif
if (completion) completion(nil, response, [NSError errorWithDomain:KBNetworkErrorDomain code:KBNetworkErrorInvalidResponse userInfo:@{NSLocalizedDescriptionKey:KBLocalized(@"No data")}]);
return;

View File

@@ -20,7 +20,7 @@
- (void)setupTextField {
CGRect frame = CGRectMake(([UIScreen mainScreen].bounds.size.width - 200)/2, ([UIScreen mainScreen].bounds.size.height - 200)/2, 200, 200);
self.textView = [[UITextView alloc] initWithFrame:frame];
self.textView.text = KBLocalized(@"测试");
self.textView.text = KBLocalized(@"Test");
self.textView.layer.borderColor = [UIColor blackColor].CGColor;
self.textView.layer.borderWidth = 0.5;
[self.view addSubview:self.textView];