|
@@ -17,6 +17,7 @@ using Shadowsocks.Controller.Hotkeys; |
|
|
using Shadowsocks.Util;
|
|
|
using Shadowsocks.Util;
|
|
|
using Shadowsocks.View;
|
|
|
using Shadowsocks.View;
|
|
|
using Splat;
|
|
|
using Splat;
|
|
|
|
|
|
using WPFLocalizeExtension.Engine;
|
|
|
|
|
|
|
|
|
namespace Shadowsocks
|
|
|
namespace Shadowsocks
|
|
|
{
|
|
|
{
|
|
@@ -116,6 +117,12 @@ namespace Shadowsocks |
|
|
// Parameters would have to be dropped from views' constructors (VersionUpdatePromptView)
|
|
|
// Parameters would have to be dropped from views' constructors (VersionUpdatePromptView)
|
|
|
//Locator.CurrentMutable.RegisterViewsForViewModels(Assembly.GetCallingAssembly());
|
|
|
//Locator.CurrentMutable.RegisterViewsForViewModels(Assembly.GetCallingAssembly());
|
|
|
|
|
|
|
|
|
|
|
|
// Workaround for hosting WPF controls in a WinForms app.
|
|
|
|
|
|
// We have to manually set the culture for the LocalizeDictionary instance.
|
|
|
|
|
|
// https://stackoverflow.com/questions/374518/localizing-a-winforms-application-with-embedded-wpf-user-controls
|
|
|
|
|
|
// https://stackoverflow.com/questions/14668640/wpf-localize-extension-translate-window-at-run-time
|
|
|
|
|
|
LocalizeDictionary.Instance.Culture = Thread.CurrentThread.CurrentCulture;
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
#if DEBUG
|
|
|
// truncate privoxy log file while debugging
|
|
|
// truncate privoxy log file while debugging
|
|
|
string privoxyLogFilename = Utils.GetTempPath("privoxy.log");
|
|
|
string privoxyLogFilename = Utils.GetTempPath("privoxy.log");
|
|
|