Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swedish translations #12

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion NightscoutServiceKit/sv.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
/* The remote action name for Bolus Entry */
"Bolus Entry" = "Bolusinmatning";

/* The remote action name for Cancel Override */
"Cancel Override" = "Avbryt Override";

/* The remote action name for Carb Entry */
"Carb Entry" = "Kolhydratinmatning";

/* Name of custom override */
"Custom Override" = "Anpassad Override";

/* Remote command error description: expired. */
"Expired" = "Utgången";

/* The remote action abbreviation for gram units */
"g" = "g";

/* Remote command error description: Missing OTP. */
"Missing OTP" = "Saknar engångskod";

/* The title of the Nightscout service */
"Nightscout" = "Nightscout";

/* The remote action name for Override */
"Override" = "Override";

/* Name of pre-meal workout override
Name uploaded to Nightscout for Pre-Meal override */
"Pre-Meal" = "Före måltid";

/* The remote action abbreviation for bolus units */
"U" = "E";

/* The prefix for the remote unhandled notification error. (1: notification payload) */
"Unhandled Notification: %1$@" = "Ohanterad avisering: %1$@";

/* Name of legacy workout override
Name uploaded to Nightscout for legacy workout override */
"Workout" = "Träning";

4 changes: 2 additions & 2 deletions NightscoutServiceKitUI/Views/OTPSelectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ struct OTPSelectionView: View {
}, label: {
Image(systemName: "arrow.clockwise").imageScale(.large)
}).alert(isPresented: $showingAlert) {
Alert(title: Text("Reset Secret Key"),
message: Text("Are you sure you want to reset the secret key?"),
Alert(title: Text(LocalizedString("Reset Secret Key", comment: "Dialog title to reset secret key")),
message: Text(LocalizedString("Are you sure you want to reset the secret key?", comment: "Dialog text before resetting secret key")),
primaryButton: .default(Text("OK"), action: {
otpViewModel.resetSecretKey()
}),
Expand Down
12 changes: 6 additions & 6 deletions NightscoutServiceKitUI/Views/ServiceStatusView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct ServiceStatusView: View, HorizontalSizeClassOverride {
@State private var selectedItem: String?
var body: some View {
VStack {
Text("Nightscout")
Text(LocalizedString("Nightscout", comment: "Title of service status view"))
.font(.largeTitle)
.fontWeight(.semibold)
Image(frameworkImage: "nightscout", decorative: true)
Expand All @@ -29,22 +29,22 @@ struct ServiceStatusView: View, HorizontalSizeClassOverride {

VStack(spacing: 0) {
HStack {
Text("URL")
Text(LocalizedString("URL", comment: "URL row header in service status view"))
Spacer()
Text(viewModel.urlString)
}
.padding()
Divider()
HStack {
Text("Status")
Text(LocalizedString("Status", comment: "Status row header in service status view"))
Spacer()
Text(String(describing: viewModel.status))
}
.padding()
Divider()
NavigationLink(destination: OTPSelectionView(otpViewModel: otpViewModel), tag: "otp-view", selection: $selectedItem) {
HStack {
Text("One-Time Password")
Text(LocalizedString("One-Time Password", comment: "One-Time Password row header in service status view"))
Spacer()
Text(otpViewModel.otpCode)
Image(systemName: "chevron.right")
Expand All @@ -59,7 +59,7 @@ struct ServiceStatusView: View, HorizontalSizeClassOverride {
Button(action: {
viewModel.didLogout?()
} ) {
Text("Logout").padding(.top, 20)
Text(LocalizedString("Logout", comment: "Logout button in service status view")).padding(.top, 20)
}
}
.padding([.leading, .trailing])
Expand All @@ -69,7 +69,7 @@ struct ServiceStatusView: View, HorizontalSizeClassOverride {

private var dismissButton: some View {
Button(action: dismiss) {
Text("Done").bold()
Text(LocalizedString("Done", comment: "Done button in service status view")).bold()
}
}
}
31 changes: 12 additions & 19 deletions NightscoutServiceKitUI/sv.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
/* The title of the Nightscout API secret */
"API Secret" = "API Secret";
/* Dialog text before resetting secret key */
"Are you sure you want to reset the secret key?" = "Är du säker på att du vill återställa den hemliga nyckeln?";

/* Button text to cancel Nightscout credential input */
"Cancel" = "Avbryt";

/* Description of ServiceStatus of checking */
"Checking..." = "Kontrollerar...";

/* Button title to delete a service */
"Delete Service" = "Ta bort tjänst";

/* No comment provided by engineer. */
"Done" = "Färdig";

/* The placeholder text for the Nightscout site URL */
"https://mysite.herokuapp.com" = "https://mysite.herokuapp.com";
/* Done button in service status view */
"Done" = "Klar";

/* Button text to login on Nightscout CredentialsView */
"Login" = "Logga in";

/* No comment provided by engineer. */
/* Logout button in service status view */
"Logout" = "Logga ut";

/* No comment provided by engineer. */
/* Title of service status view */
"Nightscout" = "Nightscout";

/* Title on Nightscout CredentialsView */
Expand All @@ -34,15 +28,14 @@
/* Description of ServiceStatus of checking */
"OK" = "OK";

/* The default placeholder for required text */
"Required" = "Krävs";
/* One-Time Password row header in service status view */
"One-Time Password" = "Engångskod";

/* The title of the Nightscout site URL */
"Site URL" = "Nightscout-URL";
/* Dialog title to reset secret key */
"Reset Secret Key" = "Återställ hemlig nyckel";

/* No comment provided by engineer. */
/* Status row header in service status view */
"Status" = "Status";

/* No comment provided by engineer. */
/* URL row header in service status view */
"URL" = "URL";