From aba242d14c860644c551af5d916dce5a1ce17a5e Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Tue, 6 Mar 2018 20:03:14 +0200 Subject: [PATCH] improve message texts as requested by Fujitsu --- QuickLook/App.xaml.cs | 3 ++- QuickLook/Helpers/Updater.cs | 5 +++++ QuickLook/Translations.config | 33 ++++++++++++++++++--------------- QuickLook/TrayIconManager.cs | 3 +-- 4 files changed, 26 insertions(+), 18 deletions(-) diff --git a/QuickLook/App.xaml.cs b/QuickLook/App.xaml.cs index d4ddb93..4b02637 100644 --- a/QuickLook/App.xaml.cs +++ b/QuickLook/App.xaml.cs @@ -72,7 +72,8 @@ namespace QuickLook RemoteCallShowPreview(e); // second instance: duplicate else - MessageBox.Show(TranslationHelper.Get("APP_SECOND")); + MessageBox.Show(TranslationHelper.Get("APP_SECOND_TEXT"), TranslationHelper.Get("APP_SECOND"), + MessageBoxButton.OK, MessageBoxImage.Information); Shutdown(); return; diff --git a/QuickLook/Helpers/Updater.cs b/QuickLook/Helpers/Updater.cs index ea435d7..d3f3390 100644 --- a/QuickLook/Helpers/Updater.cs +++ b/QuickLook/Helpers/Updater.cs @@ -33,7 +33,12 @@ namespace QuickLook.Helpers public static void CheckForUpdates(bool silent = false) { if (App.IsUWP) + { + if (!silent) + Process.Start("ms-windows-store://pdp/?productid=9NV4BS3L1H4S"); + return; + } Task.Run(() => { diff --git a/QuickLook/Translations.config b/QuickLook/Translations.config index bc2e27f..08e8398 100644 --- a/QuickLook/Translations.config +++ b/QuickLook/Translations.config @@ -4,13 +4,14 @@ Segoe UI QuickLook is running in the background. - QuickLook is already running in the background. + QuickLook is already running + QuickLook enables quick previewing of certain type of files by pressing the spacebar while it is highlighted. Browse {0} Open {0} Open with {0} Run {0} Run at &Startup - QuickLook v{0} + QuickLook v{0}: a spacebar previewing utility Check for &Updates... &Quit You are now on the latest version. @@ -27,13 +28,14 @@ Segoe UI,Microsoft Yahei UI,Microsoft Yahei,SimSun QuickLook 正在后台运行。 - 另一个 QuickLook 进程正在运行。 + 另一个 QuickLook 进程正在运行 + 提在您选中文件并按下空格键时,QuickLook 将提供多种格式的快速预览。 浏览 {0} 打开 {0} 用 {0} 打开 运行 {0} 启动时自动运行 (&S) - QuickLook v{0} + QuickLook v{0}:一个空格键预览工具 检查更新... (&U) 退出 (&Q) 您已使用了最新版本。 @@ -49,14 +51,15 @@ Segoe UI,Microsoft JhengHei UI,Microsoft JhengHei,MingLiU - QuickLook 正在背景執行。 + QuickLook 正在背景執行 另一個 QuickLook 處理程序正在執行。 + 提在您選中檔並按下空白鍵時,QuickLook 將提供多種格式的快速預覽。 瀏覽 {0} 開啟 {0} 用 {0} 開啟 執行 {0} 系統啟動時自動執行 (&S) - QuickLook v{0} + QuickLook v{0}:一個空白鍵預覽工具 檢查更新... (&U) 結束程式 (&Q) 您已使用了最新版本。 @@ -73,7 +76,7 @@ Segoe UI QuickLook está funcionando en segundo plano. - QuickLook ya está funcionando en segundo plano. + QuickLook ya está funcionando en segundo plano Explorar {0} Abrir {0} Abrir con {0} @@ -96,7 +99,7 @@ Segoe UI QuickLook está em execução. - QuickLook já está em execução. + QuickLook já está em execução Abrir pasta {0} Abrir {0} Abrir com {0} @@ -119,7 +122,7 @@ Segoe UI QuickLook está sendo executado. - QuickLook já está sendo executado. + QuickLook já está sendo executado Abrir pasta {0} Abrir {0} Abrir com {0} @@ -142,7 +145,7 @@ Segoe UI QuickLook draait op de achtergrond. - QuickLook draait al op de achtergrond. + QuickLook draait al op de achtergrond Verken {0} Open {0} Openen met {0} @@ -165,7 +168,7 @@ Segoe UI QuickLook è in esecuzione in secondo piano. - QuickLook è già in esecuzione in secondo piano. + QuickLook è già in esecuzione in secondo piano Esplora {0} Apri {0} Apri con {0} @@ -188,7 +191,7 @@ Segoe UI QuickLook läuft im Hintergrund. - QuickLook läuft bereits im Hintergrund. + QuickLook läuft bereits im Hintergrund Durchsuchen {0} Öffnen {0} Öffnen mit {0} @@ -211,7 +214,7 @@ Segoe UI El QuickLook s'està executant en segon pla. - El QuickLook ja s'està executant en segon pla. + El QuickLook ja s'està executant en segon pla Navega {0} Obre {0} Obre'l amb {0} @@ -234,7 +237,7 @@ Segoe UI QuickLook s'exécute en tâche de fond. - QuickLook s'exécute déjà en tâche de fond. + QuickLook s'exécute déjà en tâche de fond Ouvrir {0} Ouvrir {0} Ouvrir avec {0} @@ -280,7 +283,7 @@ Segoe UI QuickLook kjører i bakgrunnen. - QuickLook kjører allerede i bakgrunnen. + QuickLook kjører allerede i bakgrunnen Bla gjennom {0} Åpne {0} Åpne med {0} diff --git a/QuickLook/TrayIconManager.cs b/QuickLook/TrayIconManager.cs index e9785df..f6955b9 100644 --- a/QuickLook/TrayIconManager.cs +++ b/QuickLook/TrayIconManager.cs @@ -52,8 +52,7 @@ namespace QuickLook { new MenuItem($"v{Application.ProductVersion}{(App.IsUWP ? " (UWP)" : "")}") {Enabled = false}, new MenuItem("-"), - new MenuItem(TranslationHelper.Get("Icon_CheckUpdate"), - (sender, e) => Updater.CheckForUpdates()) {Enabled = !App.IsUWP}, + new MenuItem(TranslationHelper.Get("Icon_CheckUpdate"), (sender, e) => Updater.CheckForUpdates()), _itemAutorun, new MenuItem(TranslationHelper.Get("Icon_Quit"), (sender, e) => System.Windows.Application.Current.Shutdown())