mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
MESSENGER-3304 string in separate files
This commit is contained in:
+9
-9
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user