Comments (7)
Was this fixed or it's a "Won't fix"?
from griffin.mvccontrib.
@jgauffin: It's hard to be collaborative if you don't communicate with us
from griffin.mvccontrib.
I'm on vacation. Will look at is as soon as I get back. I thought that I had fixed it. However it's hard to get everything working properly (1. be able to use custom validation attributes 2. use the built in attributes 3. use custom error messages in the attributes).
Microsoft hides the actual language handling inside the dataannotation attributes and then caches them in MVC3.
from griffin.mvccontrib.
I understand it's hard and I can try to help you in anything you need, but we need that you coordinate the efforts. Anything from "Too hard, won't fix", "Please try to fix it yourself", or "Fixed" is good for me.
Hope you enjoy your vacations!
from griffin.mvccontrib.
Should work now
from griffin.mvccontrib.
Excellent!
How to we instanciate the providers now? This old sample code does not work now
var stringProvider = new ResourceStringProvider(Resources.LocalizedStrings.ResourceManager);
ModelMetadataProviders.Current = new LocalizedModelMetadataProvider(stringProvider);
ModelValidatorProviders.Providers.Clear();
ModelValidatorProviders.Providers.Add(new LocalizedModelValidatorProvider(stringProvider));
from griffin.mvccontrib.
humm. That should work. What kind of error do you get? (although I never tried with a string table only)
(you can email me at [email protected] for faster responses regarding this issue)
from griffin.mvccontrib.
Related Issues (20)
- LocalizedModelValidatorProvider does not contain a constructor that takes 1 arguments HOT 6
- Using EmbeddedFileProvider for plugin css/js files HOT 6
- Client validation for custom validation attributes doesn't work HOT 7
- System.Web.Mvc.CompareAttribute not working HOT 1
- RavenDB localization provider setup HOT 12
- Overwritting of texts in RavenDB on site refresh HOT 1
- RemoteAttribute Unobstrusive Text HOT 3
- Admin section - edit, delete icon do not show up HOT 2
- Attribute not recognized (MVC4): System.ComponentModel.DataAnnotations.EmailAddressAttribute : DataTypeAttribute HOT 5
- Problem with select html helper HOT 4
- Error HOT 1
- Caching of the ViewLocalizer HOT 2
- FileLocalizedTypeRepository loads json file for every translation HOT 2
- Localizing text for ModelState.AddModelError()
- data-val-number attribute is missing HOT 1
- Caching of RepositoryStringProvider results
- GriffinCaching : Closed Connection
- Web API support?
- No constructor for LocalizedModelValidatorProvider takes 1 argument
- Pull request for update to MVC5 and AppVeyor HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from griffin.mvccontrib.