Quellcode durchsuchen

1.多国语言适配

huangxiaodong vor 4 Monaten
Ursprung
Commit
43929213ec

+ 2 - 2
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -6214,7 +6214,7 @@
 				CODE_SIGN_ENTITLEMENTS = "隐私保护.entitlements";
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 19;
+				CURRENT_PROJECT_VERSION = 20;
 				DEVELOPMENT_TEAM = 6SV76WTUUR;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
@@ -6293,7 +6293,7 @@
 				CODE_SIGN_ENTITLEMENTS = "隐私保护.entitlements";
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 19;
+				CURRENT_PROJECT_VERSION = 20;
 				DEVELOPMENT_TEAM = 6SV76WTUUR;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",

+ 1 - 1
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -1628,7 +1628,7 @@
 #pragma mark 弹框流程 1 强制盒子更新弹窗
 - (void)handelUpgradeInfoFun
 {
-    //self.otaUpgradeInfoModel.data.status = 201;
+    //self.otaUpgradeInfoModel.data.status = 6;
     if(self.otaUpgradeInfoModel.data.status < 1){  //-1=没有更新 0=下载中
         //2. APP版本更新弹窗
         [self checkVersionFun];

+ 34 - 3
创维盒子/双子星云手机/CloudPlayer/View/imageVersionRenewTipView.m

@@ -30,8 +30,24 @@
     _whiteBgView.backgroundColor = [UIColor whiteColor];
     [self addSubview:_whiteBgView];
     
+    CGFloat curWhiteBgHeight = 369.f;
+    
+    ///获取设备当前地区的代码和APP语言环境
+    NSString *languageCode = [NSLocale preferredLanguages][0];
+
+    //目前支持 中文(简体 繁体) 英文 日语
+    if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
+    {
+    }
+    else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
+    {
+    }
+    else{
+        curWhiteBgHeight = 400;
+    }
+    
     [_whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.height.mas_equalTo(369.f);
+        make.height.mas_equalTo(curWhiteBgHeight);
         //make.width.mas_equalTo(323.f*AUTOSCALE);
         make.width.mas_equalTo(323.f);
         make.centerY.mas_equalTo(0.f);
@@ -99,7 +115,6 @@
         make.top.mas_equalTo(150);
     }];
     
-
     
     _updateNowBut = [[UIButton alloc] init];
     [_updateNowBut setTitle:NSLocalizedString(@"image_version_Update_Now",nil) forState:UIControlStateNormal];
@@ -177,8 +192,24 @@
         return;
     }
     
+    CGFloat curWhiteBgHeight = 470.f;
+    
+    ///获取设备当前地区的代码和APP语言环境
+    NSString *languageCode = [NSLocale preferredLanguages][0];
+
+    //目前支持 中文(简体 繁体) 英文 日语
+    if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
+    {
+    }
+    else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
+    {
+    }
+    else{
+        curWhiteBgHeight = 520;
+    }
+    
     [_whiteBgView mas_updateConstraints:^(MASConstraintMaker *make) {
-        make.height.mas_equalTo(470.f);
+        make.height.mas_equalTo(curWhiteBgHeight);
     }];
     
     _updateNowBut.userInteractionEnabled = NO;

+ 17 - 1
创维盒子/双子星云手机/CloudPlayer/View/imageVersionUpdateFailView.m

@@ -23,8 +23,24 @@
     whiteBgView.backgroundColor = [UIColor whiteColor];
     [self addSubview:whiteBgView];
     
+    CGFloat curWhiteBgHeight = 400.f;
+    
+    ///获取设备当前地区的代码和APP语言环境
+    NSString *languageCode = [NSLocale preferredLanguages][0];
+
+    //目前支持 中文(简体 繁体) 英文 日语
+    if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
+    {
+    }
+    else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
+    {
+    }
+    else{
+        curWhiteBgHeight = 500;
+    }
+    
     [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.height.mas_equalTo(400.f);
+        make.height.mas_equalTo(curWhiteBgHeight);
         make.width.mas_equalTo(300.f);
         make.centerY.mas_equalTo(-40.f);
         make.centerX.mas_equalTo(0.f);

+ 15 - 0
创维盒子/双子星云手机/en.lproj/Localizable.strings

@@ -641,3 +641,18 @@
 "go_setting_title" = "Go to Settings";
 "cloudPhone_Model_open_tip"   = "Cloud phone mode has been enabled, next time you launch the app, you will directly enter the cloud phone";
 "cloudPhone_Model_close_tip"   = "Cloud phone mode has been turned off. Next time you launch the app, you will directly enter the NAS";
+
+
+//1.4.4
+"cloudPhone_player_set_resolution"   = "Resolution";
+"image_version_pop_144_tip1"   = "The device is not updated to the latest version. Please update it quickly. This process may take a while, so please be patient and careful!";
+"image_version_pop_144_tip1_2"   = "Keep the box's network connection stable during the upgrade to prevent interruptions.";
+"image_version_pop_144_tip2_1"   = "The upgrade takes time. Avoid turning off or unplugging to prevent system damage. Post-upgrade, the box restarts automatically, with the TV showing the restart, which is normal.";
+"image_version_pop_144_tip2_2"   = "If the upgrade isn't done in 15 minutes, manually restart the device for another upgrade attempt. If it still fails, provide the device's serial number and contact our customer service team.";
+"image_version_Update_Now"   = "Update immediately";
+"image_version_Update_ing"   = "Updating...";
+"image_version_update_suc_title"   = "Device upgrade successful";
+"common_I_know" = "I understand";
+"image_version_update_fail_title"   = "Device upgrade failed";
+"image_version_update_fail_tip1"   = "1、Please check if your device's connection to the mobile network is normal.\n2、You can try powering off and restarting the device for the upgrade, and confirm whether it was successful after the upgrade.\n3、If the upgrade still fails, please provide the device's serial number";
+"image_version_update_fail_tip2"   = "contact our customer service team for assistance";

+ 14 - 0
创维盒子/双子星云手机/zh-Hant.lproj/Localizable.strings

@@ -642,3 +642,17 @@
 "go_setting_title" = "去設定>";
 "cloudPhone_Model_open_tip"   = "雲手機模式已開啟,下次啟動APP直接進入雲手機";
 "cloudPhone_Model_close_tip"   = "雲手機模式已關閉,下次啟動APP直接進入NAS";
+
+//1.4.4
+"cloudPhone_player_set_resolution"   = "解析度";
+"image_version_pop_144_tip1"   = "盒子設備目前未升級到最新版本,請盡快升級。此過程可能耗時較長,請耐心等待並謹慎操作!";
+"image_version_pop_144_tip1_2"   = "升級過程中確保盒子與手機網絡連接穩定,以避免升級中斷。";
+"image_version_pop_144_tip2_1"   = "升級過程需要較長時間,請在此時不要關閉設備或拔掉電源,否則可能會導致系統損壞。升級完成後,盒子設備會自動重啟,電視螢幕上也會顯示重啟操作,這是正常現象。";
+"image_version_pop_144_tip2_2"   = "如果超過15分鐘升級仍未完成,請手動斷電重啟設備重新升級。若設備未能成功升級至最新版本,請提供設備的序號(SN)並聯系我們的客服團隊獲取幫助。";
+"image_version_Update_Now"   = "立即更新";
+"image_version_Update_ing"   = "正在升級中...";
+"image_version_update_suc_title"   = "設備升級成功";
+"common_I_know" = "我知道了";
+"image_version_update_fail_title"   = "設備升級失敗";
+"image_version_update_fail_tip1"   = "1、請檢查您的盒子與手機網絡連接是否正常。\n2、您可以嘗試斷電重啟盒子來進行升級,並在升級完成後確認是否成功。\n3、如果仍未能成功升級,請提供設備的序號\n";
+"image_version_update_fail_tip2"   = "並聯系我們的客服團隊獲取幫助";