|
@@ -96,21 +96,21 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
switch itemModel.mediaType {
|
|
|
case .Image:
|
|
|
rscurrentManager = rsimanager
|
|
|
- recordBtn.setTitle("按住 录制", for: .normal)
|
|
|
+ recordBtn.setTitle("record_lz".BFLocale, for: .normal)
|
|
|
progressThumV.isHidden = false
|
|
|
cameraProgressThumV.isHidden = true
|
|
|
progreddL.isHidden = false
|
|
|
|
|
|
case .Video:
|
|
|
rscurrentManager = rsvmanager
|
|
|
- recordBtn.setTitle("按住 录音", for: .normal)
|
|
|
+ recordBtn.setTitle("record_ly".BFLocale, for: .normal)
|
|
|
progressThumV.isHidden = false
|
|
|
cameraProgressThumV.isHidden = true
|
|
|
progreddL.isHidden = false
|
|
|
|
|
|
case .Camera:
|
|
|
rscurrentManager = rscmanager
|
|
|
- recordBtn.setTitle("按住 录音", for: .normal)
|
|
|
+ recordBtn.setTitle("record_ly".BFLocale, for: .normal)
|
|
|
recordBtn.isEnabled = false
|
|
|
progressThumV.isHidden = true
|
|
|
cameraProgressThumV.isHidden = false
|
|
@@ -164,8 +164,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
changeVoiceBtn.isHidden = isRecording
|
|
|
subtitleBtn.isHidden = isRecording
|
|
|
soundSettingBtn.isHidden = isRecording
|
|
|
-
|
|
|
- recordBtn.setTitle(isRecording ? "松手 暂停" : (rscurrentManager.recordItem?.mediaType == .Camera ? "按住 录制" : "按住 录音"), for: .normal)
|
|
|
+ recordBtn.setTitle(isRecording ? "record_pause".BFLocale : "record_ly".BFLocale, for: .normal)
|
|
|
recordBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#389AFF", alpha: isRecording ? 0.6 : 1)
|
|
|
// if !isRecording {
|
|
|
// BFLog(1, message: "stop")
|
|
@@ -289,7 +288,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
lazy var recordBtn: UIButton = {
|
|
|
let btn = UIButton(type: .custom)
|
|
|
btn.backgroundColor = ThemeStyleColor
|
|
|
- btn.setTitle("按住 录音", for: .normal)
|
|
|
+ btn.setTitle("record_ly".BFLocale, for: .normal)
|
|
|
btn.addCorner(corner: 6)
|
|
|
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
|
|
|
btn.adjustsImageWhenHighlighted = false
|
|
@@ -303,7 +302,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
let btn = UIButton(type: .custom)
|
|
|
|
|
|
btn.backgroundColor = UIColor.hexColor(hexadecimal: "#FF0000", alpha: 0.3)
|
|
|
- btn.setTitle("删除录制", for: .normal)
|
|
|
+ btn.setTitle("record_delete".BFLocale, for: .normal)
|
|
|
btn.adjustsImageWhenHighlighted = false
|
|
|
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
|
|
|
btn.addCorner(corner: 6)
|
|
@@ -316,7 +315,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
let btn = UIButton(type: .custom)
|
|
|
btn.setImage(imageInRecordScreenKit(by: "withdraw_n"), for: .normal)
|
|
|
btn.setImage(imageInRecordScreenKit(by: "withdraw_h"), for: .highlighted)
|
|
|
- btn.setTitle("回退", for: .normal)
|
|
|
+ btn.setTitle("record_back".BFLocale, for: .normal)
|
|
|
btn.setTitleColor(.white, for: .normal)
|
|
|
btn.setTitleColor(.lightGray, for: .disabled)
|
|
|
btn.isEnabled = false
|
|
@@ -1628,11 +1627,11 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
BFLog(message: "麦克风权限被拒绝,请在设置中打开")
|
|
|
if show {
|
|
|
let remindData = BFBaseModel()
|
|
|
- remindData.title = "需要开启「麦克风权限」才可以进行录制"
|
|
|
+ remindData.title = "grant_micpass".BFLocale
|
|
|
remindData.summary = ""
|
|
|
let remindView = BFRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
remindView.isBanned = true
|
|
|
- remindView.confirmBtn.setTitle("去开启", for: .normal)
|
|
|
+ remindView.confirmBtn.setTitle("grant_open".BFLocale, for: .normal)
|
|
|
remindView.confirmBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#389AFF"), for: .normal)
|
|
|
UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
remindView.remindData = remindData
|
|
@@ -2045,11 +2044,11 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
func changeWithDrawBtnLayout(_ type: Int) {
|
|
|
switch type {
|
|
|
case 3:
|
|
|
- withDrawBtn.setTitle("撤销删除", for: .normal)
|
|
|
+ withDrawBtn.setTitle("record_recover".BFLocale, for: .normal)
|
|
|
case 2:
|
|
|
- withDrawBtn.setTitle("撤销录制", for: .normal)
|
|
|
+ withDrawBtn.setTitle("record_undo".BFLocale, for: .normal)
|
|
|
default:
|
|
|
- withDrawBtn.setTitle("回退", for: .normal)
|
|
|
+ withDrawBtn.setTitle("record_back".BFLocale, for: .normal)
|
|
|
}
|
|
|
withDrawBtn.imageEdgeInsets = UIEdgeInsets(top: -withDrawBtn.imageView!.height, left: 0, bottom: 0, right: -withDrawBtn.titleLabel!.width)
|
|
|
withDrawBtn.titleEdgeInsets = UIEdgeInsets(top: withDrawBtn.titleLabel!.height + 2, left: -withDrawBtn.imageView!.width, bottom: 0, right: 0)
|