griffin.mvccontrib icon indicating copy to clipboard operation
griffin.mvccontrib copied to clipboard

Overwritting of texts in RavenDB on site refresh

Open brgrz opened this issue 12 years ago • 1 comments

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.

  1. It is wrongly identifying the actual current culture, which is not the same as the DefaultUICulture that we set explicitely
  2. overwrittes something that doesn't have to be overwritten.

brgrz avatar Nov 15 '12 13:11 brgrz

Strange. I'll investigate.

jgauffin avatar Feb 12 '13 06:02 jgauffin