瀏覽代碼

添加国际化内容

jsonwang 3 年之前
父節點
當前提交
35c33f7ed1
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 3 3
      Introduce/Record/INIntroduceController.swift
  2. 3 3
      Introduce/Record/INRecorderController.swift

+ 3 - 3
Introduce/Record/INIntroduceController.swift

@@ -171,7 +171,7 @@ class INIntroduceController: BFBaseViewController {
         let alee = BFActionSheetView()
         
         if recordScreenVC.itemModels.count > 0 && recordScreenVC.itemModels.last!.mediaType != .Camera {
-            alee.addAction(title: "拍摄录制", sheetStyle: .defalt) {[weak self] in
+            alee.addAction(title: "home_shoot".BFLocale, sheetStyle: .defalt) {[weak self] in
                 guard let wself = self else { return }
                 
                 let phAsset = PHAsset()
@@ -180,7 +180,7 @@ class INIntroduceController: BFBaseViewController {
             }
         }
         
-        alee.addAction(title: "从相册选择", sheetStyle: .defalt) {[weak self] in
+        alee.addAction(title: "home_choose".BFLocale, sheetStyle: .defalt) {[weak self] in
             guard let wself = self else { return }
             
             let vc = INPhotoVideosController()
@@ -194,7 +194,7 @@ class INIntroduceController: BFBaseViewController {
             
             wself.navigationController?.present(vc, animated: true, completion: nil)
         }
-        alee.addAction(title: "取消", sheetStyle: .cancle, handler: nil)
+        alee.addAction(title: "option_cancel".BFLocale, sheetStyle: .cancle, handler: nil)
         alee.show()
         
 //        let alertv = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)

+ 3 - 3
Introduce/Record/INRecorderController.swift

@@ -20,7 +20,7 @@ class INRecorderController: BFBaseViewController {
     
     lazy var titleL : UILabel = {
         let l = UILabel()
-        l.text = "开始讲解"
+        l.text = "home_title".BFLocale
         l.textAlignment = .center
         l.textColor = .white
         l.font = UIFont.systemFont(ofSize: 36)
@@ -33,7 +33,7 @@ class INRecorderController: BFBaseViewController {
     lazy var camaraBtn: UIButton = {
         let btn = UIButton(type: .custom)
         btn.setImage(UIImage(named: "shot"), for: .normal)
-        btn.setTitle("拍摄录制", for: .normal)
+        btn.setTitle("home_shoot".BFLocale, for: .normal)
         btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
         btn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
         btn.addTarget(self, action: #selector(cameraBtnAction), for: .touchUpInside)
@@ -44,7 +44,7 @@ class INRecorderController: BFBaseViewController {
     lazy var photoBtn: UIButton = {
         let btn = UIButton(type: .custom)
         btn.setImage(UIImage(named: "import"), for: .normal)
-        btn.setTitle("从相册选择", for: .normal)
+        btn.setTitle("home_choose".BFLocale, for: .normal)
         btn.setTitleColor(UIColor.init(white: 1, alpha: 0.5), for: .normal)
         btn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
         btn.addTarget(self, action: #selector(addVideo), for: .touchUpInside)