소스 검색

1.英文版本问题修复

huangxiaodong 3 달 전
부모
커밋
84bbd33f3b

+ 18 - 1
创维盒子/code/Class/Set/clearCache/clearCacheAlretViewController.m

@@ -123,12 +123,29 @@
     }
     
     
+    ///获取设备当前地区的代码和APP语言环境
+    NSString *languageCode = [NSLocale preferredLanguages][0];
+
+    CGFloat butHeight = 20.0;
+    //目前支持 中文(简体 繁体) 英文 日语
+    if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
+    {
+    }
+    else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
+    {
+    }
+    else{
+        butHeight = 40.0;
+    }
+
+    
     //清理缓存中间添加另外的按钮
     selectBut = [[UIButton alloc] init];
     [selectBut setImage:[UIImage imageNamed:@"common_did_check"] forState:UIControlStateSelected];
     [selectBut setImage:[UIImage imageNamed:@"common_un_check"] forState:UIControlStateNormal];
     [selectBut setTitle:NSLocalizedString(@"clear_cache_include_file_Transfer",nil) forState:UIControlStateNormal];
     selectBut.titleLabel.font = [UIFont systemFontOfSize:12.0];
+    selectBut.titleLabel.numberOfLines = 0;
     [selectBut setTitleColor:[UIColor hwColor:@"#151515" alpha:1.0] forState:UIControlStateNormal];
     [selectBut addTarget:self action:@selector(didClickSelectButtonFun:) forControlEvents:UIControlEventTouchUpInside];
     
@@ -141,7 +158,7 @@
         }else{
             make.top.equalTo(titleLabel.mas_bottom).offset(25.f);
         }
-        make.height.mas_equalTo(20);
+        make.height.mas_equalTo(butHeight);
     }];
     
     /*双按钮*/

+ 15 - 1
创维盒子/code/Class/Set/previewFile/shareRecordDetailsHWViewController.m

@@ -233,6 +233,20 @@
         make.height.mas_equalTo(20);
     }];
     
+    ///获取设备当前地区的代码和APP语言环境
+    NSString *languageCode = [NSLocale preferredLanguages][0];
+    CGFloat curlaberW = 80.0;
+    //目前支持 中文(简体 繁体) 英文 日语
+    if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
+    {
+    }
+    else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
+    {
+    }
+    else{
+        curlaberW = 110.0;
+    }
+    
     //提取码
     _extractCodeTipLab = [[UILabel alloc] init];
     _extractCodeTipLab.font = [UIFont systemFontOfSize:14.f];
@@ -242,7 +256,7 @@
     
     [_extractCodeTipLab mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.mas_equalTo(32);
-        make.width.mas_equalTo(80);
+        make.width.mas_equalTo(curlaberW);
         make.top.equalTo(remainingNumberTipLabel.mas_bottom).offset(10);
         make.height.mas_equalTo(20);
     }];

+ 3 - 3
创维盒子/code/en.lproj/Localizable.strings

@@ -336,7 +336,7 @@
 "File_upload_path_set"   = "Upload path settings";
 "File_upload_path_way"   = "Files are uploaded to by default:";
 "File_upload_path_check"   = "Select upload path";
-"File_upload_path_new"   = "Create new path";
+"File_upload_path_new"   = "Create";
 "File_upload_path_new_suc"   = "Folder created successfully";
 "File_upload_path_new_fail"   = "Folder creation failed";
 "File_upload_path_new_check_title"   = "Select backup path";
@@ -510,7 +510,7 @@
 "delete_file_tip_msg"   = "Confirm permanent deletion of selected files?";
 "delete_file_suc_msg"   = "successfully deleted";
 "File_save_to_box_path_set"   = "Receive path settings";
-"File_save_to_box_check_title"   = "Select the receive path setting";
+"File_save_to_box_check_title"   = "Select the receive path";
 "my_set_no_File_receive_title"   = "take over";
 "receive_save_title"   = "save";
 "box_receive_Record_receiveing"   = "Saving";
@@ -636,7 +636,7 @@
 "system_version_current"   = "Current System Version";
 "asystem_version_wait_update"   = "System Update Version Pending";
 "File_Transfer_background_working_tip_2"   = "Enabling background file transfer will consume battery. If power-saving mode is enabled, background transfer cannot occur. Please disable power-saving mode to enable background operation.";
-"mine_cloudPhone_Model_title"   = "Cloud Phone Mode";
+"mine_cloudPhone_Model_title"   = "Homepage mode";
 "cloudPhone_Model_tip"   = "If enabled, the app will open directly to the cloud phone page; if disabled, it will go to the NAS page.";
 "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";