1
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
}];
|
}];
|
||||||
|
|
||||||
self.titleLabel = [[UILabel alloc] init];
|
self.titleLabel = [[UILabel alloc] init];
|
||||||
self.titleLabel.text = KBLocalized(@"设置");
|
self.titleLabel.text = KBLocalized(@"Settings");
|
||||||
self.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold];
|
self.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold];
|
||||||
self.titleLabel.textColor = [UIColor blackColor];
|
self.titleLabel.textColor = [UIColor blackColor];
|
||||||
[self addSubview:self.titleLabel];
|
[self addSubview:self.titleLabel];
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
// 占位内容
|
// 占位内容
|
||||||
UILabel *place = [[UILabel alloc] init];
|
UILabel *place = [[UILabel alloc] init];
|
||||||
place.text = KBLocalized(@"这里是设置内容占位");
|
place.text = KBLocalized(@"Settings content placeholder");
|
||||||
place.textColor = [UIColor darkGrayColor];
|
place.textColor = [UIColor darkGrayColor];
|
||||||
place.font = [UIFont systemFontOfSize:14];
|
place.font = [UIFont systemFontOfSize:14];
|
||||||
[self addSubview:place];
|
[self addSubview:place];
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
"No data" = "No data";
|
"No data" = "No data";
|
||||||
"Failed to parse JSON" = "Failed to parse JSON";
|
"Failed to parse JSON" = "Failed to parse JSON";
|
||||||
"Parse failed" = "Parse failed";
|
"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: %@";
|
"请求失败\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: %@";
|
"响应成功(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: %@";
|
"响应成功(Data)\nURL: %@\n状态: %ld\nContent-Type: %@\n数据: %@" = "Response OK (Data)\nURL: %@\nStatus: %ld\nContent-Type: %@\nData: %@";
|
||||||
@@ -205,9 +205,8 @@
|
|||||||
|
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
"测试" = "Test";
|
"Test" = "Test";
|
||||||
"这里是设置内容占位" = "Settings content placeholder";
|
"Settings content placeholder" = "Settings content placeholder";
|
||||||
"设置" = "Settings";
|
|
||||||
|
|
||||||
// English-only keys with Chinese equivalents
|
// English-only keys with Chinese equivalents
|
||||||
"Change The Nickname" = "Change Nickname";
|
"Change The Nickname" = "Change Nickname";
|
||||||
|
|||||||
@@ -209,7 +209,6 @@
|
|||||||
// 其它
|
// 其它
|
||||||
"Test" = "测试";
|
"Test" = "测试";
|
||||||
"暂无数据" = "暂无数据"; // 已有英文 key "No data"
|
"暂无数据" = "暂无数据"; // 已有英文 key "No data"
|
||||||
"Settings" = "设置";
|
|
||||||
|
|
||||||
|
|
||||||
"Change The Nickname" = "修改名称";
|
"Change The Nickname" = "修改名称";
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
@{ @"title": KBLocalized(@"E-mail"), @"icon": @"my_email_icon", @"color": @(0xFF8A65),@"id":@"4" },
|
@{ @"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(@"Agreement"), @"icon": @"my_agreement_icon", @"color": @(0x4CD964),@"id":@"5" },
|
||||||
@{ @"title": KBLocalized(@"Privacy Policy"), @"icon": @"my_privacy_icon", @"color": @(0x5AC8FA),@"id":@"6" },
|
@{ @"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" },
|
||||||
|
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ autoShowBusinessError:YES
|
|||||||
NSData *data = (NSData *)responseObject;
|
NSData *data = (NSData *)responseObject;
|
||||||
if (![data isKindOfClass:[NSData class]]) {
|
if (![data isKindOfClass:[NSData class]]) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
KBLOG(@"无效响应\nURL: %@\n说明: %@", req.URL.absoluteString, KBLocalized(@"未获取到数据"));
|
KBLOG(@"无效响应\nURL: %@\n说明: %@", req.URL.absoluteString, KBLocalized(@"No data received"));
|
||||||
#endif
|
#endif
|
||||||
if (completion) completion(nil, response, [NSError errorWithDomain:KBNetworkErrorDomain code:KBNetworkErrorInvalidResponse userInfo:@{NSLocalizedDescriptionKey:KBLocalized(@"No data")}]);
|
if (completion) completion(nil, response, [NSError errorWithDomain:KBNetworkErrorDomain code:KBNetworkErrorInvalidResponse userInfo:@{NSLocalizedDescriptionKey:KBLocalized(@"No data")}]);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
- (void)setupTextField {
|
- (void)setupTextField {
|
||||||
CGRect frame = CGRectMake(([UIScreen mainScreen].bounds.size.width - 200)/2, ([UIScreen mainScreen].bounds.size.height - 200)/2, 200, 200);
|
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 = [[UITextView alloc] initWithFrame:frame];
|
||||||
self.textView.text = KBLocalized(@"测试");
|
self.textView.text = KBLocalized(@"Test");
|
||||||
self.textView.layer.borderColor = [UIColor blackColor].CGColor;
|
self.textView.layer.borderColor = [UIColor blackColor].CGColor;
|
||||||
self.textView.layer.borderWidth = 0.5;
|
self.textView.layer.borderWidth = 0.5;
|
||||||
[self.view addSubview:self.textView];
|
[self.view addSubview:self.textView];
|
||||||
|
|||||||
Reference in New Issue
Block a user