From 2d6e212a6583742d57d9805f42f391cd12cd6e8e Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 24 Jan 2019 19:03:30 +0100 Subject: [PATCH] Debugging Serbian loc --- Site/Bases/CommonV5.cs | 2 ++ Site/Global.asax | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Site/Bases/CommonV5.cs b/Site/Bases/CommonV5.cs index e971c742..ee4558bd 100644 --- a/Site/Bases/CommonV5.cs +++ b/Site/Bases/CommonV5.cs @@ -63,6 +63,8 @@ namespace Swarmops.Frontend } catch (Exception) // if we can't set the culture, what do we do? ("We send the Marines.") { + throw; // for debugging purposes 2019-Jan-24 + Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; // throw new Exception("Could not set culture \"" + preferredCulture + "\"", exception); // Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; diff --git a/Site/Global.asax b/Site/Global.asax index ac510c57..cf50f662 100644 --- a/Site/Global.asax +++ b/Site/Global.asax @@ -13,7 +13,7 @@ // Code that runs on application startup // Set supported cultures - HttpContext.Current.Application["Cultures"] = new[] {"sv-SE", "en-US", "en-GB", "de-DE", "de-AT", "fi-FI"}; + HttpContext.Current.Application["Cultures"] = Formatting.SupportedCultures; HttpContext.Current.Application["UserRoleCache"] = new Dictionary(); SupportFunctions.OperatingTopology = OperatingTopology.FrontendWeb; }