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

@@ -149,7 +149,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
self.formBackgroundView.backgroundColor = theme.backgroundColor
self.passphraseTitleLabel.textColor = theme.textPrimaryColor
theme.applyStyle(onTextField: self.passphraseTextField)
self.passphraseTextField.attributedPlaceholder = NSAttributedString(string: VectorL10n.keyBackupSetupPassphrasePassphrasePlaceholder,
self.passphraseTextField.attributedPlaceholder = NSAttributedString(string: BWIL10n.keyBackupSetupPassphrasePassphrasePlaceholder,
attributes: [.foregroundColor: theme.placeholderTextColor])
self.updatePassphraseAdditionalLabel()
@@ -157,7 +157,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
self.confirmPassphraseTitleLabel.textColor = theme.textPrimaryColor
theme.applyStyle(onTextField: self.confirmPassphraseTextField)
self.confirmPassphraseTextField.attributedPlaceholder = NSAttributedString(string: VectorL10n.keyBackupSetupPassphraseConfirmPassphraseTitle,
self.confirmPassphraseTextField.attributedPlaceholder = NSAttributedString(string: BWIL10n.keyBackupSetupPassphraseConfirmPassphraseTitle,
attributes: [.foregroundColor: theme.placeholderTextColor])
self.updateConfirmPassphraseAdditionalLabel()
@@ -185,20 +185,20 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
self.scrollView.keyboardDismissMode = .interactive
self.titleLabel.text = VectorL10n.keyBackupSetupPassphraseTitle
self.informationLabel.text = VectorL10n.keyBackupSetupPassphraseInfo
self.titleLabel.text = BWIL10n.keyBackupSetupPassphraseTitle
self.informationLabel.text = BWIL10n.keyBackupSetupPassphraseInfo
self.passphraseTitleLabel.text = VectorL10n.keyBackupSetupPassphrasePassphraseTitle
self.passphraseTitleLabel.text = BWIL10n.keyBackupSetupPassphrasePassphraseTitle
self.passphraseTextField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)
self.passphraseStrengthView.strength = self.viewModel.passphraseStrength
self.passphraseAdditionalInfoView.isHidden = true
self.confirmPassphraseTitleLabel.text = VectorL10n.keyBackupSetupPassphraseConfirmPassphraseTitle
self.confirmPassphraseTitleLabel.text = BWIL10n.keyBackupSetupPassphraseConfirmPassphraseTitle
self.confirmPassphraseTextField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)
self.confirmPassphraseAdditionalInfoView.isHidden = true
self.setPassphraseButton.vc_enableMultiLinesTitle()
self.setPassphraseButton.setTitle(VectorL10n.keyBackupSetupPassphraseSetPassphraseAction, for: .normal)
self.setPassphraseButton.setTitle(BWIL10n.keyBackupSetupPassphraseSetPassphraseAction, for: .normal)
self.updateSetPassphraseButton()
}
@@ -246,7 +246,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
text = VectorL10n.keyBackupSetupPassphrasePassphraseValid
textColor = self.theme.tintColor
} else {
text = VectorL10n.keyBackupSetupPassphrasePassphraseInvalid
text = BWIL10n.keyBackupSetupPassphrasePassphraseInvalid
textColor = self.theme.noticeColor
}
@@ -263,7 +263,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
text = VectorL10n.keyBackupSetupPassphraseConfirmPassphraseValid
textColor = self.theme.tintColor
} else {
text = VectorL10n.keyBackupSetupPassphraseConfirmPassphraseInvalid
text = BWIL10n.keyBackupSetupPassphraseConfirmPassphraseInvalid
textColor = self.theme.noticeColor
}
@@ -310,7 +310,7 @@ final class KeyBackupSetupPassphraseViewController: UIViewController {
message: VectorL10n.keyBackupSetupSkipAlertMessage,
preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: VectorL10n.continue, style: .cancel, handler: { action in
alertController.addAction(UIAlertAction(title: BWIL10n.continue, style: .cancel, handler: { action in
self.viewModel.process(viewAction: .skipAlertContinue)
}))