Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Jul 8, 2023
1 parent a4eabdc commit 2ec0a13
Show file tree
Hide file tree
Showing 101 changed files with 3,313 additions and 3,484 deletions.
2 changes: 1 addition & 1 deletion Wrapper/Config/config_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Region": "Protection",
"Control": "cmb",
"Required": "true",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning"
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Config/config_Windows_10_LTSC.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Region": "Protection",
"Control": "cmb",
"Required": "true",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning"
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Config/config_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Region": "Protection",
"Control": "cmb",
"Required": "true",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning"
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/de-DE/tag.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Warning": "Warnen",
"Checks": "Überprüfen",
"InitialActions": "Überprüfen",
"Disable": "Deaktivieren",
"Enable": "Aktivieren",
"None": "Nichts",
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/de-DE/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"Id": 100,
"Region": "Protection",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning",
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 @@ -2,7 +2,7 @@
{
"Id": 100,
"Region": "Protection",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning",
Expand Down
6 changes: 3 additions & 3 deletions Wrapper/Localizations/en-US/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{
"Id": 100,
"Region": "Protection",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning",
"ToolTip": "The mandatory Checks. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument."
"ToolTip": "The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument."
},
"One": {
"Tag": "",
"ToolTip": "The mandatory Checks. No argument therefore no warning message about whether you've customized the preset file."
"ToolTip": "The mandatory checks. No argument therefore no warning message about whether you've customized the preset file."
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions Wrapper/Localizations/en-US/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{
"Id": 100,
"Region": "Protection",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning",
"ToolTip": "The mandatory Checks. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument."
"ToolTip": "The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the \"-Warning\" argument."
},
"One": {
"Tag": "",
"ToolTip": "The mandatory Checks. No argument therefore no warning message about whether you've customized the preset file."
"ToolTip": "The mandatory checks. No argument therefore no warning message about whether you've customized the preset file."
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/ru-RU/tag.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Warning": "Предупреждение",
"Checks": "Проверки",
"InitialActions": "Проверки",
"Disable": "Выключить",
"Enable": "Включить",
"None": "Пропустить",
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"Id": 100,
"Region": "Protection",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning",
Expand Down
2 changes: 1 addition & 1 deletion Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"Id": 100,
"Region": "Protection",
"Function": "Checks",
"Function": "InitialActions",
"Arg": {
"Zero": {
"Tag": "Warning",
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10/Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations

# The mandatory checks. Please, do not comment out this function
Checks
InitialActions

$Parameters = @{
CommandName = "Sophia"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = Die Verknüpfung "{0}" wird an Start
UninstallUWPForAll = Für alle Benutzer
UWPAppsTitle = UWP-Apps
HEVCDownloading = HEVC-Videoerweiterungen vom Gerätehersteller herunterladen...
GraphicsPerformanceTitle = Bevorzugte Grafikleistung
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" einstellen?
GraphicsPerformanceTitle = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" einstellen?
ActionCenter = Um die Funktion "{0}" nutzen zu können, müssen Sie das Action Center aktivieren.
WindowsScriptHost = Der Zugriff auf Windows Script Host wurde für diesem Computer deaktiviert. Um die Funktion "{0}" nutzen zu können, müssen Sie den Windows Script Host aktivieren.
ScheduledTaskPresented = Die Funktion "{0}" wurde bereits als "{1}" angelegt.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = The "{0}" shortcut is being pinned t
UninstallUWPForAll = For all users
UWPAppsTitle = UWP Apps
HEVCDownloading = Downloading HEVC Video Extensions from Device Manufacturer...
GraphicsPerformanceTitle = Graphics performance preference
GraphicsPerformanceRequest = Would you like to set the graphics performance setting of an app of your choice to "High performance"?
GraphicsPerformanceTitle = Would you like to set the graphics performance setting of an app of your choice to "High performance"?
ActionCenter = In order to use "{0}" function you have to enable Action Center.
WindowsScriptHost = Windows Script Host access is disabled on this machine. In order to use "{0}" function you have to enable Windows Script Host.
ScheduledTaskPresented = The "{0}" function was already created as "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = El acceso directo "{0}" está siendo
UninstallUWPForAll = Para todos los usuarios
UWPAppsTitle = Aplicaciones UWP
HEVCDownloading = Descargando HEVC Vídeo Extensiones del Fabricante del dispositivo...
GraphicsPerformanceTitle = Preferencia de rendimiento gráfico
GraphicsPerformanceRequest = ¿Le gustaría establecer la configuración de rendimiento gráfico de una aplicación de su elección a "alto rendimiento"?
GraphicsPerformanceTitle = ¿Le gustaría establecer la configuración de rendimiento gráfico de una aplicación de su elección a "alto rendimiento"?
ActionCenter = Um die Funktion "{0}" nutzen zu können, müssen Sie das Action Center aktivieren.
WindowsScriptHost = Acceso a Windows Script Host deshabilitado en este equipo. Um die Funktion "{0}" nutzen zu können, müssen Sie den Windows Script Host aktivieren.
ScheduledTaskPresented = La función "{0}" ya fue creada como "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = Le raccourci "{0}" est épinglé sur
UninstallUWPForAll = Pour tous les utilisateurs
UWPAppsTitle = Applications UWP
HEVCDownloading = Téléchargement de Extensions vidéo HEVC du fabricant de l'appareil...
GraphicsPerformanceTitle = Préférence de performances graphiques
GraphicsPerformanceRequest = Souhaitez-vous définir le paramètre de performances graphiques d'une application de votre choix sur "Haute performance"?
GraphicsPerformanceTitle = Souhaitez-vous définir le paramètre de performances graphiques d'une application de votre choix sur "Haute performance"?
ActionCenter = Pour utiliser la fonction "{0}", vous devez activer le Centre d'action.
WindowsScriptHost = L'accès à Windows Script Host est désactivé sur cette machine. Pour utiliser la fonction "{0}", vous devez activer Windows Script Host.
ScheduledTaskPresented = La fonction "{0}" a déjà été créée en tant que "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = A gyorsindító ikon "{0}" Startmen
UninstallUWPForAll = Az összes felhasználó számára
UWPAppsTitle = UWP Alkalmazások
HEVCDownloading = A HEVC Videobővítmények letöltése a gyártói oldalról...
GraphicsPerformanceTitle = Grafikus teljesítmény tulajdonság
GraphicsPerformanceRequest = Szeretné megváltoztatni a grafikus teljesítmény beállítást az ön által kiválasztott alkalmazásban "Nagy teljesítményre"?
GraphicsPerformanceTitle = Szeretné megváltoztatni a grafikus teljesítmény beállítást az ön által kiválasztott alkalmazásban "Nagy teljesítményre"?
ActionCenter = Az "{0}" funkció használatához engedélyeznie kell az Action Center funkciót.
WindowsScriptHost = A Windows Script Host ezen a gépen nem érhető el. Az "{0}" funkció használatához engedélyeznie kell a Windows Script Host.
ScheduledTaskPresented = A "{0}" funkciót már létrehoztuk "{1}" néven.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = Il collegamento "{0}" è stato blocc
UninstallUWPForAll = Per tutti gli utenti
UWPAppsTitle = UWP Apps
HEVCDownloading = Download del codec video HEVC Video estenxion dal produttore...
GraphicsPerformanceTitle = Preferenza per le prestazioni grafiche
GraphicsPerformanceRequest = Volete impostare l'impostazione delle prestazioni grafiche di un app di vostra scelta a "Prestazioni elevate"?
GraphicsPerformanceTitle = Volete impostare l'impostazione delle prestazioni grafiche di un app di vostra scelta a "Prestazioni elevate"?
ActionCenter = Per utilizzare la funzione "{0}" è necessario attivare il Centro operativo.
WindowsScriptHost = Accesso a Windows Script Host disabilitato sul computer in uso. Per utilizzare la funzione "{0}" è necessario abilitare Windows Script Host.
ScheduledTaskPresented = La funzione "{0}" è già stata creata come "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = Skrót "{0}" jest przypinany do Star
UninstallUWPForAll = Dla wszystkich użytkowników
UWPAppsTitle = Aplikacje UWP
HEVCDownloading = Pobieranie rozszerzeń wideo HEVC od producenta urządzenia...
GraphicsPerformanceTitle = Preferencje dotyczące wydajności grafiki
GraphicsPerformanceRequest = Czy chcesz ustawić wydajność grafiki wybranej aplikacji na "Wysoka wydajność"?
GraphicsPerformanceTitle = Czy chcesz ustawić wydajność grafiki wybranej aplikacji na "Wysoka wydajność"?
ActionCenter = Aby korzystać z funkcji "{0}" należy włączyć Action Center.
WindowsScriptHost = Dostęp do Hosta skryptów systemu Windows jest wyłączony na tym komputerze. Aby korzystać z funkcji "{0}" należy włączyć Windows Script Host.
ScheduledTaskPresented = Funkcja "{0}" została już utworzona jako "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = O atalho "{0}" está sendo fixado no
UninstallUWPForAll = Para todos os usuários...
UWPAppsTitle = Apps UWP
HEVCDownloading = Baixando HEVC Vídeo Extensões de Dispositivo Fabricante...
GraphicsPerformanceTitle = Preferência de desempenho gráfico
GraphicsPerformanceRequest = Gostaria de definir a configuração de performance gráfica de um app de sua escolha para "alta performance"?
GraphicsPerformanceTitle = Gostaria de definir a configuração de performance gráfica de um app de sua escolha para "alta performance"?
ActionCenter = Para utilizar a função {0}", tem de activar o Centro de Acção.
WindowsScriptHost = O acesso ao Windows Script Host está desactivado neste computador. Para usar a função "{0}", é necessário ativar o Windows Script Host.
ScheduledTaskPresented = A função "{0}" já foi criada como "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = Ярлык "{0}" закрепляе
UninstallUWPForAll = Для всех пользователей
UWPAppsTitle = UWP-приложения
HEVCDownloading = Скачивается расширение "Расширения для видео HEVC от производителя устройства"...
GraphicsPerformanceTitle = Настройка производительности графики
GraphicsPerformanceRequest = Установить для любого приложения по вашему выбору настройки производительности графики на "Высокая производительность"?
GraphicsPerformanceTitle = Установить для любого приложения по вашему выбору настройки производительности графики на "Высокая производительность"?
ActionCenter = Чтобы использовать функцию "{0}" вам необходимо включить центр уведомлений.
WindowsScriptHost = На данном компьютере отключен доступ к серверу сценариев Windows. Чтобы использовать функцию "{0}", вам необходимо включить сервер сценариев Windows.
ScheduledTaskPresented = Функция "{0}" уже была создана от имени "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = "{0}" kısayolu Başlangıç sekmesi
UninstallUWPForAll = Bütün kullanıcılar için
UWPAppsTitle = UWP Uygulamaları
HEVCDownloading = "Cihaz Üreticisinden HEVC Video Uzantıları" İndiriliyor...
GraphicsPerformanceTitle = Grafik performans tercihi
GraphicsPerformanceRequest = Seçtiğiniz bir uygulamanın grafik performansı ayarını "Yüksek performans" olarak belirlemek ister misiniz?
GraphicsPerformanceTitle = Seçtiğiniz bir uygulamanın grafik performansı ayarını "Yüksek performans" olarak belirlemek ister misiniz?
ActionCenter = "{0}" işlevini kullanmak için Eylem Merkezi'ni etkinleştirmeniz gerekir.
WindowsScriptHost = Windows Kod Merkezi erişimi bu makineden devre dışı. "{0}" işlevini kullanmak için Windows Kod Merkezi'u etkinleştirmeniz gerekir.
ScheduledTaskPresented = "{0}" işlevi zaten "{1}" olarak oluşturulmuştu.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = Ярлик "{0}" закріплює
UninstallUWPForAll = Для всіх користувачів
UWPAppsTitle = UWP-додатки
HEVCDownloading = Завантажується розширення "Розширення для відео HEVC від виробника пристрою"...
GraphicsPerformanceTitle = Налаштування продуктивності графіки
GraphicsPerformanceRequest = Встановити для будь-якої програми за вашим вибором налаштування продуктивності графіки на "Висока продуктивність"?
GraphicsPerformanceTitle = Встановити для будь-якої програми за вашим вибором налаштування продуктивності графіки на "Висока продуктивність"?
ActionCenter = Щоб використовувати функцію "{0}" вам необхідно увімкнути центр сповіщень.
WindowsScriptHost = На цьому комп'ютері вимкнено доступ до сервера сценаріїв Windows. Щоб використовувати функцію "{0}", вам необхідно увімкнути сервер сценаріїв Windows.
ScheduledTaskPresented = Функцію "{0}" уже було створено від імені "{1}".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ ShortcutPinning = "{0}"快捷方式将被固定到开
UninstallUWPForAll = 对于所有用户
UWPAppsTitle = UWP应用
HEVCDownloading = 下载"HEVC Video Extensions from Device Manufacturer".....
GraphicsPerformanceTitle = 图形性能偏好
GraphicsPerformanceRequest = 是否将所选应用程序的图形性能设置设为"高性能"?
GraphicsPerformanceTitle = 是否将所选应用程序的图形性能设置设为"高性能"?
ActionCenter = 为了使用"{0}"功能,你必须启用行动中心。
WindowsScriptHost = 没有在该机执行 Windows 脚本宿主的权限。请与系统管理员联系。 为了使用"{0}"功能,你必须启用Windows脚本主机。
ScheduledTaskPresented = "{0}"函数已经被创建为"{1}"。
Expand Down
Loading

0 comments on commit 2ec0a13

Please sign in to comment.