Ver código fonte

1.修改iOS Apex Drivers国际化。

Pen Li 7 anos atrás
pai
commit
58dc38b397

+ 1 - 1
Redant Drivers/Apex And Drivers.xcodeproj/project.pbxproj

@@ -689,8 +689,8 @@
 		422DA1BD2134FA510021BD70 /* PresentationController */ = {
 			isa = PBXGroup;
 			children = (
-				422DA1BF2134FA7D0021BD70 /* RAPresentationController.m */,
 				42F3A33321829FEF00AB0D3D /* RAPresentationController.h */,
+				422DA1BF2134FA7D0021BD70 /* RAPresentationController.m */,
 			);
 			path = PresentationController;
 			sourceTree = "<group>";

+ 3 - 0
Redant Drivers/Apex And Drivers/Base.lproj/Localizable.strings

@@ -54,6 +54,9 @@ CFBundleDisplayName="Apex & Drivers";
 "Update" = "Update";
 "Warning" = "Warning";
 "please complete missing field:\n%@" = "please complete missing field:\n%@";
+"update_upload_failed_tips" = "upload the photos failed,would you like to retry or do it background?";
+"Background" = "Background";
+"Retry" = "Retry";
 
 /**
  Detail

+ 3 - 3
Redant Drivers/Apex And Drivers/Update/RAOrderEditViewController.m

@@ -538,15 +538,15 @@
                     if (photoArr.count > 0) {
                         // 上传失败,询问是否丢到后台线程上传,否则重启上传
                         
-                        UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:@"upload the photos failed,would you like to retry or do it background?" preferredStyle:UIAlertControllerStyleAlert];
-                        UIAlertAction *backgroundAction = [UIAlertAction actionWithTitle:@"Background" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
+                        UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Warning", nil) message:NSLocalizedString(@"update_upload_failed_tips", nil) preferredStyle:UIAlertControllerStyleAlert];
+                        UIAlertAction *backgroundAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Background", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
                             
                             // 开启后台上传
                             [weakSelf backgroundUploadPhoto:photoArr Json:json];
                             // 返回首页
                             [weakSelf gobackHome];
                         }];
-                        UIAlertAction *retryAction = [UIAlertAction actionWithTitle:@"Retry" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
+                        UIAlertAction *retryAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Retry", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
                             
                             dispatch_async(dispatch_get_global_queue(0, 0), ^{
                                 [weakSelf syncUploadPhotos:photoArr Json:json HUD:nil];

+ 3 - 0
Redant Drivers/Apex And Drivers/en.lproj/Localizable.strings

@@ -55,6 +55,9 @@ CFBundleDisplayName="Apex & Drivers";
 "Update" = "Update";
 "Warning" = "Warning";
 "please complete missing field:\n%@" = "please complete missing field:\n%@";
+"update_upload_failed_tips" = "upload the photos failed,would you like to retry or do it background?";
+"Background" = "Background";
+"Retry" = "Retry";
 
 /**
  Detail

+ 3 - 0
Redant Drivers/Apex And Drivers/zh-Hans.lproj/Localizable.strings

@@ -55,6 +55,9 @@ CFBundleDisplayName="汽车人";
 "Update" = "提交";
 "Warning" = "警告";
 "please complete missing field:\n%@" = "请完成以下内容:\n%@";
+"update_upload_failed_tips" = "上传图片失败,是否重试或者将任务提交到后台上传?";
+"Background" = "后台上传";
+"Retry" = "重试";
 
 /**
  Detail