Skip to content

Commit a280ddb

Browse files
authored
correct case of "WinUtil" in GUI / user-facing messages (#4675)
* WinUtil in .ps1 * WinUtil in GUI * Update KnownIssues.md
1 parent 01c0e99 commit a280ddb

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/content/KnownIssues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try using a **VPN** and if that doesn't work than report the issue to https://gi
1515

1616
If you run WinUtil and get the error:
1717

18-
`"WinUtil is unable to run on your system, powershell execution is restricted by security policies,"`
18+
`"WinUtil is unable to run on your system. PowerShell execution is restricted by security policies"`
1919

2020
this means that your PowerShell session is in **Constrained Language Mode**, which prevents WinUtil from running.
2121

functions/private/Show-CustomDialog.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function Show-CustomDialog {
177177

178178
# Add "Winutil" text
179179
$winutilTextBlock = New-Object Windows.Controls.TextBlock
180-
$winutilTextBlock.Text = "Winutil"
180+
$winutilTextBlock.Text = "WinUtil"
181181
$winutilTextBlock.FontSize = $HeaderFontSize
182182
$winutilTextBlock.Foreground = $LogoColor
183183
$winutilTextBlock.Margin = New-Object Windows.Thickness(10, 10, 10, 5) # Add margins around the text block

scripts/main.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ try {
140140

141141
if (-NOT ($readerOperationSuccessful)) {
142142
Write-Host "Failed to parse xaml content using Windows.Markup.XamlReader's Load Method." -ForegroundColor Red
143-
Write-Host "Quitting winutil..." -ForegroundColor Red
143+
Write-Host "Quitting WinUtil..." -ForegroundColor Red
144144
$sync.runspace.Dispose()
145145
$sync.runspace.Close()
146146
[System.GC]::Collect()
@@ -364,7 +364,7 @@ $sync["Form"].Add_ContentRendered({
364364
# Disable the install tab
365365
$sync.WPFTab1BT.IsEnabled = $false
366366
$sync.WPFTab1BT.Opacity = 0.5
367-
$sync.WPFTab1BT.ToolTip = "Internet connection required for installing applications"
367+
$sync.WPFTab1BT.ToolTip = "Internet connection required for installing applications."
368368

369369
# Disable install-related buttons
370370
$sync.WPFInstall.IsEnabled = $false
@@ -373,7 +373,7 @@ $sync["Form"].Add_ContentRendered({
373373
$sync.WPFGetInstalled.IsEnabled = $false
374374

375375
# Show offline indicator
376-
Write-Host "Offline mode detected - Install tab disabled" -ForegroundColor Yellow
376+
Write-Host "Offline mode detected - Install tab disabled." -ForegroundColor Yellow
377377

378378
# Optionally switch to a different tab if install tab was going to be default
379379
Invoke-WPFTab "WPFTab2BT" # Switch to Tweaks tab instead

scripts/start.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ if ($Offline) {
1919
}
2020

2121
if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage') {
22-
Write-Host "WinUtil is unable to run on your system, powershell execution is restricted by security policies" -ForegroundColor Red
22+
Write-Host "WinUtil is unable to run on your system. PowerShell execution is restricted by security policies." -ForegroundColor Red
2323
return
2424
}
2525

2626
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
27-
Write-Output "Winutil needs to be run as Administrator. Attempting to relaunch."
27+
Write-Output "WinUtil needs to be run as Administrator. Attempting to relaunch."
2828
$argList = @()
2929

3030
$PSBoundParameters.GetEnumerator() | ForEach-Object {

xaml/inputXML.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@
10561056
Margin="0,0,2,0"
10571057
FontFamily="Segoe MDL2 Assets"
10581058
Content="N/A"
1059-
ToolTip="Change the Winutil UI Theme"
1059+
ToolTip="Change the WinUtil UI Theme"
10601060
/>
10611061
<Popup Name="ThemePopup"
10621062
IsOpen="False"

0 commit comments

Comments
 (0)