From 2be581fa0f9fdbb83889bfeafef3937b5acecdce Mon Sep 17 00:00:00 2001 From: "kenneth.skovhede@gmail.com" Date: Sun, 30 Oct 2011 14:40:29 +0000 Subject: [PATCH] Update issue #492 Status: Fixed Now applies selected locale to the worker thread, causing the error messages to be in the selected language as well. git-svn-id: https://duplicati.googlecode.com/svn/trunk@959 59da171f-624f-0410-aa54-27559c288bec --- Duplicati/GUI/WorkerThread.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Duplicati/GUI/WorkerThread.cs b/Duplicati/GUI/WorkerThread.cs index 7db6b3d82..6365877d3 100644 --- a/Duplicati/GUI/WorkerThread.cs +++ b/Duplicati/GUI/WorkerThread.cs @@ -125,6 +125,14 @@ namespace Duplicati.GUI m_state = paused ? WorkerThread.RunState.Paused : WorkerThread.RunState.Run; m_thread = new Thread(new ThreadStart(Runner)); + try + { + //The worker is using the same locale as the caller + m_thread.CurrentCulture = System.Threading.Thread.CurrentThread.CurrentCulture; + m_thread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentUICulture; + } + catch { } + m_thread.IsBackground = true; m_thread.Start(); }