From f06656dfffcf9c57f1bea61009bc82ef044786de Mon Sep 17 00:00:00 2001 From: ohaiibuzzle <23693150+ohaiibuzzle@users.noreply.github.com> Date: Mon, 20 Nov 2023 21:32:09 +0700 Subject: [PATCH] fix: minor fixes for Winetricks --- Harbor/Localizable.xcstrings | 6 +++--- Harbor/Systems/Winetricks/WinetricksUtils.swift | 2 +- Harbor/UIElements/Winetricks/WinetricksUI.swift | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Harbor/Localizable.xcstrings b/Harbor/Localizable.xcstrings index ceeaa0e..0442558 100644 --- a/Harbor/Localizable.xcstrings +++ b/Harbor/Localizable.xcstrings @@ -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 %@" } } } @@ -1692,4 +1692,4 @@ } }, "version" : "1.0" -} \ No newline at end of file +} diff --git a/Harbor/Systems/Winetricks/WinetricksUtils.swift b/Harbor/Systems/Winetricks/WinetricksUtils.swift index 8f1c365..eb60651 100644 --- a/Harbor/Systems/Winetricks/WinetricksUtils.swift +++ b/Harbor/Systems/Winetricks/WinetricksUtils.swift @@ -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)) } } diff --git a/Harbor/UIElements/Winetricks/WinetricksUI.swift b/Harbor/UIElements/Winetricks/WinetricksUI.swift index be58aba..356fd22 100644 --- a/Harbor/UIElements/Winetricks/WinetricksUI.swift +++ b/Harbor/UIElements/Winetricks/WinetricksUI.swift @@ -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)