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

View File

@@ -67,7 +67,7 @@ final class KeyBackupRecoverFromRecoveryKeyViewController: UIViewController {
// Do any additional setup after loading the view.
self.title = VectorL10n.keyBackupRecoverTitle
self.title = BWIL10n.keyBackupRecoverTitle
self.vc_removeBackTitle()
self.setupViews()
@@ -99,7 +99,7 @@ final class KeyBackupRecoverFromRecoveryKeyViewController: UIViewController {
let shieldImage = Asset.Images.keyBackupLogo.image.withRenderingMode(.alwaysTemplate)
self.shieldImageView.image = shieldImage
self.informationLabel.text = VectorL10n.keyBackupRecoverFromRecoveryKeyInfo
self.informationLabel.text = BWIL10n.keyBackupRecoverFromRecoveryKeyInfo
self.recoveryKeyTitleLabel.text = VectorL10n.keyBackupRecoverFromRecoveryKeyRecoveryKeyTitle
self.recoveryKeyTextField.addTarget(self, action: #selector(recoveryKeyTextFieldDidChange(_:)), for: .editingChanged)
@@ -108,7 +108,7 @@ final class KeyBackupRecoverFromRecoveryKeyViewController: UIViewController {
self.importFileButton.setImage(importFileImage, for: .normal)
self.unknownRecoveryKeyButton.vc_enableMultiLinesTitle()
self.unknownRecoveryKeyButton.setTitle(VectorL10n.keyBackupRecoverFromRecoveryKeyLostRecoveryKeyAction, for: .normal)
self.unknownRecoveryKeyButton.setTitle(BWIL10n.keyBackupRecoverFromRecoveryKeyLostRecoveryKeyAction, for: .normal)
// Interaction is disabled for the moment
self.unknownRecoveryKeyButton.isUserInteractionEnabled = false
@@ -134,7 +134,7 @@ final class KeyBackupRecoverFromRecoveryKeyViewController: UIViewController {
self.recoveryKeyTextFieldBackgroundView.backgroundColor = theme.backgroundColor
self.recoveryKeyTitleLabel.textColor = theme.textPrimaryColor
theme.applyStyle(onTextField: self.recoveryKeyTextField)
self.recoveryKeyTextField.attributedPlaceholder = NSAttributedString(string: VectorL10n.keyBackupRecoverFromRecoveryKeyRecoveryKeyPlaceholder,
self.recoveryKeyTextField.attributedPlaceholder = NSAttributedString(string: BWIL10n.keyBackupRecoverFromRecoveryKeyRecoveryKeyPlaceholder,
attributes: [.foregroundColor: theme.placeholderTextColor])
theme.applyStyle(onButton: self.importFileButton)
@@ -184,8 +184,8 @@ final class KeyBackupRecoverFromRecoveryKeyViewController: UIViewController {
&& (error as NSError).code == Int(MXKeyBackupErrorInvalidRecoveryKeyCode.rawValue) {
self.errorPresenter.presentError(from: self,
title: VectorL10n.keyBackupRecoverInvalidRecoveryKeyTitle,
message: VectorL10n.keyBackupRecoverInvalidRecoveryKey,
title: BWIL10n.keyBackupRecoverInvalidRecoveryKeyTitle,
message: BWIL10n.keyBackupRecoverInvalidRecoveryKey,
animated: true,
handler: nil)
} else {