From 41e7726b287c3cd01da08c92ef8aa55b059a69c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gajdzi=C5=84ski?= Date: Tue, 2 Jan 2018 19:12:48 +0100 Subject: [PATCH] Translate update dialog --- .../Utility/Updating/Updater.Default.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Hearthstone Deck Tracker/Utility/Updating/Updater.Default.cs b/Hearthstone Deck Tracker/Utility/Updating/Updater.Default.cs index 3efe9d41b2..fb7a900c02 100644 --- a/Hearthstone Deck Tracker/Utility/Updating/Updater.Default.cs +++ b/Hearthstone Deck Tracker/Utility/Updating/Updater.Default.cs @@ -45,7 +45,7 @@ private static async void ShowNewUpdateMessage(bool beta) return; _showingUpdateMessage = true; - var settings = new MessageDialogs.Settings {AffirmativeButtonText = "Download", NegativeButtonText = "Not now"}; + var settings = new MessageDialogs.Settings {AffirmativeButtonText = LocUtil.Get("Button_Download"), NegativeButtonText = LocUtil.Get("Button_Notnow")}; if(_release == null) { _showingUpdateMessage = false; @@ -57,12 +57,8 @@ private static async void ShowNewUpdateMessage(bool beta) Core.MainWindow.ActivateWindow(); while(Core.MainWindow.Visibility != Visibility.Visible || Core.MainWindow.WindowState == WindowState.Minimized) await Task.Delay(100); - var betaString = beta ? " BETA" : ""; - var result = - await - Core.MainWindow.ShowMessageAsync("New" + betaString + " Update available!", - "Press \"Download\" to automatically download.", - MessageDialogStyle.AffirmativeAndNegative, settings); + var updateString = beta ? LocUtil.Get("MainWindow_StatusBarUpdate_NewBETAUpdateAvailable") : LocUtil.Get("MainWindow_StatusBarUpdate_NewUpdateAvailable"); + var result = await Core.MainWindow.ShowMessageAsync(updateString, LocUtil.Get("MainWindow_ShowMessage_UpdateDialog"), MessageDialogStyle.AffirmativeAndNegative, settings); if(result == MessageDialogResult.Affirmative) StartUpdate();