mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 19:02:19 -05:00
main window + queue management localization
This commit is contained in:
parent
786620e9cf
commit
fe8be16ed1
5 changed files with 80 additions and 7 deletions
|
@ -116,7 +116,7 @@
|
|||
</EventTrigger>
|
||||
</TextBlock.Triggers>-->
|
||||
</TextBlock>
|
||||
<TextBlock x:Name="SettingsTab" TextWrapping="NoWrap" Text="Settings" FontSize="16" VerticalAlignment="Center" Foreground="{StaticResource PrimaryTextColor}" DockPanel.Dock="Right" Margin="0,0,10,0" MouseDown="ImportTab_MouseDown" HorizontalAlignment="Right">
|
||||
<TextBlock x:Name="SettingsTab" TextWrapping="NoWrap" Text="{x:Static resx:Resources.MAINWINDOW_SETTINGS}" FontSize="16" VerticalAlignment="Center" Foreground="{StaticResource PrimaryTextColor}" DockPanel.Dock="Right" Margin="0,0,10,0" MouseDown="ImportTab_MouseDown" HorizontalAlignment="Right">
|
||||
</TextBlock>
|
||||
<!--<Path x:Name="VolumIcon" Data="{StaticResource VolumeIcon}" Stretch="Uniform" RenderTransformOrigin="1.1,0.633" Width="20" VerticalAlignment="Center" DockPanel.Dock="Left" HorizontalAlignment="Left" Fill="White"/>-->
|
||||
</DockPanel>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:resx = "clr-namespace:FRESHMusicPlayer_WPF_UI_Test.Properties"
|
||||
xmlns:local="clr-namespace:FRESHMusicPlayer_WPF_UI_Test.Pages"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="372" d:DesignWidth="235"
|
||||
|
@ -19,11 +20,11 @@
|
|||
<RowDefinition Height="Auto" MinHeight="29"/>
|
||||
</Grid.RowDefinitions>
|
||||
<ListBox x:Name="QueueList" ScrollViewer.HorizontalScrollBarVisibility="Disabled" HorizontalContentAlignment="Stretch" VirtualizingPanel.IsVirtualizing="True" Background="{StaticResource SecondaryColor}" Grid.Row="1" BorderBrush="{x:Null}" Grid.ColumnSpan="3"/>
|
||||
<TextBlock TextWrapping="Wrap" Text="Queue" Foreground="White" FontWeight="Bold" FontSize="18" Margin="5,5,2,14" Grid.ColumnSpan="3"/>
|
||||
<TextBlock x:Name="RemainingTimeLabel" Text="Remaining Time - 00:00:00" Foreground="{StaticResource PrimaryTextColor}" FontSize="12" Margin="5,29,5,0" Grid.ColumnSpan="3"/>
|
||||
<Button Content="Add Track" Margin="2,5,2,5" Grid.Row="2" FontSize="12" Height="19" Grid.Column="0" VerticalAlignment="Top" Click="AddTrackButton_Click"/>
|
||||
<Button Content="Add Playlist" Margin="2,5,2,5" Grid.Row="2" FontSize="12" Grid.Column="1" Height="19" VerticalAlignment="Top" Click="AddPlaylist_Click"/>
|
||||
<Button Content="Clear Queue" Margin="2,5,2,5" Foreground="#FFD5463F" Grid.Row="2" Height="19" Grid.Column="2" VerticalAlignment="Top" Click="ClearQueue_Click"/>
|
||||
<TextBlock TextWrapping="Wrap" Text="{x:Static resx:Resources.QUEUEMANAGEMENT_QUEUEHEADER}" Foreground="White" FontWeight="Bold" FontSize="18" Margin="5,5,2,14" Grid.ColumnSpan="3"/>
|
||||
<TextBlock x:Name="RemainingTimeLabel" Text="{x:Static resx:Resources.QUEUEMANAGEMENT_REMAININGTIME}" Foreground="{StaticResource PrimaryTextColor}" FontSize="12" Margin="5,29,5,0" Grid.ColumnSpan="3"/>
|
||||
<Button Content="{x:Static resx:Resources.QUEUEMANAGEMENT_ADDTRACK}" Margin="2,5,2,5" Grid.Row="2" FontSize="12" Height="19" Grid.Column="0" VerticalAlignment="Top" Click="AddTrackButton_Click"/>
|
||||
<Button Content="{x:Static resx:Resources.QUEUEMANAGEMENT_ADDPLAYLIST}" Margin="2,5,2,5" Grid.Row="2" FontSize="12" Grid.Column="1" Height="19" VerticalAlignment="Top" Click="AddPlaylist_Click"/>
|
||||
<Button Content="{x:Static resx:Resources.QUEUEMANAGEMENT_CLEARQUEUE}" Margin="2,5,2,5" Foreground="#FFD5463F" Grid.Row="2" Height="19" Grid.Column="2" VerticalAlignment="Top" Click="ClearQueue_Click"/>
|
||||
</Grid>
|
||||
|
||||
</Page>
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace FRESHMusicPlayer_WPF_UI_Test.Pages
|
|||
if (MainWindow.Player.QueuePosition < number) nextlength += track.Duration;
|
||||
number++;
|
||||
}
|
||||
RemainingTimeLabel.Text = $"Remaining Time - {new TimeSpan(0,0,0,nextlength):mm\\:ss}";
|
||||
RemainingTimeLabel.Text = Properties.Resources.QUEUEMANAGEMENT_REMAININGTIME + new TimeSpan(0,0,0,nextlength).ToString(@"hh\:mm\:ss");
|
||||
}
|
||||
|
||||
private void Player_SongChanged(object sender, EventArgs e)
|
||||
|
|
|
@ -142,6 +142,15 @@ namespace FRESHMusicPlayer_WPF_UI_Test.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Settings.
|
||||
/// </summary>
|
||||
public static string MAINWINDOW_SETTINGS {
|
||||
get {
|
||||
return ResourceManager.GetString("MAINWINDOW_SETTINGS", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Tracks.
|
||||
/// </summary>
|
||||
|
@ -178,6 +187,51 @@ namespace FRESHMusicPlayer_WPF_UI_Test.Properties {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add Playlist.
|
||||
/// </summary>
|
||||
public static string QUEUEMANAGEMENT_ADDPLAYLIST {
|
||||
get {
|
||||
return ResourceManager.GetString("QUEUEMANAGEMENT_ADDPLAYLIST", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Add Track.
|
||||
/// </summary>
|
||||
public static string QUEUEMANAGEMENT_ADDTRACK {
|
||||
get {
|
||||
return ResourceManager.GetString("QUEUEMANAGEMENT_ADDTRACK", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Clear Queue.
|
||||
/// </summary>
|
||||
public static string QUEUEMANAGEMENT_CLEARQUEUE {
|
||||
get {
|
||||
return ResourceManager.GetString("QUEUEMANAGEMENT_CLEARQUEUE", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Queue.
|
||||
/// </summary>
|
||||
public static string QUEUEMANAGEMENT_QUEUEHEADER {
|
||||
get {
|
||||
return ResourceManager.GetString("QUEUEMANAGEMENT_QUEUEHEADER", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Remaining Time - .
|
||||
/// </summary>
|
||||
public static string QUEUEMANAGEMENT_REMAININGTIME {
|
||||
get {
|
||||
return ResourceManager.GetString("QUEUEMANAGEMENT_REMAININGTIME", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Album - .
|
||||
/// </summary>
|
||||
|
|
|
@ -145,6 +145,9 @@
|
|||
<value>{0}
|
||||
We'll skip to the next track for you</value>
|
||||
</data>
|
||||
<data name="MAINWINDOW_SETTINGS" xml:space="preserve">
|
||||
<value>Settings</value>
|
||||
</data>
|
||||
<data name="MAINWINDOW_TRACKS" xml:space="preserve">
|
||||
<value>Tracks</value>
|
||||
</data>
|
||||
|
@ -157,6 +160,21 @@ We'll skip to the next track for you</value>
|
|||
<data name="NOTIFICATION_COULD_NOT_IMPORT_PLAYLIST" xml:space="preserve">
|
||||
<value>Missing File</value>
|
||||
</data>
|
||||
<data name="QUEUEMANAGEMENT_ADDPLAYLIST" xml:space="preserve">
|
||||
<value>Add Playlist</value>
|
||||
</data>
|
||||
<data name="QUEUEMANAGEMENT_ADDTRACK" xml:space="preserve">
|
||||
<value>Add Track</value>
|
||||
</data>
|
||||
<data name="QUEUEMANAGEMENT_CLEARQUEUE" xml:space="preserve">
|
||||
<value>Clear Queue</value>
|
||||
</data>
|
||||
<data name="QUEUEMANAGEMENT_QUEUEHEADER" xml:space="preserve">
|
||||
<value>Queue</value>
|
||||
</data>
|
||||
<data name="QUEUEMANAGEMENT_REMAININGTIME" xml:space="preserve">
|
||||
<value>Remaining Time - </value>
|
||||
</data>
|
||||
<data name="TRACKINFO_ALBUM" xml:space="preserve">
|
||||
<value>Album - </value>
|
||||
</data>
|
||||
|
|
Loading…
Reference in a new issue