Add Messages.resx
in App_GlobalResources
and in Application_Start
in Global.asax
:
DefaultModelBinder.ResourceClassKey = "Messages";
Then in the Messages.resx
file you could define the following string:
PropertyValueInvalid: The value {0} is invalid for the property {1}
The key needs to be called PropertyValueInvalid
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…