eliminate translation doc names when calling GetString()

This commit is contained in:
Paddy Xu
2017-07-14 23:15:54 +03:00
parent 584d56731f
commit cbfd5bfa7e
8 changed files with 34 additions and 29 deletions

View File

@@ -53,7 +53,7 @@ namespace QuickLook.Helpers
if (!silent)
Application.Current.Dispatcher.Invoke(
() => TrayIconManager.GetInstance().ShowNotification("",
TranslationHelper.GetString(App.Translations, "Update_NoUpdate")));
TranslationHelper.GetString("Update_NoUpdate")));
return;
}
@@ -67,7 +67,7 @@ namespace QuickLook.Helpers
{
ViewWindowManager.GetInstance().InvokeViewer(changeLogPath);
TrayIconManager.GetInstance().ShowNotification("",
string.Format(TranslationHelper.GetString(App.Translations, "Update_Found"), nVersion),
string.Format(TranslationHelper.GetString("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("",
string.Format(TranslationHelper.GetString(App.Translations, "Update_Error"), e.Message)));
string.Format(TranslationHelper.GetString("Update_Error"), e.Message)));
}
});
}