Skip to content

Commit 9c0a22b

Browse files
committed
Fixed typos
1 parent 257fede commit 9c0a22b

File tree

14 files changed

+137
-144
lines changed

14 files changed

+137
-144
lines changed

src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ Restore = Restore
6565
Run = Run
6666
Skipped = Function "{0}" skipped.
6767
GPOUpdate = Updating GPO...
68-
ThankfulToastTitle = Thank you for using of Sophia Script
68+
ThankfulToastTitle = Thank you for using Sophia Script
6969
DonateToastButton = Donate
7070
'@

src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15212,21 +15212,6 @@ public static void PostMessage()
1521215212
}
1521315213
}
1521415214

15215-
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
15216-
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
15217-
{
15218-
if (Test-Path -Path "$env:TEMP\Computer.txt")
15219-
{
15220-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
15221-
}
15222-
if (Test-Path -Path "$env:TEMP\User.txt")
15223-
{
15224-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
15225-
}
15226-
15227-
gpupdate /force
15228-
}
15229-
1523015215
# Call MeetNow unless binary value is reverted
1523115216
if (-not $Script:MeetNow)
1523215217
{
@@ -15237,10 +15222,6 @@ public static void PostMessage()
1523715222
MeetNow -Show
1523815223
}
1523915224

15240-
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
15241-
# https://github.com/PowerShell/PowerShell/issues/21070
15242-
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
15243-
1524415225
# Kill all explorer instances in case "launch folder windows in a separate process" enabled
1524515226
Get-Process -Name explorer | Stop-Process -Force
1524615227
Start-Sleep -Seconds 3
@@ -15331,11 +15312,29 @@ public static void PostMessage()
1533115312
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage)
1533215313
#endregion Toast notifications
1533315314

15315+
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
15316+
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
15317+
{
15318+
if (Test-Path -Path "$env:TEMP\Computer.txt")
15319+
{
15320+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
15321+
}
15322+
if (Test-Path -Path "$env:TEMP\User.txt")
15323+
{
15324+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
15325+
}
15326+
15327+
gpupdate /force
15328+
}
15329+
15330+
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
15331+
# https://github.com/PowerShell/PowerShell/issues/21070
15332+
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
15333+
1533415334
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
1533515335
Write-Verbose -Message "https://t.me/sophianews" -Verbose
1533615336
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
1533715337
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose
15338-
1533915338
}
1534015339
#endregion Post Actions
1534115340

src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ Restore = Restore
5656
Run = Run
5757
Skipped = Function "{0}" skipped.
5858
GPOUpdate = Updating GPO...
59-
ThankfulToastTitle = Thank you for using of Sophia Script
59+
ThankfulToastTitle = Thank you for using Sophia Script
6060
DonateToastButton = Donate
6161
'@

src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11678,25 +11678,6 @@ public static void PostMessage()
1167811678
}
1167911679
}
1168011680

11681-
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
11682-
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
11683-
{
11684-
if (Test-Path -Path "$env:TEMP\Computer.txt")
11685-
{
11686-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
11687-
}
11688-
if (Test-Path -Path "$env:TEMP\User.txt")
11689-
{
11690-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
11691-
}
11692-
11693-
gpupdate /force
11694-
}
11695-
11696-
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
11697-
# https://github.com/PowerShell/PowerShell/issues/21070
11698-
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
11699-
1170011681
# Kill all explorer instances in case "launch folder windows in a separate process" enabled
1170111682
Get-Process -Name explorer | Stop-Process -Force
1170211683
Start-Sleep -Seconds 3
@@ -11792,6 +11773,24 @@ public static void PostMessage()
1179211773
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
1179311774
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose
1179411775

11776+
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
11777+
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
11778+
{
11779+
if (Test-Path -Path "$env:TEMP\Computer.txt")
11780+
{
11781+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
11782+
}
11783+
if (Test-Path -Path "$env:TEMP\User.txt")
11784+
{
11785+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
11786+
}
11787+
11788+
gpupdate /force
11789+
}
11790+
11791+
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
11792+
# https://github.com/PowerShell/PowerShell/issues/21070
11793+
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
1179511794
}
1179611795
#endregion Post Actions
1179711796

src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ Restore = Restore
5858
Run = Run
5959
Skipped = Function "{0}" skipped.
6060
GPOUpdate = Updating GPO...
61-
ThankfulToastTitle = Thank you for using of Sophia Script
61+
ThankfulToastTitle = Thank you for using Sophia Script
6262
DonateToastButton = Donate
6363
'@

src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13043,25 +13043,6 @@ public static void PostMessage()
1304313043
}
1304413044
}
1304513045

13046-
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
13047-
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
13048-
{
13049-
if (Test-Path -Path "$env:TEMP\Computer.txt")
13050-
{
13051-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
13052-
}
13053-
if (Test-Path -Path "$env:TEMP\User.txt")
13054-
{
13055-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
13056-
}
13057-
13058-
gpupdate /force
13059-
}
13060-
13061-
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
13062-
# https://github.com/PowerShell/PowerShell/issues/21070
13063-
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
13064-
1306513046
# Kill all explorer instances in case "launch folder windows in a separate process" enabled
1306613047
Get-Process -Name explorer | Stop-Process -Force
1306713048
Start-Sleep -Seconds 3
@@ -13157,6 +13138,24 @@ public static void PostMessage()
1315713138
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
1315813139
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose
1315913140

13141+
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
13142+
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
13143+
{
13144+
if (Test-Path -Path "$env:TEMP\Computer.txt")
13145+
{
13146+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
13147+
}
13148+
if (Test-Path -Path "$env:TEMP\User.txt")
13149+
{
13150+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
13151+
}
13152+
13153+
gpupdate /force
13154+
}
13155+
13156+
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
13157+
# https://github.com/PowerShell/PowerShell/issues/21070
13158+
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
1316013159
}
1316113160
#endregion Post Actions
1316213161

src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ Restore = Restore
6666
Run = Run
6767
Skipped = Function "{0}" skipped.
6868
GPOUpdate = Updating GPO...
69-
ThankfulToastTitle = Thank you for using of Sophia Script
69+
ThankfulToastTitle = Thank you for using Sophia Script
7070
DonateToastButton = Donate
7171
'@

src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15242,21 +15242,6 @@ public static void PostMessage()
1524215242
}
1524315243
}
1524415244

15245-
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
15246-
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
15247-
{
15248-
if (Test-Path -Path "$env:TEMP\Computer.txt")
15249-
{
15250-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
15251-
}
15252-
if (Test-Path -Path "$env:TEMP\User.txt")
15253-
{
15254-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
15255-
}
15256-
15257-
gpupdate /force
15258-
}
15259-
1526015245
# Call MeetNow unless binary value is reverted
1526115246
if (-not $Script:MeetNow)
1526215247
{
@@ -15267,10 +15252,6 @@ public static void PostMessage()
1526715252
MeetNow -Show
1526815253
}
1526915254

15270-
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
15271-
# https://github.com/PowerShell/PowerShell/issues/21070
15272-
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
15273-
1527415255
# Kill all explorer instances in case "launch folder windows in a separate process" enabled
1527515256
Get-Process -Name explorer | Stop-Process -Force
1527615257
Start-Sleep -Seconds 3
@@ -15366,6 +15347,24 @@ public static void PostMessage()
1536615347
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
1536715348
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose
1536815349

15350+
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
15351+
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
15352+
{
15353+
if (Test-Path -Path "$env:TEMP\Computer.txt")
15354+
{
15355+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
15356+
}
15357+
if (Test-Path -Path "$env:TEMP\User.txt")
15358+
{
15359+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
15360+
}
15361+
15362+
gpupdate /force
15363+
}
15364+
15365+
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
15366+
# https://github.com/PowerShell/PowerShell/issues/21070
15367+
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
1536915368
}
1537015369
#endregion Post Actions
1537115370

src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ Restore = Restore
6262
Run = Run
6363
Skipped = Function "{0}" skipped.
6464
GPOUpdate = Updating GPO...
65-
ThankfulToastTitle = Thank you for using of Sophia Script
65+
ThankfulToastTitle = Thank you for using Sophia Script
6666
DonateToastButton = Donate
6767
'@

src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14206,25 +14206,6 @@ public static void PostMessage()
1420614206
}
1420714207
}
1420814208

14209-
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
14210-
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
14211-
{
14212-
if (Test-Path -Path "$env:TEMP\Computer.txt")
14213-
{
14214-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
14215-
}
14216-
if (Test-Path -Path "$env:TEMP\User.txt")
14217-
{
14218-
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
14219-
}
14220-
14221-
gpupdate /force
14222-
}
14223-
14224-
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
14225-
# https://github.com/PowerShell/PowerShell/issues/21070
14226-
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
14227-
1422814209
# Kill all explorer instances in case "launch folder windows in a separate process" enabled
1422914210
Get-Process -Name explorer | Stop-Process -Force
1423014211
Start-Sleep -Seconds 3
@@ -14315,11 +14296,29 @@ public static void PostMessage()
1431514296
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage)
1431614297
#endregion Toast notifications
1431714298

14299+
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database
14300+
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt"))
14301+
{
14302+
if (Test-Path -Path "$env:TEMP\Computer.txt")
14303+
{
14304+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt"
14305+
}
14306+
if (Test-Path -Path "$env:TEMP\User.txt")
14307+
{
14308+
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt"
14309+
}
14310+
14311+
gpupdate /force
14312+
}
14313+
14314+
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
14315+
# https://github.com/PowerShell/PowerShell/issues/21070
14316+
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore
14317+
1431814318
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
1431914319
Write-Verbose -Message "https://t.me/sophianews" -Verbose
1432014320
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
1432114321
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose
14322-
1432314322
}
1432414323
#endregion Post Actions
1432514324

0 commit comments

Comments
 (0)