Browse Source

修改国际化文字

jsonwang 3 years ago
parent
commit
fc075f9564
32 changed files with 18 additions and 6 deletions
  1. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/soundBtn.imageset/soundBtn.png
  2. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/soundBtn.imageset/soundBtn@2x.png
  3. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/soundBtn.imageset/soundBtn@3x.png
  4. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_off.imageset/subtitleBtn_off.png
  5. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_off.imageset/subtitleBtn_off@2x.png
  6. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_off.imageset/subtitleBtn_off@3x.png
  7. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_on.imageset/subtitleBtn_on.png
  8. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_on.imageset/subtitleBtn_on@2x.png
  9. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_on.imageset/subtitleBtn_on@3x.png
  10. 3 0
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/Contents.json
  11. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/wordStyle1.png
  12. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/wordStyle1@2x.png
  13. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/wordStyle1@3x.png
  14. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle2.imageset/wordStyle2.png
  15. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle2.imageset/wordStyle2@2x.png
  16. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle2.imageset/wordStyle2@3x.png
  17. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle3.imageset/wordStyle3.png
  18. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle3.imageset/wordStyle3@2x.png
  19. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle3.imageset/wordStyle3@3x.png
  20. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle4.imageset/wordStyle4.png
  21. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle4.imageset/wordStyle4@2x.png
  22. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle4.imageset/wordStyle4@3x.png
  23. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle5.imageset/wordStyle5.png
  24. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle5.imageset/wordStyle5@2x.png
  25. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle5.imageset/wordStyle5@3x.png
  26. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle6.imageset/wordStyle6.png
  27. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle6.imageset/wordStyle6@2x.png
  28. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle6.imageset/wordStyle6@3x.png
  29. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle7.imageset/wordStyle7.png
  30. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle7.imageset/wordStyle7@2x.png
  31. BIN
      BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle7.imageset/wordStyle7@3x.png
  32. 15 6
      BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/soundBtn.imageset/soundBtn.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/soundBtn.imageset/soundBtn@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/soundBtn.imageset/soundBtn@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_off.imageset/subtitleBtn_off.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_off.imageset/subtitleBtn_off@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_off.imageset/subtitleBtn_off@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_on.imageset/subtitleBtn_on.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_on.imageset/subtitleBtn_on@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/subtitleBtn_on.imageset/subtitleBtn_on@3x.png


+ 3 - 0
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/Contents.json

@@ -19,5 +19,8 @@
   "info" : {
   "info" : {
     "author" : "xcode",
     "author" : "xcode",
     "version" : 1
     "version" : 1
+  },
+  "properties" : {
+    "localizable" : true
   }
   }
 }
 }

BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/wordStyle1.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/wordStyle1@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle1.imageset/wordStyle1@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle2.imageset/wordStyle2.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle2.imageset/wordStyle2@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle2.imageset/wordStyle2@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle3.imageset/wordStyle3.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle3.imageset/wordStyle3@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle3.imageset/wordStyle3@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle4.imageset/wordStyle4.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle4.imageset/wordStyle4@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle4.imageset/wordStyle4@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle5.imageset/wordStyle5.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle5.imageset/wordStyle5@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle5.imageset/wordStyle5@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle6.imageset/wordStyle6.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle6.imageset/wordStyle6@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle6.imageset/wordStyle6@3x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle7.imageset/wordStyle7.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle7.imageset/wordStyle7@2x.png


BIN
BFRecordScreenKit/Assets/BFRecordScreenKit.xcassets/wordStyle7.imageset/wordStyle7@3x.png


+ 15 - 6
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -277,16 +277,25 @@ public class BFRecordScreenController: BFBaseViewController {
     // 字幕设置
     // 字幕设置
     lazy var subtitleBtn: UIButton = {
     lazy var subtitleBtn: UIButton = {
         let btn = UIButton(type: .custom)
         let btn = UIButton(type: .custom)
-        btn.setImage(imageInRecordScreenKit(by: "subtitleBtn_on"), for: .normal)
+        btn.setBackgroundImage(imageInRecordScreenKit(by: "subtitleBtn_on"), for: .normal)
         btn.addTarget(self, action: #selector(subTitleClick), for: .touchUpInside)
         btn.addTarget(self, action: #selector(subTitleClick), for: .touchUpInside)
+        btn.setTitle("function_subtitle".BFLocale, for: .normal)
+        btn.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .medium)
+        btn.imagePosition(at: PQButtonImageEdgeInsetsStyle.top, space:10)
+        btn.titleLabel?.adjustsFontSizeToFitWidth = true
         return btn
         return btn
     }()
     }()
 
 
     // 声音设置
     // 声音设置
     lazy var soundSettingBtn: UIButton = {
     lazy var soundSettingBtn: UIButton = {
         let btn = UIButton(type: .custom)
         let btn = UIButton(type: .custom)
-        btn.setImage(imageInRecordScreenKit(by: "soundBtn"), for: .normal)
+        btn.setBackgroundImage(imageInRecordScreenKit(by: "soundBtn"), for: .normal)
         btn.addTarget(self, action: #selector(soundSetting), for: .touchUpInside)
         btn.addTarget(self, action: #selector(soundSetting), for: .touchUpInside)
+        btn.setTitleColor(UIColor.white, for: .normal)
+        btn.setTitle("function_voice".BFLocale, for: .normal)
+        btn.titleLabel?.font = UIFont.systemFont(ofSize: 12, weight: .medium)
+        btn.imagePosition(at: PQButtonImageEdgeInsetsStyle.top, space:10)
+        btn.titleLabel?.adjustsFontSizeToFitWidth = true
         return btn
         return btn
     }()
     }()
 
 
@@ -827,7 +836,7 @@ public class BFRecordScreenController: BFBaseViewController {
     /// 设置字幕样式和位置
     /// 设置字幕样式和位置
     /// - Parameter settingModel: 样式model
     /// - Parameter settingModel: 样式model
     func setSubtitleStyle(settingModel: BFSubTitileSettingModel) {
     func setSubtitleStyle(settingModel: BFSubTitileSettingModel) {
-        subtitleBtn.setImage(imageInRecordScreenKit(by: settingModel.subtitleIsShow ? "subtitleBtn_on" : "subtitleBtn_off"), for: .normal)
+        subtitleBtn.setBackgroundImage(imageInRecordScreenKit(by: settingModel.subtitleIsShow ? "subtitleBtn_on" : "subtitleBtn_off"), for: .normal)
         if settingModel.subtitleIsShow {
         if settingModel.subtitleIsShow {
             // 设置样式
             // 设置样式
             subtitleLabel.strokeColor = settingModel.strokeColor
             subtitleLabel.strokeColor = settingModel.strokeColor
@@ -909,14 +918,14 @@ public class BFRecordScreenController: BFBaseViewController {
             make.right.equalToSuperview().offset(-12)
             make.right.equalToSuperview().offset(-12)
             make.top.equalToSuperview().offset(98)
             make.top.equalToSuperview().offset(98)
             make.width.equalTo(40)
             make.width.equalTo(40)
-            make.height.equalTo(62)
+            make.height.equalTo(40)
         }
         }
 
 
         subtitleBtn.snp.makeConstraints { make in
         subtitleBtn.snp.makeConstraints { make in
             make.right.equalTo(soundSettingBtn)
             make.right.equalTo(soundSettingBtn)
-            make.top.equalTo(soundSettingBtn.snp.bottom).offset(18)
+            make.top.equalTo(soundSettingBtn.snp.bottom).offset(18 + 10)
             make.width.equalTo(40)
             make.width.equalTo(40)
-            make.height.equalTo(62)
+            make.height.equalTo(40)
         }
         }
 
 
         withDrawBtn.imageEdgeInsets = UIEdgeInsets(top: -withDrawBtn.imageView!.height, left: 0, bottom: 0, right: -withDrawBtn.titleLabel!.width)
         withDrawBtn.imageEdgeInsets = UIEdgeInsets(top: -withDrawBtn.imageView!.height, left: 0, bottom: 0, right: -withDrawBtn.titleLabel!.width)