|
@@ -90,7 +90,7 @@ class BFSubtitleSettingView: UIView {
|
|
pointTitle.textAlignment = .center
|
|
pointTitle.textAlignment = .center
|
|
pointTitle.font = UIFont.systemFont(ofSize: 15)
|
|
pointTitle.font = UIFont.systemFont(ofSize: 15)
|
|
pointTitle.textColor = .white
|
|
pointTitle.textColor = .white
|
|
- pointTitle.text = "位置"
|
|
|
|
|
|
+ pointTitle.text = "option_location".BFLocale
|
|
pointTitle.alpha = 0.6
|
|
pointTitle.alpha = 0.6
|
|
backView.addSubview(pointTitle)
|
|
backView.addSubview(pointTitle)
|
|
pointTitle.snp.makeConstraints { make in
|
|
pointTitle.snp.makeConstraints { make in
|
|
@@ -110,11 +110,11 @@ class BFSubtitleSettingView: UIView {
|
|
pointBtn.layer.borderColor = UIColor.hexColor(hexadecimal: "#389AFF").cgColor
|
|
pointBtn.layer.borderColor = UIColor.hexColor(hexadecimal: "#389AFF").cgColor
|
|
pointBtn.layer.borderWidth = 1.5
|
|
pointBtn.layer.borderWidth = 1.5
|
|
lastSelectPointBtn = pointBtn
|
|
lastSelectPointBtn = pointBtn
|
|
- pointBtn.setTitle("下", for: .normal)
|
|
|
|
|
|
+ pointBtn.setTitle("option_bottom".BFLocale, for: .normal)
|
|
} else if i == 1 {
|
|
} else if i == 1 {
|
|
- pointBtn.setTitle("中", for: .normal)
|
|
|
|
|
|
+ pointBtn.setTitle("option_middle".BFLocale, for: .normal)
|
|
} else {
|
|
} else {
|
|
- pointBtn.setTitle("上", for: .normal)
|
|
|
|
|
|
+ pointBtn.setTitle("option_top".BFLocale, for: .normal)
|
|
}
|
|
}
|
|
pointBtn.addCorner(corner: 10)
|
|
pointBtn.addCorner(corner: 10)
|
|
pointBtn.tag = i
|
|
pointBtn.tag = i
|
|
@@ -133,8 +133,9 @@ class BFSubtitleSettingView: UIView {
|
|
wordSizeTitle.textAlignment = .center
|
|
wordSizeTitle.textAlignment = .center
|
|
wordSizeTitle.font = UIFont.systemFont(ofSize: 15)
|
|
wordSizeTitle.font = UIFont.systemFont(ofSize: 15)
|
|
wordSizeTitle.textColor = .white
|
|
wordSizeTitle.textColor = .white
|
|
- wordSizeTitle.text = "字号"
|
|
|
|
|
|
+ wordSizeTitle.text = "option_size".BFLocale
|
|
wordSizeTitle.alpha = 0.6
|
|
wordSizeTitle.alpha = 0.6
|
|
|
|
+ wordSizeTitle.adjustsFontSizeToFitWidth = true
|
|
backView.addSubview(wordSizeTitle)
|
|
backView.addSubview(wordSizeTitle)
|
|
wordSizeTitle.snp.makeConstraints { make in
|
|
wordSizeTitle.snp.makeConstraints { make in
|
|
make.width.equalTo(40)
|
|
make.width.equalTo(40)
|
|
@@ -185,10 +186,10 @@ class BFSubtitleSettingView: UIView {
|
|
disabelTitle.textAlignment = .left
|
|
disabelTitle.textAlignment = .left
|
|
disabelTitle.font = UIFont.boldSystemFont(ofSize: 17)
|
|
disabelTitle.font = UIFont.boldSystemFont(ofSize: 17)
|
|
disabelTitle.textColor = .white
|
|
disabelTitle.textColor = .white
|
|
- disabelTitle.text = "关闭字幕"
|
|
|
|
|
|
+ disabelTitle.text = "option_off".BFLocale
|
|
backView.addSubview(disabelTitle)
|
|
backView.addSubview(disabelTitle)
|
|
disabelTitle.snp.makeConstraints { make in
|
|
disabelTitle.snp.makeConstraints { make in
|
|
- make.width.equalTo(100)
|
|
|
|
|
|
+ make.right.equalTo(cScreenWidth - 80)
|
|
make.height.equalTo(24)
|
|
make.height.equalTo(24)
|
|
make.left.equalToSuperview().offset(18)
|
|
make.left.equalToSuperview().offset(18)
|
|
make.top.equalTo(line.snp.top).offset(17)
|
|
make.top.equalTo(line.snp.top).offset(17)
|