From 5bd5743d8bc364950cfc7d2f0fda19dbbbbd5b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Mu=CC=88ller?= Date: Wed, 23 Dec 2020 17:26:36 +0100 Subject: [PATCH] i18n and reformatting --- .../Supporting Files/l10n/de.lproj/General.strings | 2 ++ .../Supporting Files/l10n/en.lproj/General.strings | 2 +- DHBW-Service/Views/ContentView.swift | 13 ++++++------- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/DHBW-Service/Supporting Files/l10n/de.lproj/General.strings b/DHBW-Service/Supporting Files/l10n/de.lproj/General.strings index b75ca20..40f514b 100644 --- a/DHBW-Service/Supporting Files/l10n/de.lproj/General.strings +++ b/DHBW-Service/Supporting Files/l10n/de.lproj/General.strings @@ -8,3 +8,5 @@ "name" = "Name"; "course" = "Kurs"; "director" = "Studiengangsleiter"; +"filledAuto" = "automatisch ausgefüllt"; +"welcomeText" = "Bitte fülle die folgenden Felder aus:"; diff --git a/DHBW-Service/Supporting Files/l10n/en.lproj/General.strings b/DHBW-Service/Supporting Files/l10n/en.lproj/General.strings index 3e95653..bf48c16 100644 --- a/DHBW-Service/Supporting Files/l10n/en.lproj/General.strings +++ b/DHBW-Service/Supporting Files/l10n/en.lproj/General.strings @@ -9,4 +9,4 @@ "course" = "Course"; "director" = "Director"; "filledAuto" = "filled automatically"; -"welcomeText" = "Please enter your data in the following fields."; +"welcomeText" = "Please enter your data in the following fields:"; diff --git a/DHBW-Service/Views/ContentView.swift b/DHBW-Service/Views/ContentView.swift index 7f2f875..53f80c5 100644 --- a/DHBW-Service/Views/ContentView.swift +++ b/DHBW-Service/Views/ContentView.swift @@ -44,17 +44,16 @@ extension ContentView{ } struct ContentView_Previews: PreviewProvider { - - static func getFirstOpening() -> LocalSettings { - let settings = LocalSettings(); - settings.isFirstOpening = false; - return settings - } - static var previews: some View { ContentView() .preferredColorScheme(.dark) .environmentObject(getFirstOpening()) .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } + + static func getFirstOpening() -> LocalSettings { + let settings = LocalSettings(); + settings.isFirstOpening = false; + return settings + } }