Skip to content

Commit

Permalink
Refactor version text. Update localizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
W1W1-M committed Nov 21, 2021
1 parent 21ab015 commit 7a504f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Sources/PackAPrefPane/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@
/* No comment provided by engineer. */
"Terms of Service" = "Terms of Service";

/* No comment provided by engineer. */
"PackAPrefPane by W1W1-M" = "PackAPrefPane by W1W1-M"

/* No comment provided by engineer. */
"MIT license" = "MIT license"
8 changes: 7 additions & 1 deletion Sources/PackAPrefPane/Resources/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"What's New" = "Nouveautés";

/* No comment provided by engineer. */
"Release Notes v%@" = "Notes de version v%@";
"Release Notes" = "Notes de version";

/* No comment provided by engineer. */
"FAQ" = "FAQ";
Expand All @@ -39,3 +39,9 @@

/* No comment provided by engineer. */
"Terms of Service" = "Conditions d'utilisation";

/* No comment provided by engineer. */
"PackAPrefPane by W1W1-M" = "PackAPrefPane par W1W1-M"

/* No comment provided by engineer. */
"MIT license" = "Licence MIT"
8 changes: 4 additions & 4 deletions Sources/PackAPrefPane/Views/Help.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ struct WhatsNew: View {
DisclosureGroup(NSLocalizedString("What's New", tableName: "Localizable", bundle: .module, value: "", comment: ""), isExpanded: $whatsNewExpanded) {
VStack {
HStack {
Text(NSLocalizedString("Release Notes v\(appVersion)", tableName: "Localizable", bundle: .module, value: "", comment: ""))
.font(.headline)
.underline()
Spacer()
}
Text(NSLocalizedString("Release Notes", tableName: "Localizable", bundle: .module, value: "", comment: ""))
Text("v\(appVersion)")
Spacer()
}.font(.headline)
Spacer()
HStack {
Text(NSLocalizedString(prefPaneData.changelogText, tableName: "Localizable", bundle: .main, value: "", comment: ""))
Expand Down

0 comments on commit 7a504f5

Please sign in to comment.