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
@@ -96,7 +96,7 @@ final class SecretsRecoveryWithPassphraseViewController: UIViewController {
self.navigationItem.rightBarButtonItem = cancelBarButtonItem
}
self.title = VectorL10n.secretsRecoveryWithPassphraseTitle
self.title = BWIL10n.secretsRecoveryWithPassphraseTitle
self.scrollView.keyboardDismissMode = .interactive
@@ -110,16 +110,16 @@ final class SecretsRecoveryWithPassphraseViewController: UIViewController {
switch self.viewModel.recoveryGoal {
case .default, .keyBackup, .restoreSecureBackup:
informationText = VectorL10n.secretsRecoveryWithPassphraseInformationDefault
informationText = BWIL10n.secretsRecoveryWithPassphraseInformationDefault
case .unlockSecureBackup:
informationText = VectorL10n.secretsRecoveryWithKeyInformationUnlockSecureBackupWithPhrase
informationText = BWIL10n.secretsRecoveryWithKeyInformationUnlockSecureBackupWithPhrase
case .verifyDevice:
informationText = VectorL10n.secretsRecoveryWithPassphraseInformationVerifyDevice
informationText = BWIL10n.secretsRecoveryWithPassphraseInformationVerifyDevice
}
self.informationLabel.text = informationText
self.passphraseTitleLabel.text = VectorL10n.secretsRecoveryWithPassphrasePassphraseTitle
self.passphraseTitleLabel.text = BWIL10n.secretsRecoveryWithPassphrasePassphraseTitle
self.passphraseTextField.addTarget(self, action: #selector(passphraseTextFieldDidChange(_:)), for: .editingChanged)
self.useRecoveryKeyButton.vc_enableMultiLinesTitle()
@@ -150,7 +150,7 @@ final class SecretsRecoveryWithPassphraseViewController: UIViewController {
self.passphraseTextFieldBackgroundView.backgroundColor = theme.backgroundColor
self.passphraseTitleLabel.textColor = theme.textPrimaryColor
theme.applyStyle(onTextField: self.passphraseTextField)
self.passphraseTextField.attributedPlaceholder = NSAttributedString(string: VectorL10n.secretsRecoveryWithPassphrasePassphrasePlaceholder,
self.passphraseTextField.attributedPlaceholder = NSAttributedString(string: BWIL10n.secretsRecoveryWithPassphrasePassphrasePlaceholder,
attributes: [.foregroundColor: theme.placeholderTextColor])
self.theme.applyStyle(onButton: self.passphraseVisibilityButton)
@@ -159,8 +159,8 @@ final class SecretsRecoveryWithPassphraseViewController: UIViewController {
// Use recovery key button
let useRecoveryKeyAttributedString = NSMutableAttributedString(string: VectorL10n.secretsRecoveryWithPassphraseLostPassphraseActionPart1, attributes: [.foregroundColor: self.theme.textPrimaryColor])
let unknownRecoveryKeyAttributedStringPart2 = NSAttributedString(string: VectorL10n.secretsRecoveryWithPassphraseLostPassphraseActionPart2, attributes: [.foregroundColor: self.theme.tintColor])
let useRecoveryKeyAttributedString = NSMutableAttributedString(string: BWIL10n.secretsRecoveryWithPassphraseLostPassphraseActionPart1, attributes: [.foregroundColor: self.theme.textPrimaryColor])
let unknownRecoveryKeyAttributedStringPart2 = NSAttributedString(string: BWIL10n.secretsRecoveryWithPassphraseLostPassphraseActionPart2, attributes: [.foregroundColor: self.theme.tintColor])
let unknownRecoveryKeyAttributedStringPart3 = NSAttributedString(string: VectorL10n.secretsRecoveryWithPassphraseLostPassphraseActionPart3, attributes: [.foregroundColor: self.theme.textPrimaryColor])
useRecoveryKeyAttributedString.append(unknownRecoveryKeyAttributedStringPart2)
@@ -220,7 +220,7 @@ final class SecretsRecoveryWithPassphraseViewController: UIViewController {
self.errorPresenter.presentError(from: self,
title: VectorL10n.secretsRecoveryWithPassphraseInvalidPassphraseTitle,
message: VectorL10n.secretsRecoveryWithPassphraseInvalidPassphraseMessage,
message: BWIL10n.secretsRecoveryWithPassphraseInvalidPassphraseMessage,
animated: true,
handler: nil)
} else {