[CHANGE] Extracted all strings into the Localizable.strings

This commit is contained in:
Fabian Thies
2023-01-16 21:23:16 +01:00
parent 0000610b9d
commit f90bf3bfcf
9 changed files with 91 additions and 24 deletions

View File

@@ -138,7 +138,7 @@ struct AppDetailView: View {
HStack {
Spacer()
Image(systemSymbol: .checkmarkSealFill)
Text("Official App")
Text(L10n.AppDetailView.Badge.official)
Spacer()
}
.foregroundColor(.accentColor)
@@ -148,7 +148,7 @@ struct AppDetailView: View {
HStack {
Spacer()
Image(systemSymbol: .shieldLefthalfFill)
Text("From Trusted Source")
Text(L10n.AppDetailView.Badge.trusted)
Spacer()
}
.foregroundColor(.accentColor)

View File

@@ -44,11 +44,11 @@ struct AppScreenshotsPreview: View {
}
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
ToolbarItem(placement: .cancellationAction) {
SwiftUI.Button {
self.dismiss()
} label: {
Text("Close")
Text(L10n.Action.close)
}
}
}

View File

@@ -45,17 +45,17 @@ struct BrowseView: View {
if searchText.isEmpty, filteredApps.count == 0 {
HintView {
Text("You don't have any apps yet.")
Text(L10n.BrowseView.Hints.NoApps.title)
.bold()
Text("Apps are provided by \"sources\". The specification for them is an open standard, so everyone can create their own source. To get you started, we have compiled a list of \"Trusted Sources\" which you can check out by tapping the button below.")
Text(L10n.BrowseView.Hints.NoApps.text)
.font(.callout)
.foregroundColor(.secondary)
SwiftUI.Button {
self.isShowingSourcesView = true
} label: {
Label("Add Source", systemSymbol: .plus)
Label(L10n.BrowseView.Hints.NoApps.addSource, systemSymbol: .plus)
}
.buttonStyle(FilledButtonStyle())
.padding(.top, 8)

View File

@@ -24,7 +24,7 @@ struct AppIDsView: View {
var body: some View {
ScrollView {
LazyVStack(alignment: .leading) {
Text("Each app and app extension installed with SideStore must register an App ID with Apple.\n\nApp IDs for paid developer accounts never expire, and there is no limit to how many you can create.")
Text(L10n.AppIDsView.description)
.foregroundColor(.secondary)
ForEach(appIDs, id: \.identifier) { appId in
@@ -42,10 +42,10 @@ struct AppIDsView: View {
}
.padding()
}
.navigationTitle("App IDs")
.navigationTitle(L10n.AppIDsView.title)
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
SwiftUI.Button("Done", action: self.dismiss)
ToolbarItem(placement: .confirmationAction) {
SwiftUI.Button(L10n.Action.done, action: self.dismiss)
}
}
}

View File

@@ -157,7 +157,7 @@ struct MyAppsView: View {
var updatesSection: some View {
HintView {
HStack(alignment: .center) {
Text("All Apps are Up To Date")
Text(L10n.MyAppsView.Hints.NoUpdates.title)
.bold()
Spacer()
@@ -165,13 +165,13 @@ struct MyAppsView: View {
SwiftUI.Button {
self.dismissUpdatesHint(forever: false)
} label: {
Label("Dismiss for now", systemSymbol: .zzz)
Label(L10n.MyAppsView.Hints.NoUpdates.dismissForNow, systemSymbol: .zzz)
}
SwiftUI.Button {
self.dismissUpdatesHint(forever: true)
} label: {
Label("Don't show this again", systemSymbol: .xmark)
Label(L10n.MyAppsView.Hints.NoUpdates.dontShowAgain, systemSymbol: .xmark)
}
} label: {
Image(systemSymbol: .xmark)
@@ -179,7 +179,7 @@ struct MyAppsView: View {
.foregroundColor(.secondary)
}
Text("You will be notified once updates for your apps are available. The updates will then be shown here.")
Text(L10n.MyAppsView.Hints.NoUpdates.text)
.font(.callout)
.foregroundColor(.secondary)
}