Skip to content

Commit

Permalink
Some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Feb 11, 2024
1 parent bdbc7b2 commit e13ec78
Show file tree
Hide file tree
Showing 22 changed files with 2,973 additions and 990 deletions.
16 changes: 16 additions & 0 deletions Wrapper/Config/config_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,22 @@
"Preset": "Zero",
"WindowsDefault": "Three"
},
{
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "SearchHighlights",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "UI & Personalization",
"Control": "cmb",
Expand Down
18 changes: 16 additions & 2 deletions Wrapper/Localizations/de-DE/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,20 @@
}
}
},
{
"Region": "UI & Personalization",
"Function": "SearchHighlights",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Suchhighlights ausblenden."
},
"One": {
"Tag": "Show",
"ToolTip": "Suchhighlights anzeigen (Standardeinstellung)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "CopilotButton",
Expand Down Expand Up @@ -1282,11 +1296,11 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Holen Sie sich keine Windows-Updates, sobald sie für Ihr Gerät verfügbar sind (Standardeinstellung)."
"ToolTip": "Sie erhalten die neuesten Updates nicht, sobald sie verfügbar sind. (Standardeinstellung)."
},
"One": {
"Tag": "Enable",
"ToolTip": "Holen Sie sich Windows-Updates, sobald sie für Ihr Gerät verfügbar sind."
"ToolTip": "Erhalten Sie die neuesten Updates, sobald sie verfügbar sind."
}
}
},
Expand Down
18 changes: 16 additions & 2 deletions Wrapper/Localizations/en-US/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,20 @@
}
}
},
{
"Region": "UI & Personalization",
"Function": "SearchHighlights",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Hide search highlights."
},
"One": {
"Tag": "Show",
"ToolTip": "Show search highlights (default value)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "CopilotButton",
Expand Down Expand Up @@ -1282,11 +1296,11 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Do not get Windows updates as soon as they're available for your device (default value)."
"ToolTip": "Do not get the latest updates as soon as they're available (default value)."
},
"One": {
"Tag": "Enable",
"ToolTip": "Get Windows updates as soon as they're available for your device."
"ToolTip": "Get the latest updates as soon as they're available."
}
}
},
Expand Down
14 changes: 14 additions & 0 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,20 @@
}
}
},
{
"Region": "UI & Personalization",
"Function": "SearchHighlights",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Скрыть главное в поиске."
},
"One": {
"Tag": "Show",
"ToolTip": "Показать главное в поиске (значение по умолчанию)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "CopilotButton",
Expand Down
24 changes: 24 additions & 0 deletions src/Sophia_Script_for_Windows_10/Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,30 @@ $Parameters = @{
}
}

# If a module command is InstallDotNetRuntimes
if ($Command -eq "InstallDotNetRuntimes")
{
# Get all command arguments, excluding defaults
foreach ($ParameterSet in $ParameterSets.Name)
{
# If an argument is Runtimes
if ($ParameterSet -eq "Runtimes")
{
$ValidValues = ((Get-Command -Name InstallDotNetRuntimes).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues
foreach ($ValidValue in $ValidValues)
{
# The "InstallDotNetRuntimes -Runtimes <function>" construction
"InstallDotNetRuntimes" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""}
}

# The "InstallDotNetRuntimes -Runtimes <functions>" construction
"InstallDotNetRuntimes" + " " + "-" + $ParameterSet + " " + ($ValidValues -join ", ") | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""}
}

continue
}
}

# If a module command is Set-Policy
if ($Command -eq "Set-Policy")
{
Expand Down
Loading

0 comments on commit e13ec78

Please sign in to comment.