Redid notifications loc AGAIN

This commit is contained in:
Rick Falkvinge
2015-01-31 02:11:59 +01:00
parent 36c7739078
commit 7d8e05efbf
2 changed files with 12 additions and 14 deletions
@@ -30,10 +30,6 @@ namespace Swarmops.Utility.Communications
Type payloadType = assembly.GetType(envelope.PayloadClass);
var methodInfo = payloadType.GetMethod("FromXml", BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);
// Set culture specific to the person being rendered for
Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture =
CultureInfo.CreateSpecificCulture (!string.IsNullOrEmpty (person.PreferredCulture) ? person.PreferredCulture : "en-US");
ICommsRenderer renderer = (ICommsRenderer)(methodInfo.Invoke(null, new object[] { envelope.PayloadXml }));
RenderedComm comm = renderer.RenderComm (person);