MESSENGER-3304 string in separate files

This commit is contained in:
Frank Rotermund
2022-09-19 11:53:45 +02:00
parent 209d31ccc3
commit 0a2fd53134
91 changed files with 2975 additions and 1342 deletions
@@ -29,7 +29,7 @@ enum KeyVerificationKind {
case .otherSession:
title = VectorL10n.keyVerificationOtherSessionTitle
case .thisSession:
title = VectorL10n.keyVerificationThisSessionTitle
title = BWIL10n.keyVerificationThisSessionTitle
case .newSession:
title = VectorL10n.keyVerificationNewSessionTitle
case .user:
@@ -84,16 +84,16 @@ final class KeyVerificationVerifiedViewController: UIViewController {
switch self.verificationKind {
case .otherSession:
bodyTitle = VectorL10n.deviceVerificationVerifiedTitle
bodyTitle = BWIL10n.deviceVerificationVerifiedTitle
informationText = VectorL10n.keyVerificationVerifiedOtherSessionInformation
case .newSession:
bodyTitle = VectorL10n.keyVerificationVerifiedNewSessionTitle
informationText = VectorL10n.keyVerificationVerifiedNewSessionInformation
informationText = BWIL10n.keyVerificationVerifiedNewSessionInformation
case .thisSession:
bodyTitle = VectorL10n.deviceVerificationVerifiedTitle
informationText = VectorL10n.keyVerificationVerifiedThisSessionInformation
bodyTitle = BWIL10n.deviceVerificationVerifiedTitle
informationText = BWIL10n.keyVerificationVerifiedThisSessionInformation
case .user:
bodyTitle = VectorL10n.deviceVerificationVerifiedTitle
bodyTitle = BWIL10n.deviceVerificationVerifiedTitle
informationText = VectorL10n.keyVerificationVerifiedUserInformation
}
@@ -101,7 +101,7 @@ final class KeyVerificationVerifiedViewController: UIViewController {
self.titleLabel.text = bodyTitle
self.informationLabel.text = informationText
self.doneButton.setTitle(VectorL10n.deviceVerificationVerifiedGotItButton, for: .normal)
self.doneButton.setTitle(BWIL10n.deviceVerificationVerifiedGotItButton, for: .normal)
}
private func update(theme: Theme) {
@@ -128,7 +128,7 @@ final class DeviceVerificationIncomingViewController: UIViewController {
self.titleLabel.text = VectorL10n.deviceVerificationIncomingTitle
self.description1Label.text = VectorL10n.deviceVerificationIncomingDescription1
self.description2Label.text = VectorL10n.deviceVerificationIncomingDescription2
self.continueButton.setTitle(VectorL10n.continue, for: .normal)
self.continueButton.setTitle(BWIL10n.continue, for: .normal)
if let avatarImageView = self.avatarImageView {
let defaultavatarImage = AvatarGenerator.generateAvatar(forMatrixItem: self.viewModel.userId, withDisplayName: self.viewModel.userDisplayName)
@@ -125,9 +125,9 @@ final class KeyVerificationSelfVerifyWaitViewController: UIViewController {
self.cancelBarButtonItem = cancelBarButtonItem
}
self.title = VectorL10n.deviceVerificationSelfVerifyWaitTitle
self.title = BWIL10n.deviceVerificationSelfVerifyWaitTitle
self.informationLabel.text = VectorL10n.deviceVerificationSelfVerifyWaitInformation(AppInfo.current.displayName)
self.informationLabel.text = BWIL10n.deviceVerificationSelfVerifyWaitInformation
self.desktopClientImageView.image = Asset.Images.monitor.image.withRenderingMode(.alwaysTemplate)
self.mobileClientImageView.image = Asset.Images.smartphone.image.withRenderingMode(.alwaysTemplate)
@@ -168,7 +168,7 @@ final class KeyVerificationSelfVerifyWaitViewController: UIViewController {
private func renderLoaded(viewData: KeyVerificationSelfVerifyWaitViewData) {
self.activityPresenter.removeCurrentActivityIndicator(animated: true)
self.title = viewData.isNewSignIn ? VectorL10n.deviceVerificationSelfVerifyWaitNewSignInTitle : VectorL10n.deviceVerificationSelfVerifyWaitTitle
self.title = viewData.isNewSignIn ? VectorL10n.deviceVerificationSelfVerifyWaitNewSignInTitle : BWIL10n.deviceVerificationSelfVerifyWaitTitle
self.cancelBarButtonItem?.title = viewData.isNewSignIn ? VectorL10n.skip : VectorL10n.cancel
let hideRecoverSecrets: Bool