|
@@ -52,8 +52,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
changeVoiceBtn.isHidden = isRecording
|
|
|
subtitleBtn.isHidden = isRecording
|
|
|
soundSettingBtn.isHidden = isRecording
|
|
|
-
|
|
|
- recordBtn.setTitle(isRecording ? "松手 暂停" : "按住 录音", 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")
|
|
@@ -186,7 +185,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
|
|
@@ -200,7 +199,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)
|
|
@@ -213,7 +212,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
|
|
@@ -1481,11 +1480,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
|
|
@@ -1937,9 +1936,9 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
case 3:
|
|
|
withDrawBtn.setTitle("撤销删除", 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)
|