Просмотр исходного кода

InfoText (Alerts) will now be localized when translations exists

Jon Mårtensson 5 лет назад
Родитель
Сommit
fc712d38e5

Разница между файлами не показана из-за своего большого размера
+ 156 - 43
FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorViewModel.swift


+ 2 - 2
FreeAPS/Sources/Modules/PreferencesEditor/View/PreferencesEditorRootView.swift

@@ -71,8 +71,8 @@ extension PreferencesEditor {
             .navigationBarTitleDisplayMode(.automatic)
             .alert(item: $infoButtonPressed) { infoButton in
                 Alert(
-                    title: Text(infoButton.oref0Variable),
-                    message: Text("\n" + infoButton.description + "\n"),
+                    title: Text("\(infoButton.oref0Variable)"),
+                    message: Text("\(infoButton.description)"),
                     dismissButton: .default(Text("OK"))
                 )
             }