Skip to content

Commit

Permalink
Preparing Theme Create Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Oct 22, 2023
1 parent d6da1f7 commit cfb74b0
Show file tree
Hide file tree
Showing 8 changed files with 211 additions and 22 deletions.
12 changes: 6 additions & 6 deletions src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
HorizontalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<vcontrols:ExpanderCard x:Name="GifExpander" TitleText="Gif Tema" DescriptionText="Gif türündeki kendi temanızı oluşturun." LeftIconSymbol="Gif24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard x:Name="GifExpander" LeftIconSymbol="Gif24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard.HeaderFrame>
<ui:SymbolIcon
Width="32"
Expand All @@ -57,7 +57,7 @@
HorizontalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<vcontrols:ExpanderCard x:Name="UrlExpander" TitleText="Url Tema" DescriptionText="Url türündeki kendi temanızı oluşturun." LeftIconSymbol="SlideLink24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard x:Name="UrlExpander" LeftIconSymbol="SlideLink24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard.HeaderFrame>
<ui:SymbolIcon
Width="32"
Expand All @@ -79,7 +79,7 @@
HorizontalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<vcontrols:ExpanderCard x:Name="WebExpander" TitleText="Web Tema" DescriptionText="Web türündeki kendi temanızı oluşturun." LeftIconSymbol="GlobeDesktop24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard x:Name="WebExpander" LeftIconSymbol="GlobeDesktop24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard.HeaderFrame>
<ui:SymbolIcon
Width="32"
Expand All @@ -101,7 +101,7 @@
HorizontalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<vcontrols:ExpanderCard x:Name="VideoExpander" TitleText="Video Tema" DescriptionText="Video türündeki kendi temanızı oluşturun." LeftIconSymbol="VideoClip24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard x:Name="VideoExpander" LeftIconSymbol="VideoClip24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard.HeaderFrame>
<ui:SymbolIcon
Width="32"
Expand All @@ -123,7 +123,7 @@
HorizontalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<vcontrols:ExpanderCard x:Name="YouTubeExpander" TitleText="YouTube Tema" DescriptionText="YouTube türündeki kendi temanızı oluşturun." LeftIconSymbol="VideoRecording20" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard x:Name="YouTubeExpander" LeftIconSymbol="VideoRecording20" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard.HeaderFrame>
<ui:SymbolIcon
Width="32"
Expand All @@ -145,7 +145,7 @@
Click="ApplicationCreate_Click"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch">
<vcontrols:ExpanderCard x:Name="ApplicationExpander" TitleText="Application Tema" DescriptionText="Application türündeki kendi temanızı oluşturun." LeftIconSymbol="AppGeneric24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard x:Name="ApplicationExpander" LeftIconSymbol="AppGeneric24" IsEnabled="False" Expandable="False">
<vcontrols:ExpanderCard.HeaderFrame>
<ui:SymbolIcon
Width="32"
Expand Down
18 changes: 17 additions & 1 deletion src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,23 @@ private void YouTubeCreate_Click(object sender, RoutedEventArgs e)

private void ContentDialog_Loaded(object sender, RoutedEventArgs e)
{
//
GifExpander.TitleText = SSRER.GetValue("Portal", "ThemeCreate", "Gif");
GifExpander.DescriptionText = SSRER.GetValue("Portal", "ThemeCreate", "Gif", "Description");

UrlExpander.TitleText = SSRER.GetValue("Portal", "ThemeCreate", "Url");
UrlExpander.DescriptionText = SSRER.GetValue("Portal", "ThemeCreate", "Url", "Description");

WebExpander.TitleText = SSRER.GetValue("Portal", "ThemeCreate", "Web");
WebExpander.DescriptionText = SSRER.GetValue("Portal", "ThemeCreate", "Web", "Description");

VideoExpander.TitleText = SSRER.GetValue("Portal", "ThemeCreate", "Video");
VideoExpander.DescriptionText = SSRER.GetValue("Portal", "ThemeCreate", "Video", "Description");

YouTubeExpander.TitleText = SSRER.GetValue("Portal", "ThemeCreate", "YouTube");
YouTubeExpander.DescriptionText = SSRER.GetValue("Portal", "ThemeCreate", "YouTube", "Description");

ApplicationExpander.TitleText = SSRER.GetValue("Portal", "ThemeCreate", "Application");
ApplicationExpander.DescriptionText = SSRER.GetValue("Portal", "ThemeCreate", "Application", "Description");
}

private void ApplicationCreate_Click(object sender, RoutedEventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>
<system:String x:Key="Portal.ThemeCreate.Title">Thema Erstellen</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Erstellen</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Schließen</system:String>

<system:String x:Key="Portal.ThemeCreate.Gif">Gif-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.Gif.Description">Erstellen Sie Ihr eigenes Thema im Gif-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Url">Url-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.Url.Description">Erstellen Sie Ihr eigenes Thema im Url-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Web">Web-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.Web.Description">Erstellen Sie Ihr eigenes Thema im Web-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Video">Video-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.Video.Description">Erstellen Sie Ihr eigenes Thema im Video-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.YouTube">YouTube-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.YouTube.Description">Erstellen Sie Ihr eigenes Thema im YouTube-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Application">Application-Thema</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Erstellen Sie Ihr eigenes Thema im Application-Format.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Titel</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Beschreibung</system:String>
Expand All @@ -18,4 +36,17 @@
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Bitte geben Sie einen gültigen Autorennamen ein</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Bitte geben Sie eine gültige Kontaktadresse ein</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Bitte geben Sie gültige Anwendungsargumente ein</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Ein Cover-Bild auswählen</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Eine Vorschau-Datei auswählen</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Delete">Rückgängig</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Gif">Ziehen und Ablegen Sie Ihre Gif-Datei hier</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Title">Deckbild Auswählen</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Filter">Bilddateien (*.png;*.jpg;*.jpeg;*.tiff;*.webp)|*.png;*.jpg;*.jpeg;*.tiff;*.webp</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemePreview.Title">Vorschau-Datei Auswählen</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Filter">Gif-Dateien (*.gif)|*.gif</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>
<system:String x:Key="Portal.ThemeCreate.Title">Create Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Create</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Close</system:String>

<system:String x:Key="Portal.ThemeCreate.Gif">Gif Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Gif.Description">Create your own theme in Gif format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Url">Url Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Url.Description">Create your own theme in Url format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Web">Web Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Web.Description">Create your own theme in Web format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Video">Video Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Video.Description">Create your own theme in Video format.</system:String>

<system:String x:Key="Portal.ThemeCreate.YouTube">YouTube Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.YouTube.Description">Create your own theme in YouTube format.</system:String>

<system:String x:Key="Portal.ThemeCreate.Application">Application Theme</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Create your own theme in Application format.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Title</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Description</system:String>
Expand All @@ -18,4 +36,17 @@
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Please enter a valid author name</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Please enter a valid contact address</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Please enter valid application arguments</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Select a cover image</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Select a preview file</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Delete">Undo</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Gif">Drag and drop your gif file here</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Title">Select Cover Image</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Filter">Image Files (*.png;*.jpg;*.jpeg;*.tiff;*.webp)|*.png;*.jpg;*.jpeg;*.tiff;*.webp</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemePreview.Title">Select Preview File</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Filter">Gif Files (*.gif)|*.gif</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>
<system:String x:Key="Portal.ThemeCreate.Title">Crear Tema</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Crear</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Cerrar</system:String>

<system:String x:Key="Portal.ThemeCreate.Gif">Tema Gif</system:String>
<system:String x:Key="Portal.ThemeCreate.Gif.Description">Crea tu propio tema en formato Gif.</system:String>

<system:String x:Key="Portal.ThemeCreate.Url">Tema Url</system:String>
<system:String x:Key="Portal.ThemeCreate.Url.Description">Crea tu propio tema en formato Url.</system:String>

<system:String x:Key="Portal.ThemeCreate.Web">Tema Web</system:String>
<system:String x:Key="Portal.ThemeCreate.Web.Description">Crea tu propio tema en formato Web.</system:String>

<system:String x:Key="Portal.ThemeCreate.Video">Tema de Video</system:String>
<system:String x:Key="Portal.ThemeCreate.Video.Description">Crea tu propio tema en formato de Video.</system:String>

<system:String x:Key="Portal.ThemeCreate.YouTube">Tema de YouTube</system:String>
<system:String x:Key="Portal.ThemeCreate.YouTube.Description">Crea tu propio tema en formato de YouTube.</system:String>

<system:String x:Key="Portal.ThemeCreate.Application">Tema de Application</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Crea tu propio tema en formato de Application.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Título</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Descripción</system:String>
Expand All @@ -18,4 +36,17 @@
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Por favor, introduzca un nombre de autor válido</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Por favor, introduzca una dirección de contacto válida</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Por favor, introduzca argumentos de aplicación válidos</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Selecciona una imagen de portada</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Selecciona un archivo de vista previa</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Delete">Deshacer</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Gif">Arrastra y suelta tu archivo gif aquí</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Title">Selecciona Imagen de Portada</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Filter">Archivos de Imagen (*.png;*.jpg;*.jpeg;*.tiff;*.webp)|*.png;*.jpg;*.jpeg;*.tiff;*.webp</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemePreview.Title">Selecciona Archivo de Vista Previa</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Filter">Archivos Gif (*.gif)|*.gif</system:String>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String>
<system:String x:Key="Portal.ThemeCreate.Title">Créer un Thème</system:String>
<system:String x:Key="Portal.ThemeCreate.Create">Créer</system:String>
<system:String x:Key="Portal.ThemeCreate.Close">Fermer</system:String>

<system:String x:Key="Portal.ThemeCreate.Gif">Thème Gif</system:String>
<system:String x:Key="Portal.ThemeCreate.Gif.Description">Créez votre propre thème au format Gif.</system:String>

<system:String x:Key="Portal.ThemeCreate.Url">Thème Url</system:String>
<system:String x:Key="Portal.ThemeCreate.Url.Description">Créez votre propre thème au format Url.</system:String>

<system:String x:Key="Portal.ThemeCreate.Web">Thème Web</system:String>
<system:String x:Key="Portal.ThemeCreate.Web.Description">Créez votre propre thème au format Web.</system:String>

<system:String x:Key="Portal.ThemeCreate.Video">Thème Video</system:String>
<system:String x:Key="Portal.ThemeCreate.Video.Description">Créez votre propre thème au format Video.</system:String>

<system:String x:Key="Portal.ThemeCreate.YouTube">Thème YouTube</system:String>
<system:String x:Key="Portal.ThemeCreate.YouTube.Description">Créez votre propre thème au format YouTube.</system:String>

<system:String x:Key="Portal.ThemeCreate.Application">Thème Application</system:String>
<system:String x:Key="Portal.ThemeCreate.Application.Description">Créez votre propre thème au format Application.</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeTitle">Titre</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeDescription">Description</system:String>
Expand All @@ -18,4 +36,17 @@
<system:String x:Key="Portal.ThemeCreate.ThemeAuthor.Hint">Veuillez saisir un nom d'auteur valide</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeContact.Hint">Veuillez saisir une adresse de contact valide</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeArguments.Hint">Veuillez saisir des arguments d'application valides</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Hint">Sélectionner une image de couverture</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Hint">Sélectionner un fichier de prévisualisation</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Delete">Annuler</system:String>

<system:String x:Key="Portal.ThemeCreate.DragDrop.Gif">Glissez-déposez votre fichier gif ici</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Title">Sélectionner une Image de Couverture</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemeThumbnail.Filter">Fichiers Image (*.png;*.jpg;*.jpeg;*.tiff;*.webp)|*.png;*.jpg;*.jpeg;*.tiff;*.webp</system:String>

<system:String x:Key="Portal.ThemeCreate.ThemePreview.Title">Sélectionner un Fichier de Prévisualisation</system:String>
<system:String x:Key="Portal.ThemeCreate.ThemePreview.Filter">Fichiers Gif (*.gif)|*.gif</system:String>
</ResourceDictionary>
Loading

0 comments on commit cfb74b0

Please sign in to comment.