在 i18nGiftNameMap.h 中新增多种语言的礼物名称属性,包括乌兹别克语、西班牙语、俄语和葡萄牙语;在 PIGiftInfoSegmentedView.m 中更新礼物标签逻辑,以支持新添加的语言属性,确保礼物信息的本地化处理更加全面。
This commit is contained in:
@@ -15,6 +15,10 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, copy) NSString *en;
|
||||
@property (nonatomic, copy) NSString *ar;
|
||||
@property (nonatomic, copy) NSString *tr;
|
||||
@property (nonatomic, copy) NSString *uz;
|
||||
@property (nonatomic, copy) NSString *es;
|
||||
@property (nonatomic, copy) NSString *ru;
|
||||
@property (nonatomic, copy) NSString *pt;
|
||||
|
||||
@end
|
||||
|
||||
|
@@ -327,11 +327,31 @@
|
||||
canAddGift = true;
|
||||
[tempTitles addObject:tab.nameMap.tr];
|
||||
}
|
||||
} else if (isMSPT()) {
|
||||
if ([tab.nameMap.pt length] > 0) {
|
||||
canAddGift = true;
|
||||
[tempTitles addObject:tab.nameMap.pt];
|
||||
}
|
||||
}else if (isMSES()) {
|
||||
if ([tab.nameMap.es length] > 0) {
|
||||
canAddGift = true;
|
||||
[tempTitles addObject:tab.nameMap.es];
|
||||
}
|
||||
} else if (isMSRU()) {
|
||||
if ([tab.nameMap.ru length] > 0) {
|
||||
canAddGift = true;
|
||||
[tempTitles addObject:tab.nameMap.ru];
|
||||
}
|
||||
} else if (isMSZH()) {
|
||||
if ([tab.nameMap.zh length] > 0) {
|
||||
canAddGift = true;
|
||||
[tempTitles addObject:tab.nameMap.zh];
|
||||
}
|
||||
} else if (isMSUZ()) {
|
||||
if ([tab.nameMap.uz length] > 0) {
|
||||
canAddGift = true;
|
||||
[tempTitles addObject:tab.nameMap.uz];
|
||||
}
|
||||
} else {
|
||||
if ([tab.nameMap.en length] > 0) {
|
||||
canAddGift = true;
|
||||
|
Reference in New Issue
Block a user