From a9788b728f39ef7478353dba42ebb05602466ee3 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Sun, 28 Apr 2019 12:05:56 +0300 Subject: [PATCH] Updated localization --- FoxTube/Pages/History.xaml.cs | 9 +++++---- FoxTube/Pages/PlaylistPage.xaml.cs | 1 - FoxTube/Strings/en-US/Playlist.resw | 12 ++++++++++++ FoxTube/Strings/ru-RU/Playlist.resw | 12 ++++++++++++ 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/FoxTube/Pages/History.xaml.cs b/FoxTube/Pages/History.xaml.cs index d4e96bd..65ac7ee 100644 --- a/FoxTube/Pages/History.xaml.cs +++ b/FoxTube/Pages/History.xaml.cs @@ -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); diff --git a/FoxTube/Pages/PlaylistPage.xaml.cs b/FoxTube/Pages/PlaylistPage.xaml.cs index 9fd9e6f..d404e62 100644 --- a/FoxTube/Pages/PlaylistPage.xaml.cs +++ b/FoxTube/Pages/PlaylistPage.xaml.cs @@ -116,7 +116,6 @@ namespace FoxTube.Pages playlistId = "WL"; share.Visibility = Visibility.Collapsed; wlAlert.Visibility = Visibility.Visible; - //TODO: Localize strings SecretsVault.WatchLater = await Methods.GetLater(); diff --git a/FoxTube/Strings/en-US/Playlist.resw b/FoxTube/Strings/en-US/Playlist.resw index 845a213..117b5d6 100644 --- a/FoxTube/Strings/en-US/Playlist.resw +++ b/FoxTube/Strings/en-US/Playlist.resw @@ -126,12 +126,21 @@  Clear history + + Are you sure? This action cannot be undone + + + Delete app history + Unfortunately, for now we are unable to manage your youtube history. If you want to see your web history go to Website tab. If you want to delete some items, please go to website Missing some stuff? + + No + Open in browser @@ -153,4 +162,7 @@ Don't know how to delete video from 'Watch later' playlist? + + Yes + \ No newline at end of file diff --git a/FoxTube/Strings/ru-RU/Playlist.resw b/FoxTube/Strings/ru-RU/Playlist.resw index 359c182..ce18e88 100644 --- a/FoxTube/Strings/ru-RU/Playlist.resw +++ b/FoxTube/Strings/ru-RU/Playlist.resw @@ -126,12 +126,21 @@  Очистить историю + + Вы уверены? Это действие невозможно отменить + + + Очистить историю просмотра? + К сожалению, пока мы не можем управлять историей просмотров. Если вам нужна история просмотров сайта, перейдите на вкладку "Сайт". Если вы хотите что-то удалить из истории, пожалуйста перейдите на веб-версию сайта Не можете что-то найти? + + Нет + Открыть в браузере @@ -153,4 +162,7 @@ Не знаете как удалить видео из "Посмотреть позже"? + + Да + \ No newline at end of file