Localization work

This commit is contained in:
Stuart Breckenridge
2022-12-30 21:53:07 +08:00
parent d457b2dd53
commit 2bca08195e
54 changed files with 1172 additions and 350 deletions

View File

@@ -13,21 +13,21 @@ struct AboutView: View, LoadableAboutData {
var body: some View {
List {
Section(header: aboutHeaderView) {}
Section(header: Text("Primary Contributors", comment: "About: Primary Contributors section header")) {
Section(header: Text("label.text.primary-contributors", comment: "Primary Contributors")) {
ForEach(0..<about.PrimaryContributors.count, id: \.self) { i in
contributorView(about.PrimaryContributors[i])
}
}
Section(header: Text("Additional Contributors", comment: "About: Additional Contributors section header")) {
Section(header: Text("label.text.additional-contributors", comment: "Additional Contributors")) {
ForEach(0..<about.AdditionalContributors.count, id: \.self) { i in
contributorView(about.AdditionalContributors[i])
}
}
Section(header: Text("Thanks", comment: "About: Thanks section header"), footer: thanks, content: {})
Section(header: Text("label.text.thanks", comment: "Thanks"), footer: thanks, content: {})
Section(footer: copyright, content: {})
}
.listStyle(.insetGrouped)
.navigationTitle(Text("About", comment: "Navigation title: About"))
.navigationTitle(Text("navigation.title.about", comment: "About"))
.navigationBarTitleDisplayMode(.inline)
}
@@ -46,10 +46,10 @@ struct AboutView: View, LoadableAboutData {
.foregroundColor(.secondary)
.font(.callout)
Text("By Brent Simmons and the Ranchero Software team.", comment: "NetNewsWire byline.")
Text("label.text.netnewswire-byline", comment: "By Brent Simmons and the Ranchero Software team.")
.font(.subheadline)
Text("[netnewswire.com](https://netnewswire.com)")
Text("label.markdown.netnewswire-website", comment: "Markdown formatted link to netnewswire.com")
}
Spacer()

View File

@@ -16,9 +16,9 @@ public enum HelpSheet: CustomStringConvertible, CaseIterable {
public var description: String {
switch self {
case .help:
return String(localized: "NetNewsWire Help", comment: "Button: opens NetNewsWire Help page")
return NSLocalizedString("button.title.netnewswire-help", comment: "NetNewsWire Help")
case .website:
return String(localized: "NetNewsWire Website", comment: "Button: opens NetNewsWire website")
return NSLocalizedString("button.title.netnewswire-website", comment: "NetNewsWire Website")
}
}