mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 19:19:10 +00:00
Add English and Chinese translations
This commit is contained in:
@@ -53,7 +53,7 @@ namespace QuickLook.Helpers
|
||||
if (!silent)
|
||||
Application.Current.Dispatcher.Invoke(
|
||||
() => TrayIconManager.GetInstance().ShowNotification("",
|
||||
"You are now on the latest version."));
|
||||
TranslationHelper.GetString(App.Translations, "Update_NoUpdate")));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace QuickLook.Helpers
|
||||
{
|
||||
ViewWindowManager.GetInstance().InvokeViewer(changeLogPath);
|
||||
TrayIconManager.GetInstance().ShowNotification("",
|
||||
$"New version {nVersion} is released. Click here to open the download page.",
|
||||
string.Format(TranslationHelper.GetString(App.Translations, "Update_Found"), nVersion),
|
||||
clickEvent: () => Process.Start(
|
||||
@"https://github.com/xupefei/QuickLook/releases/latest"));
|
||||
});
|
||||
@@ -77,7 +77,7 @@ namespace QuickLook.Helpers
|
||||
Debug.WriteLine(e.Message);
|
||||
Application.Current.Dispatcher.Invoke(
|
||||
() => TrayIconManager.GetInstance().ShowNotification("",
|
||||
$"Error occured when checking for updates: {e.Message}"));
|
||||
string.Format(TranslationHelper.GetString(App.Translations, "Update_Error"), e.Message)));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user