Skip to content

Commit

Permalink
Merge pull request #66 from ohaiibuzzle/feat/winetricks-ui
Browse files Browse the repository at this point in the history
fix: minor fixes for Winetricks
  • Loading branch information
ohaiibuzzle authored Nov 20, 2023
2 parents b1e6043 + f06656d commit f590484
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Harbor/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -1508,12 +1508,12 @@
}
}
},
"sheet.winetricks.subtitle" : {
"sheet.winetricks.subtitle %@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Choose a Winetricks verb from below to install"
"value" : "Choose a Winetricks verb from below to install to %@"
}
}
}
Expand Down Expand Up @@ -1692,4 +1692,4 @@
}
},
"version" : "1.0"
}
}
2 changes: 1 addition & 1 deletion Harbor/Systems/Winetricks/WinetricksUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct WinetricksUtils {
let verbName = line.components(separatedBy: " ")[0]
let verbDescription = line.replacingOccurrences(of: "\(verbName) ", with: "")
.trimmingCharacters(in: .whitespaces)
currentCategory!.verbs.append(WinetricksVerb(name: verbName, description: verbDescription))
currentCategory?.verbs.append(WinetricksVerb(name: verbName, description: verbDescription))
}
}

Expand Down
2 changes: 1 addition & 1 deletion Harbor/UIElements/Winetricks/WinetricksUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct WinetricksUI: View {
VStack {
Text("sheet.winetricks.title")
.font(.title)
Text("sheet.winetricks.subtitle")
Text("sheet.winetricks.subtitle \(bottle.name)")
.multilineTextAlignment(.center)
}
.padding(.bottom)
Expand Down

0 comments on commit f590484

Please sign in to comment.