Skip to content

Commit

Permalink
added translation for Poster icon overlay,
Browse files Browse the repository at this point in the history
IconOverlay changes for new mockups
  • Loading branch information
DineshSolanki committed Aug 9, 2021
1 parent 529fd4a commit de0b0ba
Show file tree
Hide file tree
Showing 20 changed files with 52 additions and 17 deletions.
8 changes: 4 additions & 4 deletions FoliCon/FoliCon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dineshsolanki.github.io/folicon/</Description>
<None Remove="Resources\folicon Icon.png" />
<None Remove="Resources\LoadingPosterImage.png" />
<None Remove="Resources\mockup cover cropped.png" />
<None Remove="Resources\Mockup faelessoal base.png" />
<None Remove="Resources\mockup faelessoal front.png" />
<None Remove="Resources\Mockup faelpessoal base.png" />
<None Remove="Resources\mockup faelpessoal front.png" />
<None Remove="Resources\mockup liaher base.png" />
<None Remove="Resources\mockup2base.png" />
<None Remove="Resources\No-WiFi.png" />
Expand Down Expand Up @@ -54,8 +54,8 @@ dineshsolanki.github.io/folicon/</Description>
<Resource Include="Resources\folicon Icon.png" />
<Resource Include="Resources\LoadingPosterImage.png" />
<Resource Include="Resources\mockup cover cropped.png" />
<Resource Include="Resources\Mockup faelessoal base.png" />
<Resource Include="Resources\mockup faelessoal front.png" />
<Resource Include="Resources\Mockup faelpessoal base.png" />
<Resource Include="Resources\mockup faelpessoal front.png" />
<Resource Include="Resources\mockup liaher base.png" />
<Resource Include="Resources\mockup2base.png" />
<Resource Include="Resources\No-WiFi.png" />
Expand Down
2 changes: 2 additions & 0 deletions FoliCon/Models/GlobalVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ internal static class GlobalVariables
{
"Legacy" => IconOverlay.Legacy,
"Alternate" => IconOverlay.Alternate,
"Liaher" => IconOverlay.Liaher,
"Faelpessoal" => IconOverlay.Faelpessoal,
_ => IconOverlay.Alternate
};

Expand Down
4 changes: 3 additions & 1 deletion FoliCon/Models/IconOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
public enum IconOverlay
{
Legacy,
Alternate
Alternate,
Liaher,
Faelpessoal
}
}
3 changes: 3 additions & 0 deletions FoliCon/Modules/LangProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ private void UpdateLangs()
OnPropertyChanged(nameof(DeleteMediaInfoTooltip));
OnPropertyChanged(nameof(DeleteMediaInfoConfirmation));
OnPropertyChanged(nameof(ConfirmMediaInfoDeletion));
OnPropertyChanged(nameof(PosterIconOverlay));
}

public string About => Lang.About;
Expand Down Expand Up @@ -419,6 +420,7 @@ private void UpdateLangs()
public string DeleteMediaInfoConfirmation => Lang.DeleteMediaInfoConfirmation;
public string DeleteMediaInfoTooltip => Lang.DeleteMediaInfoTooltip;
public string DeleteMediaInfo => Lang.DeleteMediaInfo;
public string PosterIconOverlay => Lang.PosterIconOverlay;


public event PropertyChangedEventHandler PropertyChanged;
Expand Down Expand Up @@ -682,5 +684,6 @@ public class LangKeys
public static string DeleteMediaInfoConfirmation = nameof(DeleteMediaInfoConfirmation);
public static string DeleteMediaInfoTooltip = nameof(DeleteMediaInfoTooltip);
public static string DeleteMediaInfo = nameof(DeleteMediaInfo);
public static string PosterIconOverlay = nameof(PosterIconOverlay);
}
}
9 changes: 9 additions & 0 deletions FoliCon/Properties/Langs/Lang.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions FoliCon/Properties/Langs/Lang.ar.resx
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,7 @@
<value>سيؤدي هذا إلى حذف ملفات معلومات الوسائط التي يستخدمها فوليكون لتخزين معرف الوسائط بعد تحديد العنوان لأول مرة.
يساعد هذا فوليكون في التعرف على الوسائط دون الحاجة إلى الاختيار من بين العناوين الغامضة.</value>
</data>
<data name="PosterIconOverlay" xml:space="preserve">
<value>تراكب أيقونة الملصق</value>
</data>
</root>
3 changes: 3 additions & 0 deletions FoliCon/Properties/Langs/Lang.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,7 @@ y puede buscar "Juegos, películas y programas" y casi cualquier ícono de carpe
<value>Esto eliminará los archivos de información de medios utilizados por folicon para almacenar la identificación de medios después de seleccionar un título por primera vez.
Esto ayuda a folicon a identificar los medios sin tener que elegir entre títulos ambiguos.</value>
</data>
<data name="PosterIconOverlay" xml:space="preserve">
<value>Superposición de icono de póster</value>
</data>
</root>
3 changes: 3 additions & 0 deletions FoliCon/Properties/Langs/Lang.hi.resx
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,7 @@
<data name="ExceptionOccurred" xml:space="preserve">
<value>त्रुटी</value>
</data>
<data name="PosterIconOverlay" xml:space="preserve">
<value>पोस्टर आइकन ओवरले</value>
</data>
</root>
3 changes: 3 additions & 0 deletions FoliCon/Properties/Langs/Lang.resx
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ Try Searching with Other Title
<data name="Poster" xml:space="preserve">
<value>Poster</value>
</data>
<data name="PosterIconOverlay" xml:space="preserve">
<value>Poster Icon Overlay</value>
</data>
<data name="PosterOverlayTooltip" xml:space="preserve">
<value>Controls whether to use poster Overlay or Plain Posters.</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions FoliCon/Properties/Langs/Lang.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,7 @@
<value>Это приведет к удалению файлов информации о мультимедиа, используемых folicon для хранения идентификатора мультимедиа после выбора заголовка в первый раз.
Это помогает фоликону идентифицировать носители без необходимости выбирать из двусмысленных названий.</value>
</data>
<data name="PosterIconOverlay" xml:space="preserve">
<value>Наложение значка плаката</value>
</data>
</root>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="FoliCon.Views.PosterIconFaelessoal"
<UserControl x:Class="FoliCon.Views.PosterIconFaelpessoal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
Expand All @@ -10,15 +10,15 @@
d:DataContext="{d:DesignInstance Type=model:PosterIcon, IsDesignTimeCreatable=True}">
<!--DataContext="{DynamicResource PosterIcon}">-->
<Grid Margin="0,0,0,-11">
<Image Source="/Resources/Mockup faelessoal base.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="-8,0,0,10" Visibility="{Binding MockupVisibility}" />
<Image Source="/Resources/Mockup faelpessoal base.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="-8,0,0,10" Visibility="{Binding MockupVisibility}" />
<Border CornerRadius="7,7,7,7" Grid.Row="0" Margin="27,4,54,27">
<Border.Background>
<ImageBrush Stretch="Fill" ImageSource="{Binding FolderJpg}" />
</Border.Background>
</Border>

<!--<Image Stretch="Fill" Source="{Binding FolderJpg}" RenderOptions.BitmapScalingMode="HighQuality" Grid.Row="0" Margin="34,10,42,21" />-->
<Image Source="/Resources/mockup faelessoal front.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="0,-4,8,9" Visibility="{Binding MockupVisibility}"/>
<Image Source="/Resources/mockup faelpessoal front.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="0,-4,8,9" Visibility="{Binding MockupVisibility}"/>
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="FoliCon.Views.PosterIconFaelessoalHorizontal"
<UserControl x:Class="FoliCon.Views.PosterIconFaelpessoalHorizontal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
Expand All @@ -10,26 +10,26 @@
d:DataContext="{d:DesignInstance Type=model:PosterIcon, IsDesignTimeCreatable=True}">
<!--DataContext="{DynamicResource PosterIcon}">-->
<Grid Margin="0,0,0,-11">
<Image Source="/Resources/mockup Faelessoal base horizontal.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="-8,0,0,10" Visibility="{Binding MockupVisibility}" />
<Image Source="/Resources/mockup faelpessoal base horizontal.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="-8,0,0,10" Visibility="{Binding MockupVisibility}" />
<Border CornerRadius="7,7,7,7" Grid.Row="0" Margin="1,65,9,29">
<Border.Background>
<ImageBrush Stretch="Fill" ImageSource="{Binding FolderJpg}" />
</Border.Background>
</Border>

<!--<Image Stretch="Fill" Source="{Binding FolderJpg}" RenderOptions.BitmapScalingMode="HighQuality" Grid.Row="0" Margin="34,10,42,21" />-->
<Image Source="/Resources/mockup Faelessoal front horizontal.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="0,-4,8,9" Visibility="{Binding MockupVisibility}"/>
<Image Source="/Resources/mockup faelpessoal front horizontal.png" RenderOptions.BitmapScalingMode="HighQuality" Margin="0,-4,8,9" Visibility="{Binding MockupVisibility}"/>
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="100" />
<RowDefinition Height="100" />
</Grid.RowDefinitions>
<Image x:Name="Shield" Source="../Resources/shield.png" RenderOptions.BitmapScalingMode="HighQuality"
Margin="160,97,6,5" Panel.ZIndex="2" Visibility="{Binding RatingVisibility}" Grid.Row="1" Grid.RowSpan="2" />
<TextBlock x:Name="Ratingtext" Text="{Binding Rating}" HorizontalAlignment="Center"
VerticalAlignment="Center" FontFamily="Castellar" FontStyle="Italic"
Visibility="{Binding RatingVisibility}" FontSize="25" Margin="189,30,21,24" Panel.ZIndex="3"
Margin="183,97,-17,5" Panel.ZIndex="2" Visibility="{Binding RatingVisibility}" Grid.Row="1" Grid.RowSpan="2" />
<TextBlock x:Name="Ratingtext" Text="{Binding Rating}" HorizontalAlignment="Left"
VerticalAlignment="Top" FontFamily="Castellar" FontStyle="Italic"
Visibility="{Binding RatingVisibility}" FontSize="25" Margin="209,30,0,0" Panel.ZIndex="3"
Grid.Row="2" Width="55" Height="46" />
</Grid>
</Grid>
Expand Down
4 changes: 3 additions & 1 deletion FoliCon/Views/posterIconConfig.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
xmlns:modules="clr-namespace:FoliCon.ViewModels"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:foliCon="clr-namespace:FoliCon"
xmlns:langExtension="clr-namespace:FoliCon.Modules.LangExtension"
xmlns:langs="clr-namespace:FoliCon.Properties.Langs"
mc:Ignorable="d"
prism:ViewModelLocator.AutoWireViewModel="True"
d:DataContext="{d:DesignInstance modules:PosterIconConfigViewModel }">
Expand All @@ -24,7 +26,7 @@
<Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterOwner" />
</Style>
</prism:Dialog.WindowStyle>
<GroupBox hc:TitleElement.TitlePlacement="Top" Header="Poster Icon Overlay"
<GroupBox hc:TitleElement.TitlePlacement="Top" Header="{langExtension:Lang Key={x:Static langs:LangKeys.PosterIconOverlay}}"
Style="{StaticResource GroupBoxTab}" FontSize="22" FontFamily="Cambria"
hc:TitleElement.Background="CornflowerBlue" Foreground="Black" BorderThickness="0"
Background="CornflowerBlue" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
Expand Down
4 changes: 3 additions & 1 deletion Folicon.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=langs/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=faelpessoal/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=langs/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Liaher/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

0 comments on commit de0b0ba

Please sign in to comment.