MESSENGER-3304 string in separate files

This commit is contained in:
Frank Rotermund
2022-09-19 11:53:45 +02:00
parent 84ccb9378d
commit 226e55caf7
91 changed files with 2975 additions and 1342 deletions
@@ -65,7 +65,7 @@ final class KeyBackupRecoverFromPassphraseViewController: UIViewController {
// Do any additional setup after loading the view.
self.title = VectorL10n.keyBackupRecoverTitle
self.title = BWIL10n.keyBackupRecoverTitle
self.vc_removeBackTitle()
self.setupViews()
@@ -100,9 +100,9 @@ final class KeyBackupRecoverFromPassphraseViewController: UIViewController {
let visibilityImage = Asset.Images.revealPasswordButton.image.withRenderingMode(.alwaysTemplate)
self.passphraseVisibilityButton.setImage(visibilityImage, for: .normal)
self.informationLabel.text = VectorL10n.keyBackupRecoverFromPassphraseInfo
self.informationLabel.text = BWIL10n.keyBackupRecoverFromPassphraseInfo
self.passphraseTitleLabel.text = VectorL10n.keyBackupRecoverFromPassphrasePassphraseTitle
self.passphraseTitleLabel.text = BWIL10n.keyBackupRecoverFromPassphrasePassphraseTitle
self.passphraseTextField.addTarget(self, action: #selector(passphraseTextFieldDidChange(_:)), for: .editingChanged)
self.unknownPassphraseButton.vc_enableMultiLinesTitle()
@@ -129,7 +129,7 @@ final class KeyBackupRecoverFromPassphraseViewController: UIViewController {
self.passphraseTextFieldBackgroundView.backgroundColor = theme.backgroundColor
self.passphraseTitleLabel.textColor = theme.textPrimaryColor
theme.applyStyle(onTextField: self.passphraseTextField)
self.passphraseTextField.attributedPlaceholder = NSAttributedString(string: VectorL10n.keyBackupRecoverFromPassphrasePassphrasePlaceholder,
self.passphraseTextField.attributedPlaceholder = NSAttributedString(string: BWIL10n.keyBackupRecoverFromPassphrasePassphrasePlaceholder,
attributes: [.foregroundColor: theme.placeholderTextColor])
self.theme.applyStyle(onButton: self.passphraseVisibilityButton)
@@ -137,8 +137,8 @@ final class KeyBackupRecoverFromPassphraseViewController: UIViewController {
self.recoverButtonBackgroundView.backgroundColor = theme.backgroundColor
theme.applyStyle(onButton: self.recoverButton)
let unknownRecoveryKeyAttributedString = NSMutableAttributedString(string: VectorL10n.keyBackupRecoverFromPassphraseLostPassphraseActionPart1, attributes: [.foregroundColor: self.theme.textPrimaryColor])
let unknownRecoveryKeyAttributedStringPart2 = NSAttributedString(string: VectorL10n.keyBackupRecoverFromPassphraseLostPassphraseActionPart2, attributes: [.foregroundColor: self.theme.tintColor])
let unknownRecoveryKeyAttributedString = NSMutableAttributedString(string: BWIL10n.keyBackupRecoverFromPassphraseLostPassphraseActionPart1, attributes: [.foregroundColor: self.theme.textPrimaryColor])
let unknownRecoveryKeyAttributedStringPart2 = NSAttributedString(string: BWIL10n.keyBackupRecoverFromPassphraseLostPassphraseActionPart2, attributes: [.foregroundColor: self.theme.tintColor])
let unknownRecoveryKeyAttributedStringPart3 = NSAttributedString(string: VectorL10n.keyBackupRecoverFromPassphraseLostPassphraseActionPart3, attributes: [.foregroundColor: self.theme.textPrimaryColor])
unknownRecoveryKeyAttributedString.append(unknownRecoveryKeyAttributedStringPart2)
@@ -186,8 +186,8 @@ final class KeyBackupRecoverFromPassphraseViewController: UIViewController {
&& (error as NSError).code == Int(MXKeyBackupErrorInvalidRecoveryKeyCode.rawValue) {
self.errorPresenter.presentError(from: self,
title: VectorL10n.keyBackupRecoverInvalidPassphraseTitle,
message: VectorL10n.keyBackupRecoverInvalidPassphrase,
title: BWIL10n.keyBackupRecoverInvalidPassphraseTitle,
message: BWIL10n.keyBackupRecoverInvalidPassphrase,
animated: true,
handler: nil)
} else {