Debugging Serbian loc

This commit is contained in:
Rick Falkvinge
2019-01-24 19:03:30 +01:00
parent 6d8da5b2d1
commit 2d6e212a65
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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;
+1 -1
View File
@@ -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<int, string[]>();
SupportFunctions.OperatingTopology = OperatingTopology.FrontendWeb;
}