Skip to content

Commit

Permalink
Update Sophia.psm1
Browse files Browse the repository at this point in the history
6.5.7 — 22.10.2023
  • Loading branch information
farag2 committed Oct 22, 2023
1 parent d74e808 commit 79ea4e3
Show file tree
Hide file tree
Showing 103 changed files with 297 additions and 186 deletions.
17 changes: 17 additions & 0 deletions Wrapper/Config/config_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,23 @@
"Preset": "Zero",
"WindowsDefault": "Zero"
},
{
"Id": 340,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "UserFolders",
"Arg": {
"Zero": {
"Tag": "Show"
},
"One": {
"Tag": "Hide"
}
},
"Preset": "Zero",
"WindowsDefault": "Zero"
},
{
"Id": 400,
"Region": "OneDrive",
Expand Down
15 changes: 15 additions & 0 deletions Wrapper/Localizations/de-DE/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,21 @@
}
}
},
{
"Id": 339,
"Region": "UI & Personalization",
"Function": "UserFolders",
"Arg": {
"Zero": {
"Tag": "Show",
"ToolTip": "Benutzerordner in \"Dieser PC\" anzeigen."
},
"One": {
"Tag": "Hide",
"ToolTip": "Benutzerordner in \"Dieser PC\" ausblenden."
}
}
},
{
"Id": 400,
"Region": "OneDrive",
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/de-DE/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
},
"One": {
"Tag": "Show",
"ToolTip": "Zeigen Sie die Schaltfläche "Copilot" in der Taskleiste an (Standardeinstellung)."
"ToolTip": "Zeigen Sie die Schaltfläche Copilot in der Taskleiste an (Standardeinstellung)."
}
}
},
Expand Down
15 changes: 15 additions & 0 deletions Wrapper/Localizations/en-US/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,21 @@
}
}
},
{
"Id": 339,
"Region": "UI & Personalization",
"Function": "UserFolders",
"Arg": {
"Zero": {
"Tag": "Show",
"ToolTip": "Show user folders in \"This PC\"."
},
"One": {
"Tag": "Hide",
"ToolTip": "Hide user folders in \"This PC\"."
}
}
},
{
"Id": 400,
"Region": "OneDrive",
Expand Down
15 changes: 15 additions & 0 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,21 @@
}
}
},
{
"Id": 339,
"Region": "UI & Personalization",
"Function": "UserFolders",
"Arg": {
"Zero": {
"Tag": "Show",
"ToolTip": "Отобразить пользовательские папки в \"Этот компьютер\""
},
"One": {
"Tag": "Hide",
"ToolTip": "Скрыть пользовательские папки в \"Этот компьютер\""
}
}
},
{
"Id": 400,
"Region": "OneDrive",
Expand Down
Binary file modified Wrapper/SophiaScriptWrapper.exe
Binary file not shown.
14 changes: 7 additions & 7 deletions sophia_script_versions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.6",
"Sophia_Script_Windows_10_PowerShell_7": "5.17.6",
"Sophia_Script_Windows_10_LTSC2019": "5.7.6",
"Sophia_Script_Windows_10_LTSC2021": "5.17.6",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.6",
"Sophia_Script_Windows_11_PowerShell_7": "6.5.6",
"Sophia_Script_Wrapper": "2.6.11"
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.7",
"Sophia_Script_Windows_10_PowerShell_7": "5.17.7",
"Sophia_Script_Windows_10_LTSC2019": "5.7.7",
"Sophia_Script_Windows_10_LTSC2021": "5.17.7",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.7",
"Sophia_Script_Windows_11_PowerShell_7": "6.5.7",
"Sophia_Script_Wrapper": "2.6.12"
}
23 changes: 20 additions & 3 deletions src/Sophia_Script_for_Windows_10/Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.17.6
Date: 17.09.2023
Version: v5.17.7
Date: 22.10.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
Expand Down Expand Up @@ -50,7 +50,7 @@ function Sophia

Clear-Host

$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"
$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"

Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Expand Down Expand Up @@ -171,6 +171,23 @@ $Parameters = @{
continue
}

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

continue
}
}

foreach ($ParameterSet in $ParameterSets.Name)
{
# The "Function -Argument" construction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows.
UnsupportedOSBuild = Das Skript unterstützt Windows 10 22H2.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3448+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3570+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports 64-bit Windows only.
UnsupportedOSBuild = The script supports Windows 10 22H2.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3448+. Run Windows Update and try again.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3570+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits.
UnsupportedOSBuild = El script es compatible con versión Windows 10 22H2.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3448+. Ejecute Windows Update y vuelva a intentarlo.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3570+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3448+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3570+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja.
UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verzióját.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3448+. Futtassa a Windows Update programot, és próbálja meg újra.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3570+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit.
UnsupportedOSBuild = Lo script supporta Windows 10 22H2.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3448+. Eseguire Windows Update e riprovare.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3570+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows.
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 22H2.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3448+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3570+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits.
UnsupportedOSBuild = O script suporta versões Windows 10 22H2.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3448+. Execute o Windows Update e tente novamente.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3570+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows.
UnsupportedOSBuild = Скрипт поддерживает Windows 10 22H2.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3448+. Запустите обновление Windows и попробуйте заново.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3570+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3448+. Windows Update'i çalıştırın ve tekrar deneyin.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3570+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows.
UnsupportedOSBuild = Скрипт підтримує Windows 10 22H2.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3448+. Запустіть Windows Update і повторіть спробу.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3570+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持64位Windows。
UnsupportedOSBuild = 该脚本支持Windows 10版本22H2和更高版本。
UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19045.3448+。运行Windows Update并再次尝试。
UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19045.3570+。运行Windows Update并再次尝试。
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。
LoggedInUserNotAdmin = 登录的用户没有管理员的权利。
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.17.6'
ModuleVersion = '5.17.7'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
Expand Down
Loading

0 comments on commit 79ea4e3

Please sign in to comment.