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
This commit is contained in:
kenneth.skovhede@gmail.com
2011-10-30 14:40:29 +00:00
parent 87ad255acc
commit 2be581fa0f
+8
View File
@@ -125,6 +125,14 @@ namespace Duplicati.GUI
m_state = paused ? WorkerThread<Tx>.RunState.Paused : WorkerThread<Tx>.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();
}