key缺少,添加权限多语言

This commit is contained in:
2026-03-07 13:29:29 +08:00
parent e03287605c
commit cbcf8c4197
47 changed files with 986 additions and 225 deletions

View File

@@ -45,12 +45,12 @@
- (void)viewDidLoad {
[super viewDidLoad];
// self.title = KBLocalized(@"皮肤中心");
// self.title = KBLocalized(@"Skin Center");
self.view.backgroundColor = [UIColor whiteColor];
self.skins = @[
@{
@"id": @"local本地",
@"name": KBLocalized(@"粉色皮肤"),
@"name": KBLocalized(@"Pink skin"),
// zip_url bundle:// +
@"zip_url": @"bundle://fense.zip",
@@ -64,7 +64,7 @@
},
@{
@"id": @"remote002",
@"name": KBLocalized(@"远程皮肤"),
@"name": KBLocalized(@"Remote skin"),
// zip_url bundle:// +
@"zip_url": @"http://gx.zhukeping.com/download/Christmas.zip",
@@ -85,7 +85,7 @@
//
UIButton *reset = [UIButton buttonWithType:UIButtonTypeSystem];
[reset setTitle:KBLocalized(@"恢复默认皮肤") forState:UIControlStateNormal];
[reset setTitle:KBLocalized(@"Restore default skin") forState:UIControlStateNormal];
reset.titleLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
reset.layer.cornerRadius = 8.0;
reset.layer.borderWidth = 1.0;
@@ -138,14 +138,13 @@
NSDictionary *skin = self.skins[idx];
if (!skin) return;
if (idx == 0) {
// NSString *title = (indexPath.item < self.dataSource.count) ? self.dataSource[indexPath.item] : KBLocalized(@"专属皮肤002");
// 002.zip id便
static NSString * const kKBBundleSkinId002 = @"bundle_skin_fense";
[KBSkinInstallBridge publishBundleSkinRequestWithId:kKBBundleSkinId002
name:@"" ?: kKBBundleSkinId002
zipName:@"fense.zip"
iconShortNames:nil];
[KBHUD showInfo:KBLocalized(@"已通知键盘解压,切换到自定义键盘即可生效")];
[KBHUD showInfo:KBLocalized(@"Keyboard has been notified to unzip. Switch to the custom keyboard to apply.")];
}else if (idx == 1){
[[KBSkinService shared] applySkinWithJSON:skin
fromViewController:self
@@ -161,7 +160,7 @@
name:@"" ?: kKBBundleSkinId002
zipName:@"Christmas.zip"
iconShortNames:nil];
[KBHUD showInfo:KBLocalized(@"已通知键盘解压,切换到自定义键盘即可生效")];
[KBHUD showInfo:KBLocalized(@"Keyboard has been notified to unzip. Switch to the custom keyboard to apply.")];
}
}