Merge branch 'feature/7555_small_fixes_for_migration_3' into 'develop'

fix: Fix Appstore Page on Login and Texts (MESSENGER-7555)

See merge request bwmessenger/bundesmessenger/bundesmessenger-ios!456
This commit is contained in:
Frank Rotermund
2026-03-20 12:25:48 +00:00
committed by SDE GitLab
4 changed files with 56 additions and 37 deletions

View File

@@ -763,8 +763,9 @@
// Sheet page 1
"bwi_mobile_dialog_m_more_title" = "BundesMessengerX";
"bwi_mobile_dialog_m1_more_text_1" = "Der BuM wird bald abgeschaltet und durch durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App ";
"bwi_mobile_dialog_m3_more_text_1" = "Der BuM wurde nun abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App, welche dir von deinem Admin zur Verfügung gestellt wird ";
"bwi_mobile_dialog_m1_more_text_1" = "Der BuM wird bald abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App ";
"bwi_mobile_dialog_m3_more_text_1" = "Der BuM wurde nun abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App ";
"bwi_mobile_dialog_m3_more_text_1_mdm" = "Der BuM wurde nun abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App, welche dir von deinem Admin zur Verfügung gestellt wird ";
"bwi_mobile_dialog_m1_more_text_2" = "(alle deine Kontakte und Nachrichten bleiben erhalten).";
"bwi_mobile_dialog_m1_more_text_3" = "\n\nDich erwartet u.a.:";
"bwi_mobile_dialog_m1_more_text_bullet_1" = "schnellere Performance";

View File

@@ -677,6 +677,7 @@
"bwi_mobile_dialog_m_more_title" = "BundesMessengerX";
"bwi_mobile_dialog_m1_more_text_1" = "BuM will soon be switched off and replaced by BumX. This is a new, technically optimized app ";
"bwi_mobile_dialog_m3_more_text_1" = "BuM has been switched off and replaced by BumX. This is a new, technically optimized app ";
"bwi_mobile_dialog_m3_more_text_1_mdm" = "BuM has been switched off and replaced by BumX. This is a new, technically optimized app, which will soon be made available by your administrator ";
"bwi_mobile_dialog_m1_more_text_2" = "(all your contacts and messages will be retained).";
"bwi_mobile_dialog_m1_more_text_3" = "\n\nYou can expect:";

View File

@@ -319,7 +319,7 @@ public class BWIL10n: NSObject {
public static var bwiMobileDialogM1BannerTextPrefix: String {
return BWIL10n.tr("Bwi", "bwi_mobile_dialog_m1_banner_text_prefix")
}
/// Der BuM wird bald abgeschaltet und durch durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App
/// Der BuM wird bald abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App
public static var bwiMobileDialogM1MoreText1: String {
return BWIL10n.tr("Bwi", "bwi_mobile_dialog_m1_more_text_1")
}
@@ -359,10 +359,14 @@ public class BWIL10n: NSObject {
public static var bwiMobileDialogM2BannerTextSuffix: String {
return BWIL10n.tr("Bwi", "bwi_mobile_dialog_m2_banner_text_suffix")
}
/// Der BuM wurde nun abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App, welche dir von deinem Admin zur Verfügung gestellt wird
/// Der BuM wurde nun abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App
public static var bwiMobileDialogM3MoreText1: String {
return BWIL10n.tr("Bwi", "bwi_mobile_dialog_m3_more_text_1")
}
/// Der BuM wurde nun abgeschaltet und durch den BuMX ersetzt. Dies ist eine neue, technisch optimierte App, welche dir von deinem Admin zur Verfügung gestellt wird
public static var bwiMobileDialogM3MoreText1Mdm: String {
return BWIL10n.tr("Bwi", "bwi_mobile_dialog_m3_more_text_1_mdm")
}
/// Wechsel erfolgreich 🎉
public static var bwiMobileDialogM3SuccessChangeTitle: String {
return BWIL10n.tr("Bwi", "bwi_mobile_dialog_m3_success_change_title")

View File

@@ -36,9 +36,9 @@ struct MigrationInfoView: View {
} else {
MigrationInfoViewOne()
.tag(1)
if !username.isEmpty || getUserName != nil {
if !BWIBuildSettings.shared.isManagedViaMDM {
MigrationInfoViewTwo(username: username, getUserName: getUserName)
.tag(2)
.tag(2)
}
}
}
@@ -173,7 +173,7 @@ struct MigrationInfoViewOne: View {
.padding(.bottom, 20)
if BWIBuildSettings.shared.isManagedViaMDM {
if BWIBuildSettings.shared.BuMXMigrationInfoLevel == 3 {
Text(BWIL10n.bwiMobileDialogM3MoreText1) +
Text(BWIL10n.bwiMobileDialogM3MoreText1Mdm) +
Text(BWIL10n.bwiMobileDialogM1MoreText2).bold() +
Text(BWIL10n.bwiMobileDialogM1MoreText3)
} else {
@@ -298,38 +298,51 @@ struct MigrationInfoViewTwo: View {
.padding(.bottom, 20)
}
VStack(alignment: .leading) {
HStack() {
Text("1.")
Button(action: {
UIPasteboard.general.string = lazyLoadedUserName ?? ""
guard !showSuccessToast else { return }
withAnimation {
showSuccessToast = true
VStack(alignment: .leading) {
HStack() {
if lazyLoadedUserName != nil {
Text("1.")
Button(action: {
UIPasteboard.general.string = lazyLoadedUserName ?? ""
guard !showSuccessToast else { return }
withAnimation {
showSuccessToast = true
}
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
withAnimation {
showSuccessToast = false
}
}
}, label: {
Text(BWIL10n.bwiMobileDialogMMore2Text1)
.underline()
.foregroundColor(Color(themeService.theme.textPrimaryColor))
Image(systemName: "square.on.square")
.resizable()
.foregroundColor(Color(themeService.theme.textPrimaryColor))
.frame(width: 15, height: 15)
})
}
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
withAnimation {
showSuccessToast = false
}
}
HStack() {
// bwi #7555 I know, but its only legacy
if lazyLoadedUserName != nil {
Text("2.")
} else {
Text("1.")
}
}, label: {
Text(BWIL10n.bwiMobileDialogMMore2Text1)
.underline()
.foregroundColor(Color(themeService.theme.textPrimaryColor))
Image(systemName: "square.on.square")
.resizable()
.foregroundColor(Color(themeService.theme.textPrimaryColor))
.frame(width: 15, height: 15)
})
}
HStack() {
Text("2.")
Text(BWIL10n.bwiMobileDialogMMore2Text2)
}
.padding(.bottom, 1)
HStack() {
Text("3.")
Text(BWIL10n.bwiMobileDialogMMore2Text3)
Text(BWIL10n.bwiMobileDialogMMore2Text2)
}
.padding(.bottom, 1)
HStack() {
if lazyLoadedUserName != nil {
Text("3.")
} else {
Text("2.")
}
Text(BWIL10n.bwiMobileDialogMMore2Text3)
}
}
}
}