Bläddra i källkod

多语言部分完善

桂欢 1 år sedan
förälder
incheckning
637d5f0ea4

+ 16 - 4
SLAiELTS/SLAiELTS.xcodeproj/project.pbxproj

@@ -146,6 +146,7 @@
 		3D5083A92A38360100E1B2E7 /* SLFriendPowerVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D5083AB2A38360100E1B2E7 /* SLFriendPowerVc.xib */; };
 		3D5083B02A3839A400E1B2E7 /* SLRemidLookView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D5083B22A3839A400E1B2E7 /* SLRemidLookView.xib */; };
 		3D5083B72A383BD500E1B2E7 /* SLNewMsgBgView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D5083B92A383BD500E1B2E7 /* SLNewMsgBgView.xib */; };
+		3D5083BE2A38592100E1B2E7 /* SLRecomFriendsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D5083C02A38592100E1B2E7 /* SLRecomFriendsCell.xib */; };
 		3D58825D2A28397D00F1B38E /* SLCitySetVc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D58825B2A28397D00F1B38E /* SLCitySetVc.m */; };
 		3D58825E2A28397D00F1B38E /* SLCitySetVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D58825C2A28397D00F1B38E /* SLCitySetVc.xib */; };
 		3D58828B2A2976CD00F1B38E /* SLMsgBgSetVc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D5882892A2976CD00F1B38E /* SLMsgBgSetVc.m */; };
@@ -160,7 +161,6 @@
 		3D6EE45329F2568000B02EBB /* SLRecomFriendsVc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D6EE45129F2568000B02EBB /* SLRecomFriendsVc.m */; };
 		3D6EE45429F2568000B02EBB /* SLRecomFriendsVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D6EE45229F2568000B02EBB /* SLRecomFriendsVc.xib */; };
 		3D6EE45829F25AB400B02EBB /* SLRecomFriendsCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D6EE45629F25AB400B02EBB /* SLRecomFriendsCell.m */; };
-		3D6EE45929F25AB400B02EBB /* SLRecomFriendsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3D6EE45729F25AB400B02EBB /* SLRecomFriendsCell.xib */; };
 		3D6EE45C29F27BCB00B02EBB /* SLRecomFriendModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D6EE45B29F27BCB00B02EBB /* SLRecomFriendModel.m */; };
 		3D796C6C29B8305C00B7B28A /* NSObject+FBKVOController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D796C6929B8305C00B7B28A /* NSObject+FBKVOController.m */; };
 		3D796C6D29B8305C00B7B28A /* FBKVOController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D796C6A29B8305C00B7B28A /* FBKVOController.m */; };
@@ -568,6 +568,9 @@
 		3D5083B82A383BD500E1B2E7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SLNewMsgBgView.xib; sourceTree = "<group>"; };
 		3D5083BB2A383BD800E1B2E7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/SLNewMsgBgView.strings; sourceTree = "<group>"; };
 		3D5083BD2A383BD900E1B2E7 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/SLNewMsgBgView.strings"; sourceTree = "<group>"; };
+		3D5083BF2A38592100E1B2E7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SLRecomFriendsCell.xib; sourceTree = "<group>"; };
+		3D5083C22A38592800E1B2E7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/SLRecomFriendsCell.strings; sourceTree = "<group>"; };
+		3D5083C42A38592A00E1B2E7 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/SLRecomFriendsCell.strings"; sourceTree = "<group>"; };
 		3D58825A2A28397D00F1B38E /* SLCitySetVc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLCitySetVc.h; sourceTree = "<group>"; };
 		3D58825B2A28397D00F1B38E /* SLCitySetVc.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLCitySetVc.m; sourceTree = "<group>"; };
 		3D58825C2A28397D00F1B38E /* SLCitySetVc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SLCitySetVc.xib; sourceTree = "<group>"; };
@@ -593,7 +596,6 @@
 		3D6EE45229F2568000B02EBB /* SLRecomFriendsVc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SLRecomFriendsVc.xib; sourceTree = "<group>"; };
 		3D6EE45529F25AB400B02EBB /* SLRecomFriendsCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLRecomFriendsCell.h; sourceTree = "<group>"; };
 		3D6EE45629F25AB400B02EBB /* SLRecomFriendsCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLRecomFriendsCell.m; sourceTree = "<group>"; };
-		3D6EE45729F25AB400B02EBB /* SLRecomFriendsCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SLRecomFriendsCell.xib; sourceTree = "<group>"; };
 		3D6EE45A29F27BCB00B02EBB /* SLRecomFriendModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLRecomFriendModel.h; sourceTree = "<group>"; };
 		3D6EE45B29F27BCB00B02EBB /* SLRecomFriendModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLRecomFriendModel.m; sourceTree = "<group>"; };
 		3D796C6729B8305C00B7B28A /* KVOController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KVOController.h; sourceTree = "<group>"; };
@@ -1033,7 +1035,7 @@
 				3D5083B22A3839A400E1B2E7 /* SLRemidLookView.xib */,
 				3D6EE45529F25AB400B02EBB /* SLRecomFriendsCell.h */,
 				3D6EE45629F25AB400B02EBB /* SLRecomFriendsCell.m */,
-				3D6EE45729F25AB400B02EBB /* SLRecomFriendsCell.xib */,
+				3D5083C02A38592100E1B2E7 /* SLRecomFriendsCell.xib */,
 				3DBC3BC52A0B650300E8C766 /* SLNearbyPeopleCell.h */,
 				3DBC3BC62A0B650300E8C766 /* SLNearbyPeopleCell.m */,
 				3DBC3BC72A0B650300E8C766 /* SLNearbyPeopleCell.xib */,
@@ -2075,7 +2077,7 @@
 			files = (
 				3D1B9D0D29C2A1360008D01A /* SLPlaceholderCell.xib in Resources */,
 				3D50839B2A38171A00E1B2E7 /* SLFeedbackVc.xib in Resources */,
-				3D6EE45929F25AB400B02EBB /* SLRecomFriendsCell.xib in Resources */,
+				3D5083BE2A38592100E1B2E7 /* SLRecomFriendsCell.xib in Resources */,
 				3D58825E2A28397D00F1B38E /* SLCitySetVc.xib in Resources */,
 				3D5083B72A383BD500E1B2E7 /* SLNewMsgBgView.xib in Resources */,
 				3D5882992A29BBC100F1B38E /* InfoPlist.strings in Resources */,
@@ -2563,6 +2565,16 @@
 			name = SLNewMsgBgView.xib;
 			sourceTree = "<group>";
 		};
+		3D5083C02A38592100E1B2E7 /* SLRecomFriendsCell.xib */ = {
+			isa = PBXVariantGroup;
+			children = (
+				3D5083BF2A38592100E1B2E7 /* Base */,
+				3D5083C22A38592800E1B2E7 /* en */,
+				3D5083C42A38592A00E1B2E7 /* zh-Hans */,
+			);
+			name = SLRecomFriendsCell.xib;
+			sourceTree = "<group>";
+		};
 		3D58829B2A29BBC100F1B38E /* InfoPlist.strings */ = {
 			isa = PBXVariantGroup;
 			children = (

+ 49 - 49
SLAiELTS/SLAiELTS/Vendor/Resources/en.lproj/Localizable.strings

@@ -9,20 +9,20 @@
 "请设置你的信息" = "Please set your information";
 "性别选择后无法更改" = "Cannot change after gender selection";
 "怎么称呼你" = "What should I call you?";
-"昵称" = "nickname";
+"昵称" = "Nickname";
 "AI昵称" = "AI nickname";
-"生日" = "birthday";
+"生日" = "Birthday";
 "设置生日" = "Set Birthday";
 "性别" = "Gender";
-"男性" = "male";
-"女性" = "female";
-"下一步" = "next step";
+"男性" = "Male";
+"女性" = "Female";
+"下一步" = "Next step";
 "为你的AI助教取名" = "Name your AI teaching assistant";
 "AI助教将使用此名称与你对话" = "The AI teaching assistant will use this name to talk to you";
 "请设置你的AI语音" = "Please set up your AI voice";
 "语音聊天将播放此声音" = "Voice chat will play this sound";
-"确定" = "determine";
-"确 定" = "determine";
+"确定" = "Determine";
+"确 定" = "Determine";
 "请选择你兴趣的标签" = "Please select the tag that interests you";
 "可为你匹配共同标签的好友" = "Friends who can match common tags for you";
 "播放" = "Play";
@@ -31,8 +31,8 @@
 "删除" = "Delete";
 "发送" = "Send";
 "松开" = "Release";
-"聊天" = "chat";
-"联系" = "contact";
+"聊天" = "Chat";
+"联系" = "Contact";
 "朋友圈" = "Moments";
 "我的" = "My";
 "添加朋友" = "Add Friends";
@@ -43,35 +43,35 @@
 "只看男生" = "Only looking at boys";
 "只看女生" = "Only looking at girls";
 "选择好友" = "Choose friend";
-"完成" = "complete";
-"全文" = "full text";
-"评论" = "comment";
+"完成" = "Complete";
+"全文" = "Full text";
+"评论" = "Comment";
 "点赞" = "Like";
-"详情" = "details";
+"详情" = "Details";
 "朋友权限" = "Friend permissions";
 "朋友圈权限" = "Moment permissions";
 "推荐好友" = "Recommended friends";
 "好友推荐" = "Friend recommendation";
 "已添加" = "Added";
-"移除" = "remove";
+"移除" = "Remove";
 "添加" = "Add";
-"发布" = "release";
-"发布  " = "release";
+"发布" = "Release";
+"发布  " = "Release";
 "请输入..." = "Please enter";
-"上传" = "upload";
-"拍照" = "photograph";
+"上传" = "Upload";
+"拍照" = "Photograph";
 "从手机相册选择" = "Select from mobile album";
-"纯文本" = "plain text";
-"取消" = "cancel";
-"发布" = "release";
+"纯文本" = "Plain text";
+"取消" = "Cancel";
+"发布" = "Release";
 "条新消息" = "new messages";
 "个人中心" = "Personal Center";
 "头像" = "Avatar";
 "手机号" = "Mobile phone number";
-"地区" = "region";
-"星座" = "constellation";
+"地区" = "Region";
+"星座" = "Constellation";
 "用户服务协议" = "User service agreement";
-"免责声明" = "disclaimer";
+"免责声明" = "Disclaimer";
 "退出登录" = "Log out of login";
 "AI设置" = "AI setup";
 "收藏" = "Collection";
@@ -94,31 +94,31 @@
 "保存  " = "Save ";
 "收起" = "Retract";
 "ID账号:" = "ID account:";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
-"男性" = "male";
+"修改昵称" = "Modify nickname";
+"设置地区" = "Set Region";
+"定位到的位置" = "Location";
+"选择地区" = "Select Region";
+"退出确认" = "Exit confirmation";
+"是否确认退出登录?" = "Are you sure to log out?";
+"通用设置" = "General Settings";
+"清空聊天记录" = "Clear chat records";
+"聊天背景" = "Chat background";
+"语言设置" = "Language Settings";
+"温馨提示" = "Tips";
+"是否清空聊天记录?" = "Clear Chat log?";
+"口音设置" = "Accent settings";
+"语速设置" = "Speech speed setting";
+"难度设置" = "Difficulty setting";
+"简单" = "Simple";
+"中等" = "Medium";
+"困难" = "Difficulty";
+"更换封面相册" = "Replace cover album";
+"选择背景图" = "Select Background Image";
+"拍一张" = "Take a photo";
+"手机相册选择" = "Mobile Album Selection";
+"全部" = "All";
+"  已添加  " = "  Added  ";
+"   添加   " = "  Add  ";
 "男性" = "male";
 "男性" = "male";
 "男性" = "male";

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/FriendsVC/SLNearbyPeopleVc.m

@@ -75,7 +75,7 @@
 
 - (void)moreBtnClick {
     WS(weakSelf);
-    [SLCustomizeAlert showBottomAletrWithTitles:@[@"全部", NSLocalizedString(@"只看男生", nil), NSLocalizedString(@"只看女生", nil)] cancelTitle:NSLocalizedString(@"取消", nil) buttonIndex:^(NSInteger index) {
+    [SLCustomizeAlert showBottomAletrWithTitles:@[NSLocalizedString(@"全部", nil), NSLocalizedString(@"只看男生", nil), NSLocalizedString(@"只看女生", nil)] cancelTitle:NSLocalizedString(@"取消", nil) buttonIndex:^(NSInteger index) {
         switch (index) {
             case 0:
                 weakSelf.selSex = @"";

+ 0 - 0
SLAiELTS/SLAiELTS/ViewControllers/FriendsVC/Views/SLRecomFriendsCell.xib → SLAiELTS/SLAiELTS/ViewControllers/FriendsVC/Views/Base.lproj/SLRecomFriendsCell.xib


+ 2 - 2
SLAiELTS/SLAiELTS/ViewControllers/FriendsVC/Views/SLRecomFriendsCell.m

@@ -43,7 +43,7 @@
         self.addBtn.layer.borderWidth = 1.0f;
         self.addBtn.layer.borderColor = [SLColor(@"#CFD8E3") CGColor];
         self.addBtn.backgroundColor = SLColor(@"#F5F8F7");
-        [self.addBtn setTitle:@"  已添加  " forState:UIControlStateNormal];
+        [self.addBtn setTitle:NSLocalizedString(@"  已添加  ", nil) forState:UIControlStateNormal];
         [self.addBtn setTitleColor:SLBlackColor forState:UIControlStateNormal];
         self.addBtn.enabled = NO;
     }else {
@@ -51,7 +51,7 @@
         self.addBtn.layer.borderWidth = 0.0f;
         self.addBtn.layer.borderColor = [SLColor(@"#CFD8E3") CGColor];
         self.addBtn.backgroundColor = SLBlueColor;
-        [self.addBtn setTitle:@"   添加   " forState:UIControlStateNormal];
+        [self.addBtn setTitle:NSLocalizedString(@"   添加   ", nil) forState:UIControlStateNormal];
         [self.addBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
         self.addBtn.enabled = YES;
     }

+ 12 - 0
SLAiELTS/SLAiELTS/ViewControllers/FriendsVC/Views/en.lproj/SLRecomFriendsCell.strings

@@ -0,0 +1,12 @@
+
+/* Class = "UIButton"; normalTitle = "    添加   "; ObjectID = "025-jW-ZrE"; */
+"025-jW-ZrE.normalTitle" = "    Add   ";
+
+/* Class = "UILabel"; text = "          "; ObjectID = "C25-qG-NjY"; */
+"C25-qG-NjY.text" = "          ";
+
+/* Class = "UILabel"; text = "用户名称"; ObjectID = "XOL-Cc-SRD"; */
+"XOL-Cc-SRD.text" = "用户名称";
+
+/* Class = "UIButton"; normalTitle = "    移除   "; ObjectID = "zKX-M5-UHx"; */
+"zKX-M5-UHx.normalTitle" = "    Abnormal   ";

+ 12 - 0
SLAiELTS/SLAiELTS/ViewControllers/FriendsVC/Views/zh-Hans.lproj/SLRecomFriendsCell.strings

@@ -0,0 +1,12 @@
+
+/* Class = "UIButton"; normalTitle = "    添加   "; ObjectID = "025-jW-ZrE"; */
+"025-jW-ZrE.normalTitle" = "    添加   ";
+
+/* Class = "UILabel"; text = "          "; ObjectID = "C25-qG-NjY"; */
+"C25-qG-NjY.text" = "          ";
+
+/* Class = "UILabel"; text = "用户名称"; ObjectID = "XOL-Cc-SRD"; */
+"XOL-Cc-SRD.text" = "用户名称";
+
+/* Class = "UIButton"; normalTitle = "    移除   "; ObjectID = "zKX-M5-UHx"; */
+"zKX-M5-UHx.normalTitle" = "    移除   ";

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/Moments/MomentsVc/SLMomentsNewsVc.m

@@ -23,7 +23,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view from its nib.
-    self.title = @"消息";
+    self.title = NSLocalizedString(@"消息", nil);
     if (@available(iOS 11.0, *)) {
         self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
     } else {

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/Moments/MomentsVc/SLMomentsVc.m

@@ -492,7 +492,7 @@ static CGFloat textFieldH = 56;
 
 - (void)didClickDelButtonInCell:(UITableViewCell *)cell
 {
-    [SLCustomizeAlert showAletrWithTitle:@"温馨提示" message:@"是否要删除当条朋友圈内容" sureBtnTitle:NSLocalizedString(@"确定", nil) cancelBtnTitle:NSLocalizedString(@"取消", nil) sureBtnAction:^{
+    [SLCustomizeAlert showAletrWithTitle:NSLocalizedString(@"温馨提示", nil) message:@"是否要删除当条朋友圈内容" sureBtnTitle:NSLocalizedString(@"确定", nil) cancelBtnTitle:NSLocalizedString(@"取消", nil) sureBtnAction:^{
         NSIndexPath *index = [self.tableView indexPathForCell:cell];
         SDTimeLineCellModel *model = self.dataArray[index.row];
         [[SLHttpCenter SharedInstance] getWithUrl:@"/api/Friend/DelateFriendCircle" parameter:@{@"id":model.friendId} success:^(id responseObject) {

+ 3 - 3
SLAiELTS/SLAiELTS/ViewControllers/MyVC/VCs/SLAiSetVc.m

@@ -146,9 +146,9 @@
         NSArray *arr = @[
         @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"AI昵称", nil) subTitle:user.aiName bgImage:@""],
           [SLPageModelDetail initWithTitle:NSLocalizedString(@"性别", nil) subTitle:user.aiSex bgImage:@""],],
-          @[[SLPageModelDetail initWithTitle:@"口音设置" segments:@[NSLocalizedString(@"American Accent", nil), NSLocalizedString(@"British Accent", nil)]],
-            [SLPageModelDetail initWithTitle:@"难度设置" segments:@[@"简单", @"中等", @"困难"]],
-            [SLPageModelDetail initWithTitle:@"语速设置" segments:@[NSLocalizedString(@"slow", nil), NSLocalizedString(@"medium", nil), NSLocalizedString(@"fast", nil)]]],];
+          @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"口音设置", nil) segments:@[NSLocalizedString(@"American Accent", nil), NSLocalizedString(@"British Accent", nil)]],
+            [SLPageModelDetail initWithTitle:NSLocalizedString(@"难度设置", nil) segments:@[NSLocalizedString(@"简单", nil), NSLocalizedString(@"中等", nil), NSLocalizedString(@"困难", nil)]],
+            [SLPageModelDetail initWithTitle:NSLocalizedString(@"语速设置", nil) segments:@[NSLocalizedString(@"slow", nil), NSLocalizedString(@"medium", nil), NSLocalizedString(@"fast", nil)]]],];
         _dataModels = [NSMutableArray arrayWithArray:arr];
     }
     return _dataModels;

+ 2 - 2
SLAiELTS/SLAiELTS/ViewControllers/MyVC/VCs/SLCitySetVc.m

@@ -24,8 +24,8 @@
 }
 
 - (void)confignSexSetView {
-    NSArray *arr = @[[SLPageModelDetail initWithTitle:@"定位到的位置" bgImage:@""],
-      [SLPageModelDetail initWithTitle:@"选择地区" bgImage:@""],];
+    NSArray *arr = @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"定位到的位置", nil) bgImage:@""],
+      [SLPageModelDetail initWithTitle:NSLocalizedString(@"选择地区", nil) bgImage:@""],];
     [arr enumerateObjectsUsingBlock:^(SLPageModelDetail * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
         SLBaseCellView *baseCell = [[SLBaseCellView alloc] initWithFrame:CGRectZero];
         baseCell.titleLabel.text = obj.title;

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/MyVC/VCs/SLModifyNicknameVc.m

@@ -20,7 +20,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view from its nib.
-    self.title = @"修改昵称";
+    self.title = NSLocalizedString(@"修改昵称", nil);
     YMBarButtonItem *rightBarItem = [[YMBarButtonItem alloc] initWithTitle:NSLocalizedString(@"保存  ", nil) target:self action:@selector(preserveBtnClick)];
     rightBarItem.titleInsets = UIEdgeInsetsMake(0, 0, 0, 20);
     self.navigationBar.rightBarButtonItem = rightBarItem;

+ 4 - 4
SLAiELTS/SLAiELTS/ViewControllers/MyVC/VCs/SLMsgBgSetVc.m

@@ -23,7 +23,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view from its nib.
-    self.title =  @"更换封面相册";
+    self.title =  NSLocalizedString(@"更换封面相册", nil);
     if (@available(iOS 11.0, *)) {
         self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
     } else {
@@ -111,9 +111,9 @@
 - (NSMutableArray<NSArray<SLPageModelDetail *> *> *)dataModels {
     if (!_dataModels) {
         NSArray *arr = @[
-            @[[SLPageModelDetail initWithTitle:@"选择背景图" subTitle:@""],],
-            @[[SLPageModelDetail initWithTitle:@"拍一张" subTitle:@"" bgImage:@""],
-              [SLPageModelDetail initWithTitle:@"手机相册选择" subTitle:@"" bgImage:@""]],
+            @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"选择背景图", nil) subTitle:@""],],
+            @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"拍一张", nil) subTitle:@"" bgImage:@""],
+              [SLPageModelDetail initWithTitle:NSLocalizedString(@"手机相册选择", nil) subTitle:@"" bgImage:@""]],
         ];
         _dataModels = [NSMutableArray arrayWithArray:arr];
     }

+ 10 - 10
SLAiELTS/SLAiELTS/ViewControllers/MyVC/VCs/SLUserCenterViewController.m

@@ -27,7 +27,7 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view from its nib.
-    self.title = self.isSetting ? @"通用设置" : NSLocalizedString(@"个人中心", nil);
+    self.title = self.isSetting ? NSLocalizedString(@"通用设置", nil) : NSLocalizedString(@"个人中心", nil);
     if (@available(iOS 11.0, *)) {
         self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
     } else {
@@ -78,7 +78,7 @@
         [self navPushViewController:vc animated:YES];
     }
     if ([detail.title isEqualToString:NSLocalizedString(@"退出登录", nil)]) {
-        [SLCustomizeAlert showAletrWithTitle:@"退出确认" message:@"是否确认退出登录?" sureBtnTitle:NSLocalizedString(@"确定", nil) cancelBtnTitle:NSLocalizedString(@"取消", nil) sureBtnAction:^{
+        [SLCustomizeAlert showAletrWithTitle:NSLocalizedString(@"退出确认", nil) message:NSLocalizedString(@"是否确认退出登录?", nil) sureBtnTitle:NSLocalizedString(@"确定", nil) cancelBtnTitle:NSLocalizedString(@"取消", nil) sureBtnAction:^{
             [[SLGlobalInfo SharedInstance] userLogout];
             AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
             [appDelegate setLoginVcWithRootWindow];
@@ -100,8 +100,8 @@
         vc.title = detail.title;
         [self navPushViewController:vc animated:YES];
     }
-    if ([detail.title isEqualToString:@"清空聊天记录"]) {
-        [SLCustomizeAlert showAletrWithTitle:@"温馨提示" message:@"是否清空聊天记录?" sureBtnTitle:NSLocalizedString(@"确定", nil) cancelBtnTitle:NSLocalizedString(@"取消", nil) sureBtnAction:^{
+    if ([detail.title isEqualToString:NSLocalizedString(@"清空聊天记录", nil)]) {
+        [SLCustomizeAlert showAletrWithTitle:NSLocalizedString(@"温馨提示", nil) message:NSLocalizedString(@"是否清空聊天记录?", nil) sureBtnTitle:NSLocalizedString(@"确定", nil) cancelBtnTitle:NSLocalizedString(@"取消", nil) sureBtnAction:^{
             [[SLHttpCenter SharedInstance] getWithUrl:@"/api/Chat/ResetChatRecord" parameter:@{} success:^(id responseObject) {
                 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
                 NSDictionary *dic = [userDefaults dictionaryRepresentation];
@@ -122,11 +122,11 @@
             
         }];
     }
-    if ([detail.title isEqualToString:@"聊天背景"]) {
+    if ([detail.title isEqualToString:NSLocalizedString(@"聊天背景", nil)]) {
         SLMsgBgSetVc *vc = [SLMsgBgSetVc loadViewControllewWithNib];
         [self navPushViewController:vc animated:YES];
     }
-    if ([detail.title isEqualToString:@"语言设置"]) {
+    if ([detail.title isEqualToString:NSLocalizedString(NSLocalizedString(@"语言设置", nil), nil)]) {
         SLMsgBgSetVc *vc = [SLMsgBgSetVc loadViewControllewWithNib];
         [self navPushViewController:vc animated:YES];
         NSArray *arr = @[
@@ -134,7 +134,7 @@
               [SLPageModelDetail initWithTitle:@"English" subTitle:@"" bgImage:@""]],
         ];
         vc.dataModels = [NSMutableArray arrayWithArray:arr];
-        vc.title = @"语音设置";
+        vc.title = NSLocalizedString(@"语言设置", nil);
     }
     
 }
@@ -177,9 +177,9 @@
           @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"退出登录", nil) subTitle:@"" bgImage:@""],]];
         if (self.isSetting) {
             arr = @[
-                  @[[SLPageModelDetail initWithTitle:@"语言设置" subTitle:@"" bgImage:@""],
-                    [SLPageModelDetail initWithTitle:@"聊天背景" subTitle:@"" bgImage:@""]],
-                  @[[SLPageModelDetail initWithTitle:@"清空聊天记录" subTitle:@"" bgImage:@""],]];
+                  @[[SLPageModelDetail initWithTitle:NSLocalizedString(NSLocalizedString(@"语言设置", nil), nil) subTitle:@"" bgImage:@""],
+                    [SLPageModelDetail initWithTitle:NSLocalizedString(@"聊天背景", nil) subTitle:@"" bgImage:@""]],
+                  @[[SLPageModelDetail initWithTitle:NSLocalizedString(@"清空聊天记录", nil) subTitle:@"" bgImage:@""],]];
         }
         _dataModels = [NSMutableArray arrayWithArray:arr];
     }

+ 2 - 2
SLAiELTS/SLAiELTS/ViewControllers/MyVC/Views/Cells/SLMySpeedCell.m

@@ -37,11 +37,11 @@
     NSString *speechRate;
     NSInteger idx = 1;
     NSDictionary *dict = @{};
-    if ([detail.title isEqualToString:@"口音设置"]) {
+    if ([detail.title isEqualToString:NSLocalizedString(@"口音设置", nil)]) {
         speechRate = [SLGlobalInfo SharedInstance].roleModel.language;
         dict = [RoleModel roleLanuchModelDict];
     }
-    if ([detail.title isEqualToString:@"语速设置"]) {
+    if ([detail.title isEqualToString:NSLocalizedString(@"语速设置", nil)]) {
         speechRate = [SLGlobalInfo SharedInstance].roleModel.speechRate;
         dict = [RoleModel roleSpeedModelDict];
     }

+ 1 - 1
SLAiELTS/SLAiELTS/ViewControllers/MyVC/Views/SLMySpeedView.m

@@ -51,7 +51,7 @@
     self.speedBtn.layer.borderWidth = 1.0f;
     self.speedBtn.layer.cornerRadius = 13.0f;
     
-    self.segment = [self creatSegmentViewWith:@[@"简单", @"中等", @"困难"]];
+    self.segment = [self creatSegmentViewWith:@[NSLocalizedString(@"简单", nil), NSLocalizedString(@"中等", nil), NSLocalizedString(@"困难", nil)]];
     [self.segment updateWithSpacing:2 topHeight:3];
     self.segment.delegate = nil;
     [self.segmentBgView addSubview:self.segment];