Add English and Chinese translations

This commit is contained in:
Paddy Xu
2017-07-14 22:25:44 +03:00
parent 751bd6e28e
commit 77b973ef7b
16 changed files with 215 additions and 37 deletions

View File

@@ -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)));
}
});
}