Skip to content

Commit 79ea4e3

Browse files
committed
Update Sophia.psm1
6.5.7 — 22.10.2023
1 parent d74e808 commit 79ea4e3

File tree

103 files changed

+297
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+297
-186
lines changed

Wrapper/Config/config_Windows_10.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,23 @@
974974
"Preset": "Zero",
975975
"WindowsDefault": "Zero"
976976
},
977+
{
978+
"Id": 340,
979+
"Region": "UI & Personalization",
980+
"Control": "cmb",
981+
"Required": "false",
982+
"Function": "UserFolders",
983+
"Arg": {
984+
"Zero": {
985+
"Tag": "Show"
986+
},
987+
"One": {
988+
"Tag": "Hide"
989+
}
990+
},
991+
"Preset": "Zero",
992+
"WindowsDefault": "Zero"
993+
},
977994
{
978995
"Id": 400,
979996
"Region": "OneDrive",

Wrapper/Localizations/de-DE/tooltip_Windows_10.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,21 @@
863863
}
864864
}
865865
},
866+
{
867+
"Id": 339,
868+
"Region": "UI & Personalization",
869+
"Function": "UserFolders",
870+
"Arg": {
871+
"Zero": {
872+
"Tag": "Show",
873+
"ToolTip": "Benutzerordner in \"Dieser PC\" anzeigen."
874+
},
875+
"One": {
876+
"Tag": "Hide",
877+
"ToolTip": "Benutzerordner in \"Dieser PC\" ausblenden."
878+
}
879+
}
880+
},
866881
{
867882
"Id": 400,
868883
"Region": "OneDrive",

Wrapper/Localizations/de-DE/tooltip_Windows_11.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
},
536536
"One": {
537537
"Tag": "Show",
538-
"ToolTip": "Zeigen Sie die Schaltfläche "Copilot" in der Taskleiste an (Standardeinstellung)."
538+
"ToolTip": "Zeigen Sie die Schaltfläche Copilot in der Taskleiste an (Standardeinstellung)."
539539
}
540540
}
541541
},

Wrapper/Localizations/en-US/tooltip_Windows_10.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,21 @@
863863
}
864864
}
865865
},
866+
{
867+
"Id": 339,
868+
"Region": "UI & Personalization",
869+
"Function": "UserFolders",
870+
"Arg": {
871+
"Zero": {
872+
"Tag": "Show",
873+
"ToolTip": "Show user folders in \"This PC\"."
874+
},
875+
"One": {
876+
"Tag": "Hide",
877+
"ToolTip": "Hide user folders in \"This PC\"."
878+
}
879+
}
880+
},
866881
{
867882
"Id": 400,
868883
"Region": "OneDrive",

Wrapper/Localizations/ru-RU/tooltip_Windows_10.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,21 @@
863863
}
864864
}
865865
},
866+
{
867+
"Id": 339,
868+
"Region": "UI & Personalization",
869+
"Function": "UserFolders",
870+
"Arg": {
871+
"Zero": {
872+
"Tag": "Show",
873+
"ToolTip": "Отобразить пользовательские папки в \"Этот компьютер\""
874+
},
875+
"One": {
876+
"Tag": "Hide",
877+
"ToolTip": "Скрыть пользовательские папки в \"Этот компьютер\""
878+
}
879+
}
880+
},
866881
{
867882
"Id": 400,
868883
"Region": "OneDrive",

Wrapper/SophiaScriptWrapper.exe

11.5 KB
Binary file not shown.

sophia_script_versions.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.6",
3-
"Sophia_Script_Windows_10_PowerShell_7": "5.17.6",
4-
"Sophia_Script_Windows_10_LTSC2019": "5.7.6",
5-
"Sophia_Script_Windows_10_LTSC2021": "5.17.6",
6-
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.6",
7-
"Sophia_Script_Windows_11_PowerShell_7": "6.5.6",
8-
"Sophia_Script_Wrapper": "2.6.11"
2+
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.7",
3+
"Sophia_Script_Windows_10_PowerShell_7": "5.17.7",
4+
"Sophia_Script_Windows_10_LTSC2019": "5.7.7",
5+
"Sophia_Script_Windows_10_LTSC2021": "5.17.7",
6+
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.7",
7+
"Sophia_Script_Windows_11_PowerShell_7": "6.5.7",
8+
"Sophia_Script_Wrapper": "2.6.12"
99
}

src/Sophia_Script_for_Windows_10/Functions.ps1

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
.SYNOPSIS
33
The TAB completion for functions and their arguments
44
5-
Version: v5.17.6
6-
Date: 17.09.2023
5+
Version: v5.17.7
6+
Date: 22.10.2023
77
88
Copyright (c) 2014—2023 farag
99
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
5050

5151
Clear-Host
5252

53-
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
53+
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
5454

5555
Remove-Module -Name Sophia -Force -ErrorAction Ignore
5656
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -171,6 +171,23 @@ $Parameters = @{
171171
continue
172172
}
173173

174+
# If a module command is UserFolders
175+
if ($Command -eq "UserFolders")
176+
{
177+
# Get all command arguments, excluding defaults
178+
foreach ($ParameterSet in $ParameterSets.Name)
179+
{
180+
$ValidValues = ((Get-Command -Name UserFolders).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues
181+
foreach ($ValidValue in $ValidValues)
182+
{
183+
# The "UserFolders -ThreeDObjects Hide" construction
184+
"UserFolders" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""}
185+
}
186+
187+
continue
188+
}
189+
}
190+
174191
foreach ($ParameterSet in $ParameterSets.Name)
175192
{
176193
# The "Function -Argument" construction

src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ConvertFrom-StringData -StringData @'
22
UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows.
33
UnsupportedOSBuild = Das Skript unterstützt Windows 10 22H2.
4-
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3448+. Führen Sie Windows Update aus und versuchen Sie es erneut.
4+
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3570+. Führen Sie Windows Update aus und versuchen Sie es erneut.
55
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
66
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
77
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.

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
@@ -1,7 +1,7 @@
11
ConvertFrom-StringData -StringData @'
22
UnsupportedOSBitness = The script supports 64-bit Windows only.
33
UnsupportedOSBuild = The script supports Windows 10 22H2.
4-
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3448+. Run Windows Update and try again.
4+
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3570+. Run Windows Update and try again.
55
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
66
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
77
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.

0 commit comments

Comments
 (0)