From 86f87633ec55c927ed113048efff0aa22b79945f Mon Sep 17 00:00:00 2001
From: Taiizor <41683699+Taiizor@users.noreply.github.com>
Date: Mon, 16 Oct 2023 19:52:37 +0300
Subject: [PATCH] Preparing Help Dialog
---
src/Library/Sucrose.Memory/Readonly.cs | 6 ++++
.../ViewModels/Windows/MainWindowViewModel.cs | 2 +-
.../Views/Controls/OtherHelp.xaml | 17 +++++-----
.../Views/Controls/OtherHelp.xaml.cs | 31 ++++++++++++++++---
.../Sucrose.Commandog/Helper/Arguments.cs | 9 ++++++
.../Enum/CommandsType.cs | 3 ++
.../Locales/Locale.xaml | 12 +++----
.../OtherHelp/Portal.OtherHelp.DE.xaml | 19 ++++++++++--
.../OtherHelp/Portal.OtherHelp.EN.xaml | 19 ++++++++++--
.../OtherHelp/Portal.OtherHelp.ES.xaml | 19 ++++++++++--
.../OtherHelp/Portal.OtherHelp.FR.xaml | 19 ++++++++++--
.../OtherHelp/Portal.OtherHelp.PL.xaml | 19 ++++++++++--
.../OtherHelp/Portal.OtherHelp.TR.xaml | 15 +++++++++
13 files changed, 161 insertions(+), 29 deletions(-)
diff --git a/src/Library/Sucrose.Memory/Readonly.cs b/src/Library/Sucrose.Memory/Readonly.cs
index 754512b42..39f9fcdc4 100644
--- a/src/Library/Sucrose.Memory/Readonly.cs
+++ b/src/Library/Sucrose.Memory/Readonly.cs
@@ -112,14 +112,20 @@ public static class Readonly
public static readonly string KeyYouTube = $"https://www.youtube.com/watch?v=kRyML8axJxA";
+ public static readonly string OfficialWebsite = $"https://github.com/{Owner}/{Repository}";
+
public static readonly string BackgroundogMutex = "{Sucrose-Wallpaper-Engine-Backgroundog}";
public static readonly string WikiWebsite = $"https://github.com/{Owner}/{Repository}/wiki";
public static readonly string StoreWebsite = $"https://github.com/{Owner}/{StoreRepository}";
+ public static readonly string RepositoryWebsite = $"https://github.com/{Owner}/{Repository}";
+
public static readonly string DesktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
+ public static readonly string DiscussionsWebsite = $"https://github.com/{Owner}/{Repository}/discussions";
+
public static readonly string ReportWebsite = $"https://github.com/{Owner}/{Repository}/issues/new/choose";
public static readonly string DownloadWebsite = $"https://github.com/{Owner}/{Repository}/releases/latest";
diff --git a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs
index 5e08196ed..e7b7c7735 100644
--- a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs
+++ b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs
@@ -15,8 +15,8 @@
using SPEIL = Sucrose.Portal.Extension.ImageLoader;
using SPMI = Sucrose.Portal.Manage.Internal;
using SPMM = Sucrose.Portal.Manage.Manager;
-using SPVCOH = Sucrose.Portal.Views.Controls.OtherHelp;
using SPVCDP = Sucrose.Portal.Views.Controls.DisplayPreferences;
+using SPVCOH = Sucrose.Portal.Views.Controls.OtherHelp;
using SSCHA = Sucrose.Shared.Core.Helper.Architecture;
using SSCHF = Sucrose.Shared.Core.Helper.Framework;
using SSCHM = Sucrose.Shared.Core.Helper.Memory;
diff --git a/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml b/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml
index 03fea7091..074371028 100644
--- a/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml
+++ b/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml
@@ -9,6 +9,7 @@
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
CloseButtonText="{DynamicResource Portal.OtherHelp.Close}"
Title="{DynamicResource Portal.OtherHelp.Title}"
+ Loaded="ContentDialog_Loaded"
DialogMaxWidth="750"
mc:Ignorable="d">
@@ -16,8 +17,8 @@
-
-
+
+
-
+
-
+
-
+
-
+
(Values[0]), SCHP.ArgumentValue(Values[1]));
break;
+ case SSDECT.Official:
+ SSSHP.Run(SCHP.ArgumentValue(Values[0]));
+ break;
case SSDECT.Scheduler:
switch (SCHP.ArgumentValue(Values[0]))
{
@@ -146,6 +149,12 @@ public static async Task Parse(string[] Arguments)
SSSHP.Run(SCHP.ArgumentValue(Values[0]));
}
break;
+ case SSDECT.Repository:
+ SSSHP.Run(SCHP.ArgumentValue(Values[0]));
+ break;
+ case SSDECT.Discussions:
+ SSSHP.Run(SCHP.ArgumentValue(Values[0]));
+ break;
case SSDECT.Backgroundog:
SSSHP.Run(SCHP.ArgumentValue(Values[0]), string.Empty);
break;
diff --git a/src/Shared/Sucrose.Shared.Dependency/Enum/CommandsType.cs b/src/Shared/Sucrose.Shared.Dependency/Enum/CommandsType.cs
index e0561a6f0..db5f5f4d7 100644
--- a/src/Shared/Sucrose.Shared.Dependency/Enum/CommandsType.cs
+++ b/src/Shared/Sucrose.Shared.Dependency/Enum/CommandsType.cs
@@ -18,8 +18,11 @@ internal enum CommandsType
Startup,
StartupM,
StartupP,
+ Official,
Scheduler,
Interface,
+ Repository,
+ Discussions,
Backgroundog
}
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Locale.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Locale.xaml
index b84747234..29f2afc3f 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Locale.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Locale.xaml
@@ -3,11 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
- Deutsch (v0.3)
- English (v0.5)
- Español (v0.3)
- Français (v0.3)
+ Deutsch (v0.4)
+ English (v0.6)
+ Español (v0.4)
+ Français (v0.4)
日本語 (v0.0)
- Polski (v0.3)
- Türkçe (v0.6)
+ Polski (v0.4)
+ Türkçe (v0.7)
\ No newline at end of file
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.DE.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.DE.xaml
index 984b61abf..10c1e7ad0 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.DE.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.DE.xaml
@@ -3,6 +3,21 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
- Yardım
- Kapat
+ Hilfe
+ Schließen
+
+ Webseite
+ Offizielle Sucrose Wallpaper Engine Webseite
+
+ Dokumentation
+ Offizielle Sucrose Wallpaper Engine Dokumentationsseite
+
+ Quellcode
+ Offizielle Sucrose Wallpaper Engine Quellcode-Seite
+
+ Diskussionen
+ Offizielle Sucrose Wallpaper Engine Diskussionen-Seite
+
+ Fehler Melden
+ Offizielle Sucrose Wallpaper Engine Fehlermeldungsseite
\ No newline at end of file
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.EN.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.EN.xaml
index 984b61abf..c496f16bd 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.EN.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.EN.xaml
@@ -3,6 +3,21 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
- Yardım
- Kapat
+ Help
+ Close
+
+ Web Page
+ Official Sucrose Wallpaper Engine web page
+
+ Documentation
+ Official Sucrose Wallpaper Engine documentation page
+
+ Source Code
+ Official Sucrose Wallpaper Engine source code page
+
+ Discussions
+ Official Sucrose Wallpaper Engine discussions page
+
+ Report Issue
+ Official Sucrose Wallpaper Engine issue reporting page
\ No newline at end of file
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.ES.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.ES.xaml
index 984b61abf..1289b1c5f 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.ES.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.ES.xaml
@@ -3,6 +3,21 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
- Yardım
- Kapat
+ Ayuda
+ Cerrar
+
+ Página Web
+ Página web oficial de Sucrose Wallpaper Engine
+
+ Documentación
+ Página de documentación oficial de Sucrose Wallpaper Engine
+
+ Código Fuente
+ Página de código fuente oficial de Sucrose Wallpaper Engine
+
+ Discusiones
+ Página de discusiones oficial de Sucrose Wallpaper Engine
+
+ Informar Problema
+ Página de informe de problemas oficial de Sucrose Wallpaper Engine
\ No newline at end of file
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.FR.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.FR.xaml
index 984b61abf..0e9424c7e 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.FR.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.FR.xaml
@@ -3,6 +3,21 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
- Yardım
- Kapat
+ Aide
+ Fermer
+
+ Page Web
+ Page web officielle de Sucrose Wallpaper Engine
+
+ Documentation
+ Page de documentation officielle de Sucrose Wallpaper Engine
+
+ Code Source
+ Page de code source officielle de Sucrose Wallpaper Engine
+
+ Discussions
+ Page de discussions officielle de Sucrose Wallpaper Engine
+
+ Signaler un Problème
+ Page de signalement de problèmes officielle de Sucrose Wallpaper Engine
\ No newline at end of file
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.PL.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.PL.xaml
index 984b61abf..8b843c878 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.PL.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.PL.xaml
@@ -3,6 +3,21 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
- Yardım
- Kapat
+ Pomoc
+ Zamknij
+
+ Strona Internetowa
+ Oficjalna strona internetowa Sucrose Wallpaper Engine
+
+ Dokumentacja
+ Oficjalna strona dokumentacji Sucrose Wallpaper Engine
+
+ Kod Źródłowy
+ Oficjalna strona kodu źródłowego Sucrose Wallpaper Engine
+
+ Dyskusje
+ Oficjalna strona dyskusji Sucrose Wallpaper Engine
+
+ Zgłoś Problem
+ Oficjalna strona zgłaszania problemów Sucrose Wallpaper Engine
\ No newline at end of file
diff --git a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.TR.xaml b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.TR.xaml
index 984b61abf..fe5be0f32 100644
--- a/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.TR.xaml
+++ b/src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.TR.xaml
@@ -5,4 +5,19 @@
>
Yardım
Kapat
+
+ İnternet Sayfası
+ Sucrose Wallpaper Engine resmi internet sayfası
+
+ Dokümantasyon
+ Sucrose Wallpaper Engine resmi dökümantasyon sayfası
+
+ Kaynak Kodu
+ Sucrose Wallpaper Engine resmi kaynak kodu sayfası
+
+ Tartışmalar
+ Sucrose Wallpaper Engine resmi tartışmalar sayfası
+
+ Hata Bildir
+ Sucrose Wallpaper Engine resmi hata bildirme sayfası
\ No newline at end of file