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
@@ -44,7 +44,7 @@ struct OnboardingBwiSplashScreen: View {
if isFetchingDowntime {
ProgressView()
} else {
Text(VectorL10n.splashScreenStart)
Text(BWIL10n.splashScreenStart)
.font(theme.fonts.body.bold())
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 32)
}
@@ -75,23 +75,23 @@ struct OnboardingBwiSplashScreen: View {
.navigationTitle("")
.navigationBarHidden(true)
.alert(isPresented: $showServerMaintananceAlert) {
Alert(title: Text(NSLocalizedString("downtime_title", tableName: "Bwi", comment: "")),
Alert(title: Text(BWIL10n.downtimeTitle),
message: Text(ServerDowntimeDefaultService().downtimeText()),
dismissButton: .destructive(Text(NSLocalizedString("downtime_alert_dismiss_button", tableName: "Bwi", comment: ""))) {
dismissButton: .destructive(Text(BWIL10n.downtimeAlertDismissButton)) {
viewModel.send(viewAction: .login)
})
}
.alert(isPresented: $showServerMaintananceDefaultAlert) {
Alert(title: Text(NSLocalizedString("downtime_title", tableName: "Bwi", comment: "")),
message: Text(NSLocalizedString("downtime_default_message", tableName: "Bwi", comment: "")),
dismissButton: .destructive(Text(NSLocalizedString("downtime_alert_dismiss_button", tableName: "Bwi", comment: ""))) {
Alert(title: Text(BWIL10n.downtimeTitle),
message: Text(BWIL10n.downtimeDefaultMessage),
dismissButton: .destructive(Text(BWIL10n.downtimeAlertDismissButton)) {
viewModel.send(viewAction: .login)
})
}
.alert(isPresented: $showInvalidAppVersionAlert) {
Alert(title: Text(VectorL10n.bwiOutdatedVersionWarningTitle),
message: Text(VectorL10n.bwiOutdatedVersionWarningMessage(AppInfo.current.displayName)),
dismissButton: .destructive(Text(VectorL10n.bwiOutdatedVersionAppstoreButton), action: {
Alert(title: Text(BWIL10n.bwiOutdatedVersionWarningTitle),
message: Text(BWIL10n.bwiOutdatedVersionWarningMessage(AppInfo.current.displayName)),
dismissButton: .destructive(Text(BWIL10n.bwiOutdatedVersionAppstoreButton), action: {
let iTunesLink = "itms://itunes.apple.com/app/BwMessenger/id1518548153?mt=8"
UIApplication.shared.open(URL(string: iTunesLink)!, options: [:], completionHandler: nil)
}))