修正英语翻译

This commit is contained in:
eggmanQQQ
2024-07-16 17:47:09 +08:00
parent 3723161b8f
commit 27faf849f3
2 changed files with 22 additions and 32 deletions

View File

@@ -43,11 +43,11 @@
@property (nonatomic, assign) LittleGamePlayStatus sudGameStatus; @property (nonatomic, assign) LittleGamePlayStatus sudGameStatus;
@property(nonatomic,strong) NSMutableArray *userList; @property(nonatomic,strong) NSMutableArray *userList;
@end @end
@implementation MSRoomGameView @implementation MSRoomGameView
#pragma mark - Private Method #pragma mark - Private Method
- (void)updateSudGame { - (void)updateSudGame {
if(self.currentmgId == self.gameModel.data.mgId.integerValue)return; if(self.currentmgId == self.gameModel.data.mgId.integerValue)return;
@@ -78,7 +78,10 @@
if(isEnterprise == NO){ if(isEnterprise == NO){
[[SudMGP getCfg]setBackgroundMode:NO]; [[SudMGP getCfg]setBackgroundMode:NO];
} }
[SudMGP initSDK:KeyWithType(KeyType_SudGameAppID) appKey:KeyWithType(KeyType_SudGameAppKey) isTestEnv:isTestEnv listener:^(int retCode, const NSString *retMsg) { [SudMGP initSDK:KeyWithType(KeyType_SudGameAppID)
appKey:KeyWithType(KeyType_SudGameAppKey)
isTestEnv:isTestEnv
listener:^(int retCode, const NSString *retMsg) {
if (retCode == 0) { if (retCode == 0) {
if (!self.currentmgId) { if (!self.currentmgId) {
return; return;
@@ -86,7 +89,6 @@
NSString * userId = [AccountInfoStorage instance].getUid; NSString * userId = [AccountInfoStorage instance].getUid;
NSString * roomId = self.gameModel.roomId; NSString * roomId = self.gameModel.roomId;
NSLog(@"用户ID%@房间ID%@, 游戏ID%lld, code:%@", userId, roomId, self.currentmgId, self.code); NSLog(@"用户ID%@房间ID%@, 游戏ID%lld, code:%@", userId, roomId, self.currentmgId, self.code);
//
NSString *language = [NSBundle getLanguageText]; NSString *language = [NSBundle getLanguageText];
if ([language hasPrefix:@"zh"]) { if ([language hasPrefix:@"zh"]) {
@@ -99,11 +101,6 @@
language = @"en-US"; // language = @"en-US"; //
} }
self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:language fsmMG:self rootView:self]; self.fsmAPP2MG = [SudMGP loadMG:userId roomId:roomId code:self.code mgId:self.currentmgId language:language fsmMG:self rootView:self];
} else { } else {
/// , /// ,
NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg); NSLog(@"ISudFSMMG:initGameSDKWithAppID:初始化sdk失败 :%@",retMsg);
@@ -142,9 +139,6 @@
return [extModel model2dictionary]; return [extModel model2dictionary];
} }
/// ///
- (void)onDownMic:(NSInteger)uid { - (void)onDownMic:(NSInteger)uid {
if (uid == [AccountInfoStorage instance].getUid.integerValue) {// if (uid == [AccountInfoStorage instance].getUid.integerValue) {//
@@ -176,7 +170,6 @@
NSLog(@"ISudFSMMG:onGameStarted:游戏开始"); NSLog(@"ISudFSMMG:onGameStarted:游戏开始");
[self notifySelfInState:YES seatIndex:-1];/// [self notifySelfInState:YES seatIndex:-1];///
[self handleSelfReadyEvent];/// [self handleSelfReadyEvent];///
} }
/** /**
@@ -603,32 +596,28 @@
/// MG /// MG
- (void)destroyMG { - (void)destroyMG {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self.fsmAPP2MG destroyMG];
[self.fsmAPP2MG destroyMG]; });
});
} }
#pragma mark - RoomGuestDelegate #pragma mark - RoomGuestDelegate
- (void)onRoomEntered { - (void)onRoomEntered {
[self updateSudGame]; [self updateSudGame];
} }
- (void)onRoomUpdate { - (void)onRoomUpdate {
[self.fsmAPP2MG destroyMG]; [self.fsmAPP2MG destroyMG];
[self updateSudGame]; [self updateSudGame];
} }
#pragma mark - RoomGuestDelegate #pragma mark - RoomGuestDelegate
- (void)handleNIMCustomMessage:(NIMMessage *)message { - (void)handleNIMCustomMessage:(NIMMessage *)message {
} }
- (void)handleNIMNotificationMessage:(NIMMessage *)message { - (void)handleNIMNotificationMessage:(NIMMessage *)message {
NIMNotificationObject *notiMsg = (NIMNotificationObject *)message.messageObject; NIMNotificationObject *notiMsg = (NIMNotificationObject *)message.messageObject;
NIMChatroomNotificationContent *content = (NIMChatroomNotificationContent *)notiMsg.content; NIMChatroomNotificationContent *content = (NIMChatroomNotificationContent *)notiMsg.content;
switch (content.eventType) { switch (content.eventType) {
@@ -659,4 +648,9 @@
} }
return _userList; return _userList;
} }
- (BOOL)isInSudGame {
return YES;
}
@end @end

View File

@@ -268,7 +268,7 @@
"XPMonentsMineViewController2" = "Blocked successfully"; "XPMonentsMineViewController2" = "Blocked successfully";
"XPMonentsViewController1" = "Follow"; "XPMonentsViewController1" = "Following";
"XPMonentsViewController2" = "Recommend"; "XPMonentsViewController2" = "Recommend";
"XPMonentsViewController3" = "Latest"; "XPMonentsViewController3" = "Latest";
@@ -674,12 +674,12 @@
"XPDressUpShopCardViewController11" = "No nameplates temporarily"; "XPDressUpShopCardViewController11" = "No nameplates temporarily";
"XPDressUpShopCardViewController12" = "No vehicles temporarily"; "XPDressUpShopCardViewController12" = "No vehicles temporarily";
"XPMineDressUpViewController0" = "My Dress Up"; "XPMineDressUpViewController0" = "My Item";
"XPMineDressUpViewController1" = "Headwear"; "XPMineDressUpViewController1" = "Avatar Frame";
"XPMineDressUpViewController2" = "Vehicle"; "XPMineDressUpViewController2" = "Mount";
"XPMineDressUpViewController3" = "Nameplate"; "XPMineDressUpViewController3" = "Nameplate";
"XPMineDressUpViewController4" = "Information Card"; "XPMineDressUpViewController4" = "Profile Card";
"XPMineDressUpViewController5" = "Chat Bubbles"; "XPMineDressUpViewController5" = "Chat Bubble";
"XPMineDressUpViewController6" = "Cancel using headwear successfully"; "XPMineDressUpViewController6" = "Cancel using headwear successfully";
"XPMineDressUpViewController7" = "Cancel using vehicle successfully"; "XPMineDressUpViewController7" = "Cancel using vehicle successfully";
"XPMineDressUpViewController8" = "Cancel using nameplate successfully"; "XPMineDressUpViewController8" = "Cancel using nameplate successfully";
@@ -694,7 +694,7 @@
"XPMineDressUpListViewController12" = "Dear user, you don't have any vehicles yet!"; "XPMineDressUpListViewController12" = "Dear user, you don't have any vehicles yet!";
"XPDressUpShopViewController0" = "My Dress Up"; "XPDressUpShopViewController0" = "My Dress Up";
"XPDressUpShopViewController1" = "Dress Up Shop"; "XPDressUpShopViewController1" = "Mall";
"XPDressUpShopViewController6" = "Chat Bubbles"; "XPDressUpShopViewController6" = "Chat Bubbles";
"XPDressUpShopViewController7" = "My Coins"; "XPDressUpShopViewController7" = "My Coins";
"XPDressUpShopViewController8" = "Recharge"; "XPDressUpShopViewController8" = "Recharge";
@@ -2210,10 +2210,6 @@
"XPMonentsMineViewController2" = "Blocked successfully"; "XPMonentsMineViewController2" = "Blocked successfully";
"XPMonentsViewController1" = "Follow";
"XPMonentsViewController2" = "Recommend";
"XPMonentsRecommendHeaderView0" = "Recommended Topics"; "XPMonentsRecommendHeaderView0" = "Recommended Topics";
///XPMonentsContentView.m ///XPMonentsContentView.m