Archived
1
0

Updated localization

This commit is contained in:
Michael Gordeev
2019-04-28 12:05:56 +03:00
parent 9bd13b6792
commit a9788b728f
4 changed files with 29 additions and 5 deletions
+5 -4
View File
@@ -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);