jgauffin / griffin.mvccontrib

A contribution project for ASP.NET MVC3
http://blog.gauffin.org/tag/griffin-mvccontrib/
GNU Lesser General Public License v3.0
83 stars 40 forks source link

Overwritting of texts in RavenDB on site refresh #28

Open brgrz opened 11 years ago

brgrz commented 11 years ago

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.

jgauffin commented 11 years ago

Strange. I'll investigate.