mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
MESSENGER-3304 string in separate files
This commit is contained in:
+8
-8
@@ -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 {
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ final class KeyBackupRecoverFromPrivateKeyViewController: UIViewController {
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
self.title = VectorL10n.keyBackupRecoverTitle
|
||||
self.title = BWIL10n.keyBackupRecoverTitle
|
||||
|
||||
self.setupViews()
|
||||
self.activityPresenter = ActivityIndicatorPresenter()
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
@@ -56,7 +56,7 @@ final class KeyBackupRecoverSuccessViewController: UIViewController {
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
self.title = VectorL10n.keyBackupRecoverTitle
|
||||
self.title = BWIL10n.keyBackupRecoverTitle
|
||||
self.vc_removeBackTitle()
|
||||
|
||||
self.setupViews()
|
||||
|
||||
Reference in New Issue
Block a user