sorry i forgot about some strings

This commit is contained in:
Royce551 2020-10-24 17:33:27 -05:00
parent a614efa98c
commit 63779be4b1
5 changed files with 14 additions and 4 deletions

View file

@ -6,7 +6,7 @@
xmlns:resx = "clr-namespace:FRESHMusicPlayer.Properties"
xmlns:local="clr-namespace:FRESHMusicPlayer.Forms.Playlists"
mc:Ignorable="d"
Title="Playlist Management" SizeToContent="Height" Width="600">
Title="{x:Static resx:Resources.PLAYLISTMANAGEMENT}" SizeToContent="Height" Width="600">
<Grid Background="{StaticResource BackgroundColor}">
<Grid.RowDefinitions>
<RowDefinition/>

View file

@ -59,7 +59,7 @@ namespace FRESHMusicPlayer.Forms.Playlists
{
MainWindow.NotificationHandler.Add(new Notification
{
ContentText = $"This playlist file could not be imported because one or more of the tracks could not be found.\nMissing File: {s}",
ContentText = string.Format(Properties.Resources.NOTIFICATION_COULD_NOT_IMPORT_PLAYLIST, s),
IsImportant = true,
DisplayAsToast = true,
Type = NotificationType.Failure

View file

@ -131,7 +131,6 @@ namespace FRESHMusicPlayer.Pages
break;
}
SetAppRestartNeeded(App.Config.Language != workingConfig.Language);
App.Config.Language = workingConfig.Language;
}
}
private void General_UpdateModeCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
@ -167,7 +166,6 @@ namespace FRESHMusicPlayer.Pages
break;
}
SetAppRestartNeeded(App.Config.Theme != workingConfig.Theme);
App.Config.Theme = workingConfig.Theme;
}
}

View file

@ -580,6 +580,15 @@ namespace FRESHMusicPlayer.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to irreversibly clear your library. Are you sure?.
/// </summary>
public static string SETTINGS_NUKE_LIBRARY_WARNING {
get {
return ResourceManager.GetString("SETTINGS_NUKE_LIBRARY_WARNING", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Nuke library.
/// </summary>

View file

@ -298,6 +298,9 @@ Thank you for using FRESHMusicPlayer! ♥</value>
<data name="SETTINGS_NUKELIBRARY" xml:space="preserve">
<value>Nuke library</value>
</data>
<data name="SETTINGS_NUKE_LIBRARY_WARNING" xml:space="preserve">
<value>You are about to irreversibly clear your library. Are you sure?</value>
</data>
<data name="SETTINGS_OUTPUTDEVICE" xml:space="preserve">
<value>Output Device</value>
</data>