在 i18nGiftNameMap.h 中新增多种语言的礼物名称属性,包括乌兹别克语、西班牙语、俄语和葡萄牙语;在 PIGiftInfoSegmentedView.m 中更新礼物标签逻辑,以支持新添加的语言属性,确保礼物信息的本地化处理更加全面。

This commit is contained in:
edwinQQQ
2025-09-26 17:28:55 +08:00
parent 6f403be02d
commit e45a3f250d
2 changed files with 24 additions and 0 deletions

View File

@@ -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

View File

@@ -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;