key缺少,添加权限多语言
This commit is contained in:
@@ -105,7 +105,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
}
|
||||
case KBSkinDetailSectionTitle: {
|
||||
KBSkinSectionTitleCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kSectionTitleCellId forIndexPath:indexPath];
|
||||
[cell config:@"Recommended Skin"];
|
||||
[cell config:KBLocalized(@"Recommended Skin")];
|
||||
return cell;
|
||||
}
|
||||
case KBSkinDetailSectionGrid: {
|
||||
@@ -248,11 +248,11 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
- (void)handleDownloadAction {
|
||||
// if (self.isProcessingAction) { return; }
|
||||
if (self.themeId.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"主题信息缺失")];
|
||||
[KBHUD showInfo:KBLocalized(@"Theme information missing")];
|
||||
return;
|
||||
}
|
||||
if (!self.detailModel) {
|
||||
[KBHUD showInfo:KBLocalized(@"正在加载主题详情")];
|
||||
[KBHUD showInfo:KBLocalized(@"Loading theme details")];
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
// weakSelf.isProcessingAction = NO;
|
||||
[KBHUD dismiss];
|
||||
if (error || !success) {
|
||||
NSString *msg = error.localizedDescription ?: KBLocalized(@"购买失败");
|
||||
NSString *msg = error.localizedDescription ?: KBLocalized(@"Purchase failed");
|
||||
[KBHUD showInfo:msg];
|
||||
return;
|
||||
}
|
||||
@@ -310,7 +310,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
NSString *zipURL = [skin[@"zip_url"] isKindOfClass:NSString.class] ? skin[@"zip_url"] : @"";
|
||||
if (skin.count == 0 || zipURL.length == 0) {
|
||||
[KBHUD dismiss];
|
||||
[KBHUD showInfo:KBLocalized(@"下载信息缺失")];
|
||||
[KBHUD showInfo:KBLocalized(@"Download information missing")];
|
||||
return;
|
||||
}
|
||||
NSLog(@"⬇️[SkinDetail] download request id=%@ zip=%@ force=YES",
|
||||
@@ -329,7 +329,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
[strongSelf.shopVM restoreThemeWithId:themeId completion:nil];
|
||||
}
|
||||
} else {
|
||||
[KBHUD showInfo:KBLocalized(@"下载失败")];
|
||||
[KBHUD showInfo:KBLocalized(@"Download failed")];
|
||||
}
|
||||
}];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user