Updated localization
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Microsoft.AppCenter.Analytics;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Windows.ApplicationModel.Resources;
|
||||
using Windows.System;
|
||||
using Windows.UI.Popups;
|
||||
using Windows.UI.Xaml;
|
||||
@@ -89,10 +90,10 @@ namespace FoxTube.Pages
|
||||
|
||||
private async void Clear_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//TODO: Localize strings
|
||||
MessageDialog dialog = new MessageDialog("Are you sure? This action cannot be undone", "Delete app history");
|
||||
dialog.Commands.Add(new UICommand("No"));
|
||||
dialog.Commands.Add(new UICommand("Yes", (command) =>
|
||||
ResourceLoader resources = ResourceLoader.GetForCurrentView("Playlist");
|
||||
MessageDialog dialog = new MessageDialog(resources.GetString("/Playlist/historyClear/Body"), resources.GetString("/Playlist/historyClear/Header"));
|
||||
dialog.Commands.Add(new UICommand(resources.GetString("/Playlist/no")));
|
||||
dialog.Commands.Add(new UICommand(resources.GetString("/Playlist/yes"), (command) =>
|
||||
{
|
||||
HistorySet.Clear();
|
||||
Refresh_Click(this, null);
|
||||
|
||||
Reference in New Issue
Block a user