griffin.mvccontrib
griffin.mvccontrib copied to clipboard
Overwritting of texts in RavenDB on site refresh
I'll open this as a separate issue which it indeed is.
So, I run the site and while the site is running change some texts for en-US from default to something else. For instance
"Text": "The {0} field is required."
to
"Text": "aaaa {0} field is required."
Save in RavenDB studio and refresh the site. The modified text is gone and overwritten with the default en-US text again.
This has nothing to do with missing texts. The DefaultUICulture is set to "en-US" but the actual current culture of my page is set to "sl-SI" (I do it via SetCulture attribute on my ControllerBase, which essentially just sets the Thread cultures).
So what we have here is two fold.
- It is wrongly identifying the actual current culture, which is not the same as the DefaultUICulture that we set explicitely
- overwrittes something that doesn't have to be overwritten.
Strange. I'll investigate.